Difference between revisions of "Template:Flag"
Dorsal Axe (talk | contribs) (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:
-
WLD
for Worldwide - Antartica
ATA
for Antartica - Australia
AUS
for the Commonwealth of Australia - Belgium
BEL
for the Kingdom of Belgium - Brazil
BRA
for the Federative Republic of Brazil - Canada
CAN
for Canada CHL
for the Republic of Chile- China
CHN
for the People's Republic of China - Czech Republic
CZE
for the Czech Republic - Germany
DEU
for the Federal Republic of Germany - Denmark
DNK
for Denmark - Algeria
DZA
for the People's Democratic Republic of Algeria EGY
for the Arab Republic of Egypt- Spain
ESP
for the Kingdom of Spain - Europe
EUR
for Europe - Finland
FIN
for the Republic of Finland - France
FRA
for the French Republic (France) - United Kingdom
GBR
for the United Kingdom - Greece
GRC
for the Hellenic Republic (Greece) - Hong Kong
HKG
for Hong Kong SAR IDN
for the Republic of IndonesiaIND
for the Republic of India- Ireland
IRL
for the Republic of Ireland -
ISR
for the State of Israel - Italy
ITA
for the Italian Republic (Italy) - Japan
JPN
for Japan KEN
for the Republic of Kenya- South Korea
KOR
for the Republic of Korea (South Korea) - Luxembourg
LUX
for the Grand Duchy of Luxembourg - Mexico
MEX
for the United Mexican States (Mexico) MLT
for the Republic of Malta- Netherlands
NLD
for the Netherlands - Norway
NOR
for the Kingdom of Norway - New Zealand
NZL
for New Zealand PER
for the Republic of Peru- Philippines
PHL
for the Republic of the Philippines - Poland
POL
for the Republic of Poland - Puerto Rico
PRI
for the Commonwealth of Puerto Rico PRT
for the Portuguese Republic (Portugal)PSE
for the State of Palestine- Russia
RUS
for the Russian Federation (Russia) - Saudi Arabia
SAU
for the Kingdom of Saudi Arabia SGP
for the Republic of SingaporeSWE
for the Kingdom of SwedenTWN
for the Republic of China (Taiwan)THA
for the Kingdom of Thailand- United States of America
USA
for the United States of America VNM
for the Socialist Republic of Vietnam
The following sub-divisions are also supported using ISO 3166 codes.
- England
GB-ENG
for England - Scotland
GB-SCT
for Scotland - Wales
GB-WLS
for Wales - Quebec
CA-QC
for Quebec
Examples
{{Flag|JPN}}
{{Flag|JPN|border=false}}
{{Flag|USA|size=50px}}United States of America