Difference between revisions of "Template:Flag"

From Nookipedia, the Animal Crossing wiki
(replacing some pngs with svgs)
(Adding Taiwan)
 
(One intermediate revision by one other user not shown)
Line 21: 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.svg                    |{{{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}}}]]
 +
| IDN = [[File:Flag of Indonesia.svg                    |{{{size|22px}}}|link=wikipedia:Indonesia              |{{{text|Indonesia}}}]]
 
  | 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}}}]]
Line 30: Line 31:
 
  | 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.svg                        |{{{size|22px}}}|link=wikipedia:Mexico                  |{{{text|Mexico}}}]]
 
  | MEX = [[File:Flag of Mexico.svg                        |{{{size|22px}}}|link=wikipedia:Mexico                  |{{{text|Mexico}}}]]
 +
| MLT = [[File:Flag of Malta.svg                        |{{{size|22px}}}|link=wikipedia:Malta                  |{{{text|Malta}}}]]
 
  | NLD = [[File:Flag of the Netherlands.svg              |{{{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}}}]]
Line 42: Line 44:
 
  | 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}}}]]
 +
| TWN = [[File:Flag of Taiwan.svg                        |{{{size|22px}}}|link=wikipedia:Taiwan                  |{{{text|Taiwan}}}]]
 
  | 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.svg            |{{{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           |{{{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 -->

Latest revision as of 00:02, January 28, 2024

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