Difference between revisions of "Template:Flag"
Dorsal Axe (talk | contribs) (adding size parameter, plus some other tweaks) |
Dorsal Axe (talk | contribs) (Massive expansion with many more regions now supported) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1|USA}}} | <includeonly>{{#switch: {{{1|USA}}} | ||
− | | | + | <!-- REGIONS --> |
− | | AUS =[[File:Flag of Australia.png |{{{size|22px}}}|link=wikipedia:Australia |Australia]] | + | | WLD = [[File:Flag of the United Nations.png |{{{size|22px}}}|link=wikipedia:Earth |Worldwide]] |
− | | CAN =[[File:Flag of Canada.png |{{{size|22px}}}|link=wikipedia:Canada |Canada]] | + | | ATA = [[File:Flag of Antarctica.png |{{{size|22px}}}|link=wikipedia:Antartica |Antartica]] |
− | | CHN =[[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China |China]] | + | | AUS = [[File:Flag of Australia.png |{{{size|22px}}}|link=wikipedia:Australia |Australia]] |
− | | EUR =[[File:Flag of Europe.png |{{{size|22px}}}|link=wikipedia:Europe |Europe]] | + | | BEL = [[File:Flag of Belgium.png |{{{size|22px}}}|link=wikipedia:Belgium |Belgium]] |
− | | KOR =[[File:Flag of South Korea.png |{{{size|22px}}}|link=wikipedia:South Korea |South Korea]] | + | | BRA = [[File:Flag of Brazil.png |{{{size|22px}}}|link=wikipedia:Brazil |Brazil]] |
− | | | + | | CAN = [[File:Flag of Canada.png |{{{size|22px}}}|link=wikipedia:Canada |Canada]] |
− | | USA =[[File:Flag of the United States.png |{{{size|22px}}}|link=wikipedia:United States of America|United States of America]] | + | | CHN = [[File:Flag of the People's Republic of China.png|{{{size|22px}}}|link=wikipedia:China |China]] |
+ | | CZE = [[File:Flag of Czech Republic.png |{{{size|22px}}}|link=wikipedia:Czech Republic |Czech Republic]] | ||
+ | | DEU = [[File:Flag of Germany.png |{{{size|22px}}}|link=wikipedia:Germany |Germany]] | ||
+ | | DZA = [[File:Flag of Algeria.png |{{{size|22px}}}|link=wikipedia:Algeria |Algeria]] | ||
+ | | ESP = [[File:Flag of Spain.png |{{{size|22px}}}|link=wikipedia:Spain |Spain]] | ||
+ | | EUR = [[File:Flag of Europe.png |{{{size|22px}}}|link=wikipedia:Europe |Europe]] | ||
+ | | FIN = [[File:Flag of Finland.png |{{{size|22px}}}|link=wikipedia:Finland |Finland]] | ||
+ | | FRA = [[File:Flag of France.png |{{{size|22px}}}|link=wikipedia:France |France]] | ||
+ | | GBR = [[File:Flag of the United Kingdom.png |{{{size|22px}}}|link=wikipedia:United Kingdom |United Kingdom]] | ||
+ | | GRC = [[File:Flag of Greece.png |{{{size|22px}}}|link=wikipedia:Greece |Greece]] | ||
+ | | HKG = [[File:Flag of Hong Kong.png |{{{size|22px}}}|link=wikipedia:Hong Kong |Hong Kong]] | ||
+ | | IRL = [[File:Flag of Ireland.png |{{{size|22px}}}|link=wikipedia:Ireland |Ireland]] | ||
+ | | ISR = [[File:Flag of Israel.png |{{{size|22px}}}|link=wikipedia:Israel |Israel]] | ||
+ | | ITA = [[File:Flag of Italy.png |{{{size|22px}}}|link=wikipedia:Italy |Italy]] | ||
+ | | JPN = [[File:Flag of Japan.png |{{{size|22px}}}|link=wikipedia:Japan |Japan]] | ||
+ | | KOR = [[File:Flag of South Korea.png |{{{size|22px}}}|link=wikipedia:South Korea |South Korea]] | ||
+ | | LUX = [[File:Flag of Luxembourg.png |{{{size|22px}}}|link=wikipedia:Luxembourg |Luxembourg]] | ||
+ | | MEX = [[File:Flag of Mexico.png |{{{size|22px}}}|link=wikipedia:Mexico |Mexico]] | ||
+ | | NLD = [[File:Flag of the Netherlands.png |{{{size|22px}}}|link=wikipedia:Netherlands |Netherlands]] | ||
+ | | NOR = [[File:Flag of Norway.png |{{{size|22px}}}|link=wikipedia:Norway |Norway]] | ||
+ | | NZL = [[File:Flag of New Zealand.png |{{{size|22px}}}|link=wikipedia:New Zealand |New Zealand]] | ||
+ | | PHL = [[File:Flag of the Phillipines.png |{{{size|22px}}}|link=wikipedia:Phillipines |Phillipines]] | ||
+ | | POL = [[File:Flag of Poland.png |{{{size|22px}}}|link=wikipedia:Poland |Poland]] | ||
+ | | PRI = [[File:Flag of Puerto Rico.png |{{{size|22px}}}|link=wikipedia:Puerto Rico |Puerto Rico]] | ||
+ | | RUS = [[File:Flag of Russia.png |{{{size|22px}}}|link=wikipedia:Russia |Russia]] | ||
+ | | SAU = [[File:Flag of Saudi Arabia.png |{{{size|22px}}}|link=wikipedia:Saudi Arabia |Saudi Arabia]] | ||
+ | | USA = [[File:Flag of the United States.png |{{{size|22px}}}|link=wikipedia:United States of America|United States of America]] | ||
+ | <!-- SUB-DIVISIONS --> | ||
+ | | GB-ENG = [[File:Flag of England.png |{{{size|22px}}}|link=wikipedia:England |England]] | ||
+ | | GB-SCT = [[File:Flag of Scotland.png |{{{size|22px}}}|link=wikipedia:Scotland |Scotland]] | ||
+ | | GB-WLS = [[File:Flag of Wales.png |{{{size|22px}}}|link=wikipedia:Wales |Wales]] | ||
+ | | CA-QC = [[File:Flag of Quebec.png |{{{size|22px}}}|link=wikipedia:Quebec |Quebec]] | ||
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> | }}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> |
Revision as of 12:50, July 14, 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:
- Worldwide
WLD
for Worldwide -
ATA
for Antartica -
AUS
for the Commonwealth of Australia -
BEL
for the Kingdom of Belgium -
BRA
for the Federative Republic of Brazil -
CAN
for Canada CHL
for the Republic of Chile-
CHN
for the People's Republic of China - Czech Republic
CZE
for the Czech Republic -
DEU
for the Federal Republic of Germany DNK
for Denmark-
DZA
for the People's Democratic Republic of Algeria EGY
for the Arab Republic of Egypt-
ESP
for the Kingdom of Spain -
EUR
for Europe -
FIN
for the Republic of Finland -
FRA
for the French Republic (France) -
GBR
for the United Kingdom -
GRC
for the Hellenic Republic (Greece) -
HKG
for Hong Kong SAR IDN
for the Republic of IndonesiaIND
for the Republic of India-
IRL
for the Republic of Ireland -
ISR
for the State of Israel -
ITA
for the Italian Republic (Italy) -
JPN
for Japan KEN
for the Republic of Kenya- South Korea
KOR
for the Republic of Korea (South Korea) -
LUX
for the Grand Duchy of Luxembourg -
MEX
for the United Mexican States (Mexico) MLT
for the Republic of Malta-
NLD
for the Netherlands -
NOR
for the Kingdom of Norway -
NZL
for New Zealand PER
for the Republic of Peru- Phillipines
PHL
for the Republic of the Philippines -
POL
for the Republic of Poland PRT
for the Portuguese Republic (Portugal)-
PRI
for the Commonwealth of Puerto Rico -
RUS
for the Russian Federation (Russia) -
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-
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.
Examples
{{Flag|JPN}}
{{Flag|JPN|border=false}}
{{Flag|USA|size=50px}}