This is the documentation page for Module:Flag
This module depends on the following other modules: |
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}} → {{#invoke:flag|main}}
- {{flagcountry}} → {{#invoke:flag|country}}
- {{flagdeco}} → {{#invoke:flag|deco}}
- {{flagicon}} → {{#invoke:flag|icon}}
- {{flag+link}} → {{#invoke:flag|+link}}
- {{flagathlete}} → {{#invoke:flag|athlete}}
Examples
Template | Module | ||||
---|---|---|---|---|---|
Code | Output | PEIS | Code | Output | PEIS |
{{flag|China}} |
China | 443b | {{#invoke:flag|main|China}} |
Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. | 128b |
{{flagcountry|China}} |
China | 577b | {{#invoke:flag|country|China}} |
Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. | 128b |
{{flagdeco|China}} |
452b | {{#invoke:flag|deco|China}} |
Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. | 107b | |
{{flagicon|China}} |
[[China|]] | 548b | {{#invoke:flag|icon|China}} |
Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. | 117b |
{{flag+link|History of|China}} |
Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. China | 663b | {{#invoke:flag|+link|History of|China}} |
Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. | 139b |
{{flagathlete|Andy Murray|GBR}} |
Template:Country data GBR | 617b | {{#invoke:flag|athlete|Andy Murray|GBR}} |
Andy Murray (GBR) | 210b |