Module:Flag/doc

From blackwiki
< Module:Flag
Revision as of 14:39, 11 June 2020 by blackwiki>Ahecht (→‎Examples: add flag+link)
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/sandbox|main|China}} 23x15px China 128b
{{flagdeco|China}} 23x15px 452b {{#invoke:flag/sandbox|deco|China}} 23x15px 107b
{{flagicon|China}} 23x15px 548b {{#invoke:flag/sandbox|icon|China}} 23x15px 117b
{{flag+link|China}} 23x15px China 663b {{#invoke:flag|+link|Hisory of|China}} 23x15px China 139b