Module:Flag/doc
< Module:Flag
Jump to navigation
Jump to search
Revision as of 14:39, 11 June 2020 by blackwiki>Ahecht (→Examples: add flag+link)
This is the documentation page for Module:Flag
| 40x40px | This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
| 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}}
- {{flagdeco}} → {{#invoke:flag|deco}}
- {{flagicon}} → {{#invoke:flag|icon}}
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 |