Difference between revisions of "Template:Flag"

From Nookipedia, the Animal Crossing wiki
(Adding new flag)
(adding size parameter, plus some other tweaks)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1|USA}}}
 
<includeonly>{{#switch: {{{1|USA}}}
  | WWW =[[File:Flag of the United Nations.png|22px|link=wikipedia:Earth|Worldwide]]
+
  | WWW =[[File:Flag of the United Nations.png           |{{{size|22px}}}|link=wikipedia:Earth                   |Worldwide]]
  | AUS =[[File:Flag of Australia small.png|link=wikipedia:Australia|Australia]]
+
  | AUS =[[File:Flag of Australia.png                     |{{{size|22px}}}|link=wikipedia:Australia               |Australia]]
  | CAN =[[File:Flag of Canada small.png|22px|link=wikipedia:Canada|Canada]]
+
  | CAN =[[File:Flag of Canada.png                       |{{{size|22px}}}|link=wikipedia:Canada                 |Canada]]
  | CHN =[[File:Flag of the People's Republic of China.png|22px|link=wikipedia:China|China]]
+
  | CHN =[[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China                   |China]]
  | EUR =[[File:Flag of Europe small.png|link=wikipedia:Europe|Europe]]
+
  | EUR =[[File:Flag of Europe.png                       |{{{size|22px}}}|link=wikipedia:Europe                 |Europe]]
  | KOR =[[File:Flag of South Korea.png|22px|link=wikipedia:South Korea|South Korea]]
+
  | KOR =[[File:Flag of South Korea.png                   |{{{size|22px}}}|link=wikipedia:South Korea             |South Korea]]
  | JPN =[[File:Flag of Japan small.png|link=wikipedia:Japan|Japan]]
+
  | JPN =[[File:Flag of Japan.png                         |{{{size|22px}}}|link=wikipedia:Japan                   |Japan]]
  | USA =[[File:Flag of the United States small.png|link=wikipedia:United States of America|United States of America]]
+
  | USA =[[File:Flag of the United States.png             |{{{size|22px}}}|link=wikipedia:United States of America|United States of America]]
 
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Revision as of 13:01, March 15, 2020

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