Difference between revisions of "Module:Flag/doc"
Jump to navigation
Jump to search
blackwiki>Ahecht m (→Examples: spelling) |
m (8 revisions imported) |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 6: | Line 6: | ||
== Usage == | == Usage == | ||
* {{tl|flag}} → {{ml|flag|main}} | * {{tl|flag}} → {{ml|flag|main}} | ||
| + | * {{tl|flagcountry}} → {{ml|flag|country}} | ||
* {{tl|flagdeco}} → {{ml|flag|deco}} | * {{tl|flagdeco}} → {{ml|flag|deco}} | ||
* {{tl|flagicon}} → {{ml|flag|icon}} | * {{tl|flagicon}} → {{ml|flag|icon}} | ||
| + | * {{tl|flag+link}} → {{ml|flag|+link}} | ||
== Examples == | == Examples == | ||
| Line 15: | Line 17: | ||
! Code !! Output !! [[WP:PEIS|PEIS]] !! Code !! Output !! [[WP:PEIS|PEIS]] | ! Code !! Output !! [[WP:PEIS|PEIS]] !! Code !! Output !! [[WP:PEIS|PEIS]] | ||
|- | |- | ||
| − | | {{tlx|flag|China}} || {{flag|China}} || 443b || {{mlx|flag | + | | {{tlx|flag|China}} || {{flag|China}} || 443b || {{mlx|flag|main|China}} || {{#invoke:flag|main|China}} || 128b |
|- | |- | ||
| − | | {{tlx| | + | | {{tlx|flagcountry|China}} || {{flagcountry|China}} || 577b || {{mlx|flag|country|China}} || {{#invoke:flag|country|China}} || 128b |
|- | |- | ||
| − | | {{tlx| | + | | {{tlx|flagdeco|China}} || {{flagdeco|China}} || 452b || {{mlx|flag|deco|China}} || {{#invoke:flag|deco|China}} || 107b |
|- | |- | ||
| − | | {{tlx|flag+link|History of|China}} || {{flag+link|History of|China}} || 663b || {{mlx|flag|+link|History of|China}} || {{#invoke:flag | + | | {{tlx|flagicon|China}} || {{flagicon|China}} || 548b || {{mlx|flag|icon|China}} || {{#invoke:flag|icon|China}} || 117b |
| + | |- | ||
| + | | {{tlx|flag+link|History of|China}} || {{flag+link|History of|China}} || 663b || {{mlx|flag|+link|History of|China}} || {{#invoke:flag|+link|History of|China}} || 139b | ||
|} | |} | ||
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
| − | |||
[[Category:Flag template system]] | [[Category:Flag template system]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 16:37, 26 September 2020
| 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}}
- {{flagcountry}} → {{#invoke:flag|country}}
- {{flagdeco}} → {{#invoke:flag|deco}}
- {{flagicon}} → {{#invoke:flag|icon}}
- {{flag+link}} → {{#invoke:flag|+link}}
Examples
| Template | Module | ||||
|---|---|---|---|---|---|
| Code | Output | PEIS | Code | Output | PEIS |
{{flag|China}} |
443b | {{#invoke:flag|main|China}} |
128b | ||
{{flagcountry|China}} |
577b | {{#invoke:flag|country|China}} |
128b | ||
{{flagdeco|China}} |
452b | {{#invoke:flag|deco|China}} |
107b | ||
{{flagicon|China}} |
548b | {{#invoke:flag|icon|China}} |
117b | ||
{{flag+link|History of|China}} |
663b | {{#invoke:flag|+link|History of|China}} |
139b | ||