Module:Flag/doc
This is the documentation page for Module:Flag
Template:Module rating 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.
Usage
- {{flag}} → Flag#main
- {{flagcountry}} → Flag#country
- {{flagdeco}} → Flag#deco
- {{flagicon}} → Flag#icon
- {{flag+link}} → Flag#+link
Examples
Template | Module | ||||
---|---|---|---|---|---|
Code | Output | PEIS | Code | Output | PEIS |
Template:Tlx | Template:Flag | 443b | Template:Mlx | Lua error in package.lua at line 80: module 'Module:CountryData/sandbox' not found. | 128b |
Template:Tlx | Template:Flagcountry | 577b | Template:Mlx | Lua error in package.lua at line 80: module 'Module:CountryData/sandbox' not found. | 128b |
Template:Tlx | Template:Flagdeco | 452b | Template:Mlx | Lua error in package.lua at line 80: module 'Module:CountryData/sandbox' not found. | 107b |
Template:Tlx | Template:Country data China | 548b | Template:Mlx | Lua error in package.lua at line 80: module 'Module:CountryData/sandbox' not found. | 117b |
Template:Tlx | Template:Flag+link | 663b | Template:Mlx | Lua error in package.lua at line 80: module 'Module:CountryData/sandbox' not found. | 139b |