模組:Flag/doc
外观
这是Module:Flag的文档页面
![]() | 此模块文档已评为beta版,可广泛使用。因其新近完成,请谨慎使用,以确保输出结果符合预期。 |
![]() | 此模块使用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}} → {{#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}}
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}}
China
139b