(建立内容为“<includeonly>{{Countries|flag/core|{{{1}}}|{{{2}}} }}</includeonly><noinclude> {{template doc}} #Category:模板[[en:{{FULLPAGENAME}}]…”的新页面) |
无编辑摘要 |
||
(未显示3个用户的8个中间版本) | |||
第1行: | 第1行: | ||
<includeonly>{{ | <includeonly>{{#cargo_query: table = country_names | ||
| fields = chinese, english, tag, alias1, alias2, alias3, alias4 | |||
[[ | | format = template | ||
</noinclude> | | template = Flag core | ||
| named args = yes | |||
| where = country_names.chinese = "{{{1|5000}}}" OR country_names.alias1 = "{{{1|5000}}}" OR country_names.alias2 = "{{{1|5000}}}" OR country_names.alias3 = "{{{1|5000}}}" OR country_names.alias4 = "{{{1|5000}}}" OR country_names.english = "{{{1|5000}}}" OR country_names.tag = "{{{1|GBR}}}" <> 0 | |||
}}</includeonly><noinclude>[[Category:国旗模板]][[Category: 语义化 模板]]{{template doc}}</noinclude> |
2023年3月17日 (五) 18:06的最新版本
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|Germany|0}} |
德意志 |
{{flag|France|Bananas}} |
法兰西 |