Module:Flag/doc

From blackwiki
< Module:Flag
Revision as of 16:41, 26 June 2020 by blackwiki>Ahecht (→‎Usage: * {{tl|flagcountry}} → {{ml|flag|country}})
Jump to navigation Jump to search

This is the documentation page for Module:Flag

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