Difference between revisions of "Template:Flag"

From Nookipedia, the Animal Crossing wiki
(Adding option to change tooltip text)
(+needed countries)
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
  | BRA = [[File:Flag of Brazil.png                        |{{{size|22px}}}|link=wikipedia:Brazil                  |{{{text|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                  |{{{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}}}]]
 
  | 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.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}}}]]
 
  | 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.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}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
 
  | EUR = [[File:Flag of Europe.png                        |{{{size|22px}}}|link=wikipedia:Europe                  |{{{text|Europe}}}]]
Line 18: Line 21:
 
  | 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.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}}}]]
 
  | 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.png                        |{{{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.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}}}]]
 
  | 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}}}]]
 
  | LUX = [[File:Flag of Luxembourg.png                    |{{{size|22px}}}|link=wikipedia:Luxembourg              |{{{text|Luxembourg}}}]]
Line 28: Line 33:
 
  | 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}}}]]
 +
| 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}}}]]
 
  | 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}}}]]
 
  | 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}}}]]
 
  | 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.png                        |{{{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.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}}}]]
 
  | 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                    |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:England                |{{{text|England}}}]]
 
  | GB-ENG = [[File:Flag of England.png                    |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:England                |{{{text|England}}}]]

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