Difference between revisions of "Template:Flag"

From Nookipedia, the Animal Crossing wiki
(Undo revision 378959 by Sunmarsh (talk). Breaks Template:Flag when it is transcluded into other templates.)
Tag: Undo
(UN flag isn't very recognizable as a 'worldwide' symbol. Changing to globe icon. Feel free to bring up thoughts/objections on the talk page.)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1|USA}}}
 
<includeonly>{{#switch: {{{1|USA}}}
 
<!-- REGIONS -->
 
<!-- REGIONS -->
  | WLD = [[File:Flag of the United Nations.png           |{{{size|22px}}}|link=wikipedia:Earth                  |Worldwide]]
+
  | WLD = [[File:Nook Miles Globe NH Icon.png             |{{{size|22px}}}|link=wikipedia:Earth                  |Worldwide]]
 
  | ATA = [[File:Flag of Antarctica.png                    |{{{size|22px}}}|link=wikipedia:Antartica              |Antartica]]
 
  | ATA = [[File:Flag of Antarctica.png                    |{{{size|22px}}}|link=wikipedia:Antartica              |Antartica]]
 
  | AUS = [[File:Flag of Australia.png                    |{{{size|22px}}}|link=wikipedia:Australia              |Australia]]
 
  | AUS = [[File:Flag of Australia.png                    |{{{size|22px}}}|link=wikipedia:Australia              |Australia]]
Line 8: Line 8:
 
  | CAN = [[File:Flag of Canada.png                        |{{{size|22px}}}|link=wikipedia:Canada                  |Canada]]
 
  | CAN = [[File:Flag of Canada.png                        |{{{size|22px}}}|link=wikipedia:Canada                  |Canada]]
 
  | CHN = [[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China                  |China]]
 
  | CHN = [[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China                  |China]]
  | CZE = [[File:Flag of the Czech Republic.png            |{{{size|22px}}}|link=wikipedia:Czech Republic          |Czech Republic]]
+
  | CZE = [[File:Flag of the Czech Republic.png            |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Czech Republic          |Czech Republic]]
 
  | DEU = [[File:Flag of Germany.png                      |{{{size|22px}}}|link=wikipedia:Germany                |Germany]]
 
  | DEU = [[File:Flag of Germany.png                      |{{{size|22px}}}|link=wikipedia:Germany                |Germany]]
  | DZA = [[File:Flag of Algeria.png                      |{{{size|22px}}}|link=wikipedia:Algeria                |Algeria]]
+
  | DZA = [[File:Flag of Algeria.png                      |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Algeria                |Algeria]]
 
  | ESP = [[File:Flag of Spain.png                        |{{{size|22px}}}|link=wikipedia:Spain                  |Spain]]
 
  | ESP = [[File:Flag of Spain.png                        |{{{size|22px}}}|link=wikipedia:Spain                  |Spain]]
 
  | EUR = [[File:Flag of Europe.png                        |{{{size|22px}}}|link=wikipedia:Europe                  |Europe]]
 
  | EUR = [[File:Flag of Europe.png                        |{{{size|22px}}}|link=wikipedia:Europe                  |Europe]]
  | FIN = [[File:Flag of Finland.png                      |{{{size|22px}}}|link=wikipedia:Finland                |Finland]]
+
  | FIN = [[File:Flag of Finland.png                      |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Finland                |Finland]]
 
  | FRA = [[File:Flag of France.png                        |{{{size|22px}}}|link=wikipedia:France                  |France]]
 
  | FRA = [[File:Flag of France.png                        |{{{size|22px}}}|link=wikipedia:France                  |France]]
 
  | GBR = [[File:Flag of the United Kingdom.png            |{{{size|22px}}}|link=wikipedia:United Kingdom          |United Kingdom]]
 
  | GBR = [[File:Flag of the United Kingdom.png            |{{{size|22px}}}|link=wikipedia:United Kingdom          |United Kingdom]]
 
  | GRC = [[File:Flag of Greece.png                        |{{{size|22px}}}|link=wikipedia:Greece                  |Greece]]
 
  | GRC = [[File:Flag of Greece.png                        |{{{size|22px}}}|link=wikipedia:Greece                  |Greece]]
 
  | HKG = [[File:Flag of Hong Kong.png                    |{{{size|22px}}}|link=wikipedia:Hong Kong              |Hong Kong]]
 
  | HKG = [[File:Flag of Hong Kong.png                    |{{{size|22px}}}|link=wikipedia:Hong Kong              |Hong Kong]]
  | IRL = [[File:Flag of Ireland.png                      |{{{size|22px}}}|link=wikipedia:Ireland                |Ireland]]
+
  | IRL = [[File:Flag of Ireland.png                      |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Ireland                |Ireland]]
 
  | ISR = [[File:Flag of Israel.png                        |{{{size|22px}}}|link=wikipedia:Israel                  |Israel]]
 
  | ISR = [[File:Flag of Israel.png                        |{{{size|22px}}}|link=wikipedia:Israel                  |Israel]]
 
  | ITA = [[File:Flag of Italy.png                        |{{{size|22px}}}|link=wikipedia:Italy                  |Italy]]
 
  | ITA = [[File:Flag of Italy.png                        |{{{size|22px}}}|link=wikipedia:Italy                  |Italy]]
  | JPN = [[File:Flag of Japan.png                        |{{{size|22px}}}|link=wikipedia:Japan                  |Japan]]
+
  | JPN = [[File:Flag of Japan.png                        |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Japan                  |Japan]]
  | KOR = [[File:Flag of South Korea.png                  |{{{size|22px}}}|link=wikipedia:South Korea            |South Korea]]
+
  | KOR = [[File:Flag of South Korea.png                  |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:South Korea            |South Korea]]
 
  | LUX = [[File:Flag of Luxembourg.png                    |{{{size|22px}}}|link=wikipedia:Luxembourg              |Luxembourg]]
 
  | LUX = [[File:Flag of Luxembourg.png                    |{{{size|22px}}}|link=wikipedia:Luxembourg              |Luxembourg]]
 
  | MEX = [[File:Flag of Mexico.png                        |{{{size|22px}}}|link=wikipedia:Mexico                  |Mexico]]
 
  | MEX = [[File:Flag of Mexico.png                        |{{{size|22px}}}|link=wikipedia:Mexico                  |Mexico]]
Line 29: Line 29:
 
  | NZL = [[File:Flag of New Zealand.png                  |{{{size|22px}}}|link=wikipedia:New Zealand            |New Zealand]]
 
  | NZL = [[File:Flag of New Zealand.png                  |{{{size|22px}}}|link=wikipedia:New Zealand            |New Zealand]]
 
  | PHL = [[File:Flag of the Philippines.png              |{{{size|22px}}}|link=wikipedia:Philippines            |Philippines]]
 
  | PHL = [[File:Flag of the Philippines.png              |{{{size|22px}}}|link=wikipedia:Philippines            |Philippines]]
  | POL = [[File:Flag of Poland.png                        |{{{size|22px}}}|link=wikipedia:Poland                  |Poland]]
+
  | POL = [[File:Flag of Poland.png                        |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Poland                  |Poland]]
 
  | PRI = [[File:Flag of Puerto Rico.png                  |{{{size|22px}}}|link=wikipedia:Puerto Rico            |Puerto Rico]]
 
  | PRI = [[File:Flag of Puerto Rico.png                  |{{{size|22px}}}|link=wikipedia:Puerto Rico            |Puerto Rico]]
 
  | RUS = [[File:Flag of Russia.png                        |{{{size|22px}}}|link=wikipedia:Russia                  |Russia]]
 
  | RUS = [[File:Flag of Russia.png                        |{{{size|22px}}}|link=wikipedia:Russia                  |Russia]]
Line 35: Line 35:
 
  | USA = [[File:Flag of the United States.png            |{{{size|22px}}}|link=wikipedia:United States of America|United States of America]]
 
  | USA = [[File:Flag of the United States.png            |{{{size|22px}}}|link=wikipedia:United States of America|United States of America]]
 
<!-- SUB-DIVISIONS -->
 
<!-- SUB-DIVISIONS -->
  | GB-ENG = [[File:Flag of England.png                    |{{{size|22px}}}|link=wikipedia:England                |England]]
+
  | GB-ENG = [[File:Flag of England.png                    |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:England                |England]]
 
  | GB-SCT = [[File:Flag of Scotland.png                  |{{{size|22px}}}|link=wikipedia:Scotland                |Scotland]]
 
  | GB-SCT = [[File:Flag of Scotland.png                  |{{{size|22px}}}|link=wikipedia:Scotland                |Scotland]]
 
  | GB-WLS = [[File:Flag of Wales.png                      |{{{size|22px}}}|link=wikipedia:Wales                  |Wales]]
 
  | GB-WLS = [[File:Flag of Wales.png                      |{{{size|22px}}}|link=wikipedia:Wales                  |Wales]]
 
  | CA-QC = [[File:Flag of Quebec.png                      |{{{size|22px}}}|link=wikipedia:Quebec                  |Quebec]]
 
  | CA-QC = [[File:Flag of Quebec.png                      |{{{size|22px}}}|link=wikipedia:Quebec                  |Quebec]]
 
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Revision as of 19:04, September 10, 2020

Template documentation (view)


Usage

{{Flag|<ISO Alpha 3 country code>|size=}}

This template is designed primarily for use in infoboxes and will create an image of a flag of the country designated in the country code parameter. The image will link to the Wikipedia article about that country and the name of the country will appear as rollover text. This text can be changed with the text parameter. The size parameter allows the image size to be specified in pixels. Flags that feature the color white prominently in their designs will automatically appear with a border. To disable this functionality, set the border parameter to any value (e.g. border=false).

The currently supported regions and their corresponding ISO Alpha 3 country codes are:

The following sub-divisions are also supported using ISO 3166 codes.

Examples

{{Flag|JPN}}

Japan

{{Flag|JPN|border=false}}

Japan

{{Flag|USA|size=50px}}
United States of America