Template:国旗:修订间差异

(merge from offical wiki)
 
(Katty von Keksburg移动页面Template:FlagTemplate:国旗
 
(未显示1个用户的4个中间版本)
第1行: 第1行:
<includeonly>[[File:{{{1}}}.png|24px|border|alt=Flag of {{{1}}}|link={{{1}}}]]{{#ifeq:{{{2|}}}||&nbsp;[[{{{1}}}]]|{{#ifeq:{{{2|}}}|0||&nbsp;[[{{{1}}}|{{{2}}}]]}}}}</includeonly><noinclude>
<includeonly>{{#cargo_query: table = country_names
{{template doc}}
| fields = chinese, english, tag, nickname
[[Category:Templates]]
| format = template
[[Category:Flags]]
| template = Flag core
</noinclude>
| named args = yes
| where = country_names.chinese = "{{{1|5000}}}" OR country_names.nickname = "{{{1|5000}}}" OR country_names.nickname2 = "{{{1|5000}}}" OR country_names.nickname3 = "{{{1|5000}}}" OR country_names.nickname4 = "{{{1|5000}}}" OR country_names.english = "{{{1|5000}}}" OR country_names.tag = "{{{1|5000}}}" <> 0
}}</includeonly><noinclude>[[Category: 国旗模板]][[Category: 语义化模板]]{{template doc}}</noinclude>

2022年11月25日 (五) 18:59的最新版本

[阅读] [编辑]Template-info.png 模板文档

Used to place flags inline.

Parameters

Parameter Effect
1 Required. Name of the country (e.g. France)
2 Optional. Default is with standard country name as a label.
Can add an alternative label (e.g. Bananas), or set to 0 to remove text label

Examples

Example code Result
{{flag|Norway}} 挪威的国旗 挪威
{{flag|German Reich|0}} 德意志国的国旗 德意志国
{{flag|France|Bananas}} 法国的国旗 法国