Difference between revisions of "Template:Flag"

From Nookipedia, the Animal Crossing wiki
(A few tweaks)
(+needed countries)
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1|USA}}}
 
<includeonly>{{#switch: {{{1|USA}}}
  | AUS =[[File:Flag of Australia small.png|link=wikipedia:Australia|Australia]]
+
<!-- REGIONS -->
  | CAN =[[File:Flag of Canada small.png|22px|link=wikipedia:Canada|Canada]]
+
| WLD = [[File:Nook Miles Globe NH Icon.png              |{{{size|22px}}}|link=wikipedia:Earth                  |{{{text|Worldwide}}}]]
  | CHN =[[File:Flag of the People's Republic of China.png|22px|link=wikipedia:China|China]]
+
| ATA = [[File:Flag of Antarctica.png                    |{{{size|22px}}}|link=wikipedia:Antartica              |{{{text|Antartica}}}]]
  | EUR =[[File:Flag of Europe small.png|link=wikipedia:Europe|Europe]]
+
  | AUS = [[File:Flag of Australia.png                     |{{{size|22px}}}|link=wikipedia:Australia               |{{{text|Australia}}}]]
  | KOR =[[File:Flag of South Korea small.png|link=wikipedia:South Korea|South Korea]]
+
| BEL = [[File:Flag of Belgium.png                      |{{{size|22px}}}|link=wikipedia:Belgium                |{{{text|Belgium}}}]]
  | JPN =[[File:Flag of Japan small.png|link=wikipedia:Japan|Japan]]
+
| BRA = [[File:Flag of Brazil.png                        |{{{size|22px}}}|link=wikipedia:Brazil                  |{{{text|Brazil}}}]]
  | USA =[[File:Flag of the United States small.png|link=wikipedia:United States of America|United States of America]]
+
  | CAN = [[File:Flag of Canada.png                       |{{{size|22px}}}|link=wikipedia:Canada                 |{{{text|Canada}}}]]
 +
| CHL = [[File:Flag of Chile.png                        |{{{size|22px}}}|link=wikipedia:Chile                  |{{{text|Chile}}}]]
 +
  | CHN = [[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China                   |{{{text|China}}}]]
 +
| CZE = [[File:Flag of the Czech Republic.png            |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Czech Republic          |{{{text|Czech Republic}}}]]
 +
| DEU = [[File:Flag of Germany.png                      |{{{size|22px}}}|link=wikipedia:Germany                |{{{text|Germany}}}]]
 +
| DNK = [[File:Flag of Denmark.png                      |{{{size|22px}}}|link=wikipedia:Denmark                |{{{text|Denmark}}}]]
 +
| DZA = [[File:Flag of Algeria.png                      |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Algeria                |{{{text|Algeria}}}]]
 +
| EGY = [[File:Flag of Egypt.png                        |{{{size|22px}}}|link=wikipedia:Egypt                  |{{{text|Egypt}}}]]
 +
| ESP = [[File:Flag of Spain.png                        |{{{size|22px}}}|link=wikipedia:Spain                  |{{{text|Spain}}}]]
 +
  | EUR = [[File:Flag of Europe.png                       |{{{size|22px}}}|link=wikipedia:Europe                 |{{{text|Europe}}}]]
 +
| FIN = [[File:Flag of Finland.png                      |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Finland                |{{{text|Finland}}}]]
 +
| FRA = [[File:Flag of France.png                        |{{{size|22px}}}|link=wikipedia:France                  |{{{text|France}}}]]
 +
| GBR = [[File:Flag of the United Kingdom.png            |{{{size|22px}}}|link=wikipedia:United Kingdom          |{{{text|United Kingdom}}}]]
 +
| GRC = [[File:Flag of Greece.png                        |{{{size|22px}}}|link=wikipedia:Greece                  |{{{text|Greece}}}]]
 +
| HKG = [[File:Flag of Hong Kong.png                    |{{{size|22px}}}|link=wikipedia:Hong Kong              |{{{text|Hong Kong}}}]]
 +
| IND = [[File:Flag of India.png                        |{{{size|22px}}}|link=wikipedia:India                  |{{{text|India}}}]]
 +
| IRL = [[File:Flag of Ireland.png                      |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Ireland                |{{{text|Ireland}}}]]
 +
| ISR = [[File:Flag of Israel.png                        |{{{size|22px}}}|link=wikipedia:Israel                  |{{{text|Israel}}}]]
 +
| ITA = [[File:Flag of Italy.png                        |{{{size|22px}}}|link=wikipedia:Italy                  |{{{text|Italy}}}]]
 +
| JPN = [[File:Flag of Japan.png                        |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Japan                  |{{{text|Japan}}}]]
 +
| KEN = [[File:Flag of Kenya.png                        |{{{size|22px}}}|link=wikipedia:Kenya                  |{{{text|Kenya}}}]]
 +
  | KOR = [[File:Flag of South Korea.png                   |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:South Korea             |{{{text|South Korea}}}]]
 +
  | LUX = [[File:Flag of Luxembourg.png                    |{{{size|22px}}}|link=wikipedia:Luxembourg              |{{{text|Luxembourg}}}]]
 +
| MEX = [[File:Flag of Mexico.png                        |{{{size|22px}}}|link=wikipedia:Mexico                  |{{{text|Mexico}}}]]
 +
| NLD = [[File:Flag of the Netherlands.png              |{{{size|22px}}}|link=wikipedia:Netherlands            |{{{text|Netherlands}}}]]
 +
| NOR = [[File:Flag of Norway.png                        |{{{size|22px}}}|link=wikipedia:Norway                  |{{{text|Norway}}}]]
 +
| NZL = [[File:Flag of New Zealand.png                  |{{{size|22px}}}|link=wikipedia:New Zealand            |{{{text|New Zealand}}}]]
 +
| 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 -->
 +
| 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                |{{{text|Scotland}}}]]
 +
| 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                  |{{{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