Jump to content

Module:Flag/doc

From Simple English Wikipedia, the free encyclopedia
Revision as of 04:23, 4 July 2021 by MeritedElm63160 (talk | changes) (Created page with "{{Module rating |beta }} {{lua|Module:Flagg|Module:Check for unknown parameters}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> 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 == * {{tl|flag}} → {{ml|flag|main}} * {{tl|flagcountry}} →...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Examples

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