Difference between revisions of "Module:Flag/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Ahecht
(→‎Usage: * {{tl|flagcountry}} → {{ml|flag|country}})
m (8 revisions imported)
 
(No difference)

Latest revision as of 16:37, 26 September 2020

Lua-native alternative to popular flag templates. Can be used to reduce post-expand include size of pages with lots of templates, since it avoids calling multilevel templates.

Usage

Examples

Template Module
Code Output PEIS Code Output PEIS
{{flag|China}} 23x15px China 443b {{#invoke:flag|main|China}} 23x15px China 128b
{{flagcountry|China}} 23x15px China 577b {{#invoke:flag|country|China}} 23x15px China 128b
{{flagdeco|China}} 23x15px 452b {{#invoke:flag|deco|China}} 23x15px 107b
{{flagicon|China}} 23x15px 548b {{#invoke:flag|icon|China}} 23x15px 117b
{{flag+link|History of|China}} 23x15px China 663b {{#invoke:flag|+link|History of|China}} 23x15px China 139b