Difference between revisions of "Template:Flag"

From Nookipedia, the Animal Crossing wiki
(+needed countries)
(replacing some pngs with svgs)
Line 5: Line 5:
 
  | AUS = [[File:Flag of Australia.png                    |{{{size|22px}}}|link=wikipedia:Australia              |{{{text|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                |{{{text|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                  |{{{text|Brazil}}}]]
+
  | BRA = [[File:Flag of Brazil.svg                       |{{{size|22px}}}|link=wikipedia:Brazil                  |{{{text|Brazil}}}]]
 
  | CAN = [[File:Flag of Canada.png                        |{{{size|22px}}}|link=wikipedia:Canada                  |{{{text|Canada}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
+
  | CHN = [[File:Flag of the People's Republic of China.svg|{{{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}}}]]
 
  | 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}}}]]
+
  | DEU = [[File:Flag of Germany.svg                       |{{{size|22px}}}|link=wikipedia:Germany                |{{{text|Germany}}}]]
 
  | DNK = [[File:Flag of Denmark.png                      |{{{size|22px}}}|link=wikipedia:Denmark                |{{{text|Denmark}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
+
  | ESP = [[File:Flag of Spain.svg                         |{{{size|22px}}}|link=wikipedia:Spain                  |{{{text|Spain}}}]]
 
  | EUR = [[File:Flag of Europe.png                        |{{{size|22px}}}|link=wikipedia:Europe                  |{{{text|Europe}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
+
  | FRA = [[File:Flag of France.svg                       |{{{size|22px}}}|link=wikipedia:France                  |{{{text|France}}}]]
 
  | GBR = [[File:Flag of the United Kingdom.png            |{{{size|22px}}}|link=wikipedia:United Kingdom          |{{{text|United Kingdom}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
+
  | HKG = [[File:Flag of Hong Kong.svg                     |{{{size|22px}}}|link=wikipedia:Hong Kong              |{{{text|Hong Kong}}}]]
 
  | IND = [[File:Flag of India.png                        |{{{size|22px}}}|link=wikipedia:India                  |{{{text|India}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
+
  | ITA = [[File:Flag of Italy.svg                         |{{{size|22px}}}|link=wikipedia:Italy                  |{{{text|Italy}}}]]
  | JPN = [[File:Flag of Japan.png                         |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Japan                  |{{{text|Japan}}}]]
+
  | JPN = [[File:Flag of Japan.svg                         |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Japan                  |{{{text|Japan}}}]]
 
  | KEN = [[File:Flag of Kenya.png                        |{{{size|22px}}}|link=wikipedia:Kenya                  |{{{text|Kenya}}}]]
 
  | 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}}}]]
+
  | KOR = [[File:Flag of South Korea.svg                   |{{#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}}}]]
 
  | 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}}}]]
+
  | MEX = [[File:Flag of Mexico.svg                       |{{{size|22px}}}|link=wikipedia:Mexico                  |{{{text|Mexico}}}]]
  | NLD = [[File:Flag of the Netherlands.png               |{{{size|22px}}}|link=wikipedia:Netherlands            |{{{text|Netherlands}}}]]
+
  | NLD = [[File:Flag of the Netherlands.svg               |{{{size|22px}}}|link=wikipedia:Netherlands            |{{{text|Netherlands}}}]]
 
  | NOR = [[File:Flag of Norway.png                        |{{{size|22px}}}|link=wikipedia:Norway                  |{{{text|Norway}}}]]
 
  | 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}}}]]
 
  | NZL = [[File:Flag of New Zealand.png                  |{{{size|22px}}}|link=wikipedia:New Zealand            |{{{text|New Zealand}}}]]
Line 38: Line 38:
 
  | PRT = [[File:Flag of Portugal.png                      |{{{size|22px}}}|link=wikipedia:Portugal                |{{{text|Portugal}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
+
  | RUS = [[File:Flag of Russia.svg                       |{{{size|22px}}}|link=wikipedia:Russia                  |{{{text|Russia}}}]]
  | SAU = [[File:Flag of Saudi Arabia.png                 |{{{size|22px}}}|link=wikipedia:Saudi Arabia            |{{{text|Saudi Arabia}}}]]
+
  | SAU = [[File:Flag of Saudi Arabia.svg                 |{{{size|22px}}}|link=wikipedia:Saudi Arabia            |{{{text|Saudi Arabia}}}]]
 
  | SGP = [[File:Flag of Singapore.png                    |{{{size|22px}}}|link=wikipedia:Singapore              |{{{text|Singapore}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
+
  | USA = [[File:Flag of the United States.svg             |{{{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}}}]]
 
  | VNM = [[File:Flag of Vietnam.png                      |{{{size|22px}}}|link=wikipedia:Vietnam                |{{{text|Vietnam}}}]]
 
<!-- SUB-DIVISIONS -->
 
<!-- SUB-DIVISIONS -->
Line 49: Line 49:
 
  | GB-SCT = [[File:Flag of Scotland.png                  |{{{size|22px}}}|link=wikipedia:Scotland                |{{{text|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                  |{{{text|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                  |{{{text|Quebec}}}]]
+
  | CA-QC = [[File:Flag of Quebec.svg                     |{{{size|22px}}}|link=wikipedia:Quebec                  |{{{text|Quebec}}}]]
 
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Revision as of 14:08, November 22, 2022

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