Difference between revisions of "Template:Flag"

From Nookipedia, the Animal Crossing wiki
(adding size parameter, plus some other tweaks)
(Massive expansion with many more regions now supported)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1|USA}}}
 
<includeonly>{{#switch: {{{1|USA}}}
  | WWW =[[File:Flag of the United Nations.png            |{{{size|22px}}}|link=wikipedia:Earth                  |Worldwide]]
+
<!-- REGIONS -->
  | AUS =[[File:Flag of Australia.png                    |{{{size|22px}}}|link=wikipedia:Australia              |Australia]]
+
  | WLD = [[File:Flag of the United Nations.png            |{{{size|22px}}}|link=wikipedia:Earth                  |Worldwide]]
  | CAN =[[File:Flag of Canada.png                        |{{{size|22px}}}|link=wikipedia:Canada                  |Canada]]
+
| ATA = [[File:Flag of Antarctica.png                    |{{{size|22px}}}|link=wikipedia:Antartica              |Antartica]]
  | CHN =[[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China                  |China]]
+
  | AUS = [[File:Flag of Australia.png                    |{{{size|22px}}}|link=wikipedia:Australia              |Australia]]
  | EUR =[[File:Flag of Europe.png                        |{{{size|22px}}}|link=wikipedia:Europe                  |Europe]]
+
| BEL = [[File:Flag of Belgium.png                      |{{{size|22px}}}|link=wikipedia:Belgium                |Belgium]]
  | KOR =[[File:Flag of South Korea.png                  |{{{size|22px}}}|link=wikipedia:South Korea            |South Korea]]
+
| BRA = [[File:Flag of Brazil.png                        |{{{size|22px}}}|link=wikipedia:Brazil                  |Brazil]]
  | JPN =[[File:Flag of Japan.png                         |{{{size|22px}}}|link=wikipedia:Japan                   |Japan]]
+
  | CAN = [[File:Flag of Canada.png                        |{{{size|22px}}}|link=wikipedia:Canada                  |Canada]]
  | USA =[[File:Flag of the United States.png            |{{{size|22px}}}|link=wikipedia:United States of America|United States of America]]
+
  | CHN = [[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China                  |China]]
 +
| CZE = [[File:Flag of Czech Republic.png                |{{{size|22px}}}|link=wikipedia:Czech Republic          |Czech Republic]]
 +
| DEU = [[File:Flag of Germany.png                      |{{{size|22px}}}|link=wikipedia:Germany                |Germany]]
 +
| DZA = [[File:Flag of Algeria.png                      |{{{size|22px}}}|link=wikipedia:Algeria                |Algeria]]
 +
| ESP = [[File:Flag of Spain.png                        |{{{size|22px}}}|link=wikipedia:Spain                  |Spain]]
 +
  | EUR = [[File:Flag of Europe.png                        |{{{size|22px}}}|link=wikipedia:Europe                  |Europe]]
 +
| FIN = [[File:Flag of Finland.png                      |{{{size|22px}}}|link=wikipedia:Finland                |Finland]]
 +
| 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]]
 +
| 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]]
 +
| IRL = [[File:Flag of Ireland.png                      |{{{size|22px}}}|link=wikipedia:Ireland                |Ireland]]
 +
| ISR = [[File:Flag of Israel.png                        |{{{size|22px}}}|link=wikipedia:Israel                  |Israel]]
 +
| ITA = [[File:Flag of Italy.png                        |{{{size|22px}}}|link=wikipedia:Italy                  |Italy]]
 +
| JPN = [[File:Flag of Japan.png                        |{{{size|22px}}}|link=wikipedia:Japan                  |Japan]]
 +
  | KOR = [[File:Flag of South Korea.png                  |{{{size|22px}}}|link=wikipedia:South Korea            |South Korea]]
 +
  | LUX = [[File:Flag of Luxembourg.png                    |{{{size|22px}}}|link=wikipedia:Luxembourg              |Luxembourg]]
 +
| MEX = [[File:Flag of Mexico.png                        |{{{size|22px}}}|link=wikipedia:Mexico                  |Mexico]]
 +
| NLD = [[File:Flag of the Netherlands.png              |{{{size|22px}}}|link=wikipedia:Netherlands            |Netherlands]]
 +
| NOR = [[File:Flag of Norway.png                        |{{{size|22px}}}|link=wikipedia:Norway                  |Norway]]
 +
| NZL = [[File:Flag of New Zealand.png                  |{{{size|22px}}}|link=wikipedia:New Zealand            |New Zealand]]
 +
| PHL = [[File:Flag of the Phillipines.png              |{{{size|22px}}}|link=wikipedia:Phillipines            |Phillipines]]
 +
| POL = [[File:Flag of Poland.png                       |{{{size|22px}}}|link=wikipedia:Poland                  |Poland]]
 +
| 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]]
 +
| SAU = [[File:Flag of Saudi Arabia.png                  |{{{size|22px}}}|link=wikipedia:Saudi Arabia            |Saudi Arabia]]
 +
  | USA = [[File:Flag of the United States.png            |{{{size|22px}}}|link=wikipedia:United States of America|United States of America]]
 +
<!-- SUB-DIVISIONS -->
 +
| GB-ENG = [[File:Flag of England.png                    |{{{size|22px}}}|link=wikipedia:England                |England]]
 +
| 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]]
 +
| 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 12:50, July 14, 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