Difference between revisions of "Template:Flag"

From Nookipedia, the Animal Crossing wiki
(Adding option to change tooltip text)
(Added Denmark to the template)
Line 10: Line 10:
 
  | 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}}}]]
 
  | 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}}}]]

Revision as of 16:38, 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