(Katty von Keksburg移动页面Template:Flag至Template:国旗) 标签:新重定向 |
(已移除至Template:国旗的重定向) 标签:移除重定向 |
||
第1行: | 第1行: | ||
# | <includeonly>[[File:{{{1}}}.png|24px|border|alt=Flag of {{{1}}}|link={{{1}}}]]{{#ifeq:{{{2|}}}|| [[{{{1}}}]]|{{#ifeq:{{{2|}}}|0|| [[{{{1}}}|{{{2}}}]]}}}}</includeonly><noinclude> | ||
This template generates a country's flag with a link to their country page. | |||
{{template doc}} | |||
[[Category:Templates]] | |||
[[Category:Flags]] | |||
</noinclude> |
2023年3月17日 (五) 04:50的版本
This template generates a country's flag with a link to their country page.
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}} |
File:Norway.png Norway |
{{flag|Germany|0}} |
File:Germany.png |
{{flag|France|Bananas}} |
File:France.png Bananas |