This is the documentation page for Module:Flag
Template:Lua 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.
UsageEdit
- {{flag}} → Template:Ml
- {{flagcountry}} → Template:Ml
- {{flagdeco}} → Template:Ml
- {{flagicon}} → Template:Ml
- {{flag+link}} → Template:Ml
ExamplesEdit
Template | Module | ||||
---|---|---|---|---|---|
Code | Output | PEIS | Code | Output | PEIS |
{{flag|China}} |
Template:Flag | 443b | Template:Mlx | Template:Country data China | 128b |
{{flagcountry|China}} |
Template:Flagcountry | 577b | Template:Mlx | Template:Country data China China | 128b |
{{flagdeco|China}} |
Template:Flagdeco | 452b | Template:Mlx | Template:Country data China | 107b |
{{flagicon|China}} |
Template:Flagicon | 548b | Template:Mlx | Template:Country data China | 117b |
{{flag+link|History of|China}} |
Template:Flag+link | 663b | Template:Mlx | Template:Country data China China | 139b |