Difference between revisions of "Template:Flag"

From Nookipedia, the Animal Crossing wiki
(Massive expansion with many more regions now supported)
(+needed countries)
(8 intermediate revisions by 3 users 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                  |{{{text|Worldwide}}}]]
  | ATA = [[File:Flag of Antarctica.png                    |{{{size|22px}}}|link=wikipedia:Antartica              |Antartica]]
+
  | ATA = [[File:Flag of Antarctica.png                    |{{{size|22px}}}|link=wikipedia:Antartica              |{{{text|Antartica}}}]]
  | AUS = [[File:Flag of Australia.png                    |{{{size|22px}}}|link=wikipedia:Australia              |Australia]]
+
  | AUS = [[File:Flag of Australia.png                    |{{{size|22px}}}|link=wikipedia:Australia              |{{{text|Australia}}}]]
  | BEL = [[File:Flag of Belgium.png                      |{{{size|22px}}}|link=wikipedia:Belgium                |Belgium]]
+
  | BEL = [[File:Flag of Belgium.png                      |{{{size|22px}}}|link=wikipedia:Belgium                |{{{text|Belgium}}}]]
  | BRA = [[File:Flag of Brazil.png                        |{{{size|22px}}}|link=wikipedia:Brazil                  |Brazil]]
+
  | BRA = [[File:Flag of Brazil.png                        |{{{size|22px}}}|link=wikipedia:Brazil                  |{{{text|Brazil}}}]]
  | CAN = [[File:Flag of Canada.png                        |{{{size|22px}}}|link=wikipedia:Canada                  |Canada]]
+
  | CAN = [[File:Flag of Canada.png                        |{{{size|22px}}}|link=wikipedia:Canada                  |{{{text|Canada}}}]]
  | CHN = [[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China                   |China]]
+
  | CHL = [[File:Flag of Chile.png                        |{{{size|22px}}}|link=wikipedia:Chile                   |{{{text|Chile}}}]]
  | CZE = [[File:Flag of Czech Republic.png               |{{{size|22px}}}|link=wikipedia:Czech Republic          |Czech Republic]]
+
  | CHN = [[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China                  |{{{text|China}}}]]
  | DEU = [[File:Flag of Germany.png                       |{{{size|22px}}}|link=wikipedia:Germany                |Germany]]
+
  | CZE = [[File:Flag of the Czech Republic.png           |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Czech Republic          |{{{text|Czech Republic}}}]]
  | DZA = [[File:Flag of Algeria.png                      |{{{size|22px}}}|link=wikipedia:Algeria                 |Algeria]]
+
  | DEU = [[File:Flag of Germany.png                      |{{{size|22px}}}|link=wikipedia:Germany                 |{{{text|Germany}}}]]
  | ESP = [[File:Flag of Spain.png                         |{{{size|22px}}}|link=wikipedia:Spain                  |Spain]]
+
  | DNK = [[File:Flag of Denmark.png                       |{{{size|22px}}}|link=wikipedia:Denmark                |{{{text|Denmark}}}]]
  | EUR = [[File:Flag of Europe.png                       |{{{size|22px}}}|link=wikipedia:Europe                  |Europe]]
+
  | DZA = [[File:Flag of Algeria.png                       |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Algeria                 |{{{text|Algeria}}}]]
| FIN = [[File:Flag of Finland.png                      |{{{size|22px}}}|link=wikipedia:Finland                 |Finland]]
+
  | EGY = [[File:Flag of Egypt.png                         |{{{size|22px}}}|link=wikipedia:Egypt                  |{{{text|Egypt}}}]]
  | FRA = [[File:Flag of France.png                       |{{{size|22px}}}|link=wikipedia:France                  |France]]
+
  | ESP = [[File:Flag of Spain.png                         |{{{size|22px}}}|link=wikipedia:Spain                  |{{{text|Spain}}}]]
  | GBR = [[File:Flag of the United Kingdom.png           |{{{size|22px}}}|link=wikipedia:United Kingdom          |United Kingdom]]
+
  | EUR = [[File:Flag of Europe.png                        |{{{size|22px}}}|link=wikipedia:Europe                 |{{{text|Europe}}}]]
  | GRC = [[File:Flag of Greece.png                        |{{{size|22px}}}|link=wikipedia:Greece                 |Greece]]
+
  | FIN = [[File:Flag of Finland.png                       |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Finland                 |{{{text|Finland}}}]]
  | HKG = [[File:Flag of Hong Kong.png                     |{{{size|22px}}}|link=wikipedia:Hong Kong              |Hong Kong]]
+
  | FRA = [[File:Flag of France.png                        |{{{size|22px}}}|link=wikipedia:France                 |{{{text|France}}}]]
| IRL = [[File:Flag of Ireland.png                      |{{{size|22px}}}|link=wikipedia:Ireland                 |Ireland]]
+
  | GBR = [[File:Flag of the United Kingdom.png           |{{{size|22px}}}|link=wikipedia:United Kingdom          |{{{text|United Kingdom}}}]]
  | ISR = [[File:Flag of Israel.png                        |{{{size|22px}}}|link=wikipedia:Israel                 |Israel]]
+
  | GRC = [[File:Flag of Greece.png                       |{{{size|22px}}}|link=wikipedia:Greece                  |{{{text|Greece}}}]]
  | ITA = [[File:Flag of Italy.png                         |{{{size|22px}}}|link=wikipedia:Italy                  |Italy]]
+
  | HKG = [[File:Flag of Hong Kong.png                     |{{{size|22px}}}|link=wikipedia:Hong Kong              |{{{text|Hong Kong}}}]]
  | JPN = [[File:Flag of Japan.png                         |{{{size|22px}}}|link=wikipedia:Japan                  |Japan]]
+
  | IND = [[File:Flag of India.png                         |{{{size|22px}}}|link=wikipedia:India                  |{{{text|India}}}]]
  | KOR = [[File:Flag of South Korea.png                   |{{{size|22px}}}|link=wikipedia:South Korea            |South Korea]]
+
  | IRL = [[File:Flag of Ireland.png                       |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Ireland                |{{{text|Ireland}}}]]
  | LUX = [[File:Flag of Luxembourg.png                   |{{{size|22px}}}|link=wikipedia:Luxembourg              |Luxembourg]]
+
  | ISR = [[File:Flag of Israel.png                       |{{{size|22px}}}|link=wikipedia:Israel                  |{{{text|Israel}}}]]
  | MEX = [[File:Flag of Mexico.png                       |{{{size|22px}}}|link=wikipedia:Mexico                  |Mexico]]
+
  | ITA = [[File:Flag of Italy.png                         |{{{size|22px}}}|link=wikipedia:Italy                  |{{{text|Italy}}}]]
  | NLD = [[File:Flag of the Netherlands.png               |{{{size|22px}}}|link=wikipedia:Netherlands            |Netherlands]]
+
  | JPN = [[File:Flag of Japan.png                         |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Japan                  |{{{text|Japan}}}]]
  | NOR = [[File:Flag of Norway.png                       |{{{size|22px}}}|link=wikipedia:Norway                  |Norway]]
+
  | KEN = [[File:Flag of Kenya.png                         |{{{size|22px}}}|link=wikipedia:Kenya                  |{{{text|Kenya}}}]]
  | NZL = [[File:Flag of New Zealand.png                   |{{{size|22px}}}|link=wikipedia:New Zealand            |New Zealand]]
+
  | KOR = [[File:Flag of South Korea.png                   |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:South Korea            |{{{text|South Korea}}}]]
  | PHL = [[File:Flag of the Phillipines.png               |{{{size|22px}}}|link=wikipedia:Phillipines            |Phillipines]]
+
  | LUX = [[File:Flag of Luxembourg.png                   |{{{size|22px}}}|link=wikipedia:Luxembourg              |{{{text|Luxembourg}}}]]
  | POL = [[File:Flag of Poland.png                       |{{{size|22px}}}|link=wikipedia:Poland                  |Poland]]
+
  | MEX = [[File:Flag of Mexico.png                        |{{{size|22px}}}|link=wikipedia:Mexico                 |{{{text|Mexico}}}]]
  | PRI = [[File:Flag of Puerto Rico.png                   |{{{size|22px}}}|link=wikipedia:Puerto Rico            |Puerto Rico]]
+
  | NLD = [[File:Flag of the Netherlands.png               |{{{size|22px}}}|link=wikipedia:Netherlands            |{{{text|Netherlands}}}]]
  | RUS = [[File:Flag of Russia.png                        |{{{size|22px}}}|link=wikipedia:Russia                 |Russia]]
+
  | NOR = [[File:Flag of Norway.png                        |{{{size|22px}}}|link=wikipedia:Norway                  |{{{text|Norway}}}]]
  | SAU = [[File:Flag of Saudi Arabia.png                 |{{{size|22px}}}|link=wikipedia:Saudi Arabia            |Saudi Arabia]]
+
| NZL = [[File:Flag of New Zealand.png                  |{{{size|22px}}}|link=wikipedia:New Zealand            |{{{text|New Zealand}}}]]
  | USA = [[File:Flag of the United States.png            |{{{size|22px}}}|link=wikipedia:United States of America|United States of America]]
+
| PER = [[File:Flag of Peru.png                          |{{{size|22px}}}|link=wikipedia:Peru                    |{{{text|Peru}}}]]
 +
| PHL = [[File:Flag of the Philippines.png              |{{{size|22px}}}|link=wikipedia:Philippines            |{{{text|Philippines}}}]]
 +
| POL = [[File:Flag of Poland.png                        |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Poland                  |{{{text|Poland}}}]]
 +
| PRT = [[File:Flag of Portugal.png                      |{{{size|22px}}}|link=wikipedia:Portugal                |{{{text|Portugal}}}]]
 +
| PRI = [[File:Flag of Puerto Rico.png                  |{{{size|22px}}}|link=wikipedia:Puerto Rico            |{{{text|Puerto Rico}}}]]
 +
| RUS = [[File:Flag of Russia.png                        |{{{size|22px}}}|link=wikipedia:Russia                  |{{{text|Russia}}}]]
 +
| SAU = [[File:Flag of Saudi Arabia.png                  |{{{size|22px}}}|link=wikipedia:Saudi Arabia            |{{{text|Saudi Arabia}}}]]
 +
| SGP = [[File:Flag of Singapore.png                    |{{{size|22px}}}|link=wikipedia:Singapore              |{{{text|Singapore}}}]]
 +
| SWE = [[File:Flag of Sweden.png                        |{{{size|22px}}}|link=wikipedia:Sweden                  |{{{text|Sweden}}}]]
 +
| THA = [[File:Flag of Thailand.png                      |{{{size|22px}}}|link=wikipedia:Thailand                |{{{text|Thailand}}}]]
 +
| USA = [[File:Flag of the United States.png            |{{{size|22px}}}|link=wikipedia:United States of America|{{{text|United States of America}}}]]
 +
| VNM = [[File:Flag of Vietnam.png                      |{{{size|22px}}}|link=wikipedia:Vietnam                |{{{text|Vietnam}}}]]
 
<!-- 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                |{{{text|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                |{{{text|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                  |{{{text|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                  |{{{text|Quebec}}}]]
 
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Revision as of 18:27, March 18, 2021

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