Difference between revisions of "Template:Flag"
(Added a border by default to flags that feature white prominently in their design.) |
AlexBot2004 (talk | contribs) (Adding Taiwan) |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1|USA}}} | <includeonly>{{#switch: {{{1|USA}}} | ||
<!-- REGIONS --> | <!-- REGIONS --> | ||
− | | WLD = [[File: | + | | WLD = [[File:Nook Miles Globe NH Icon.png |{{{size|22px}}}|link=wikipedia:Earth |{{{text|Worldwide}}}]] |
− | | ATA = [[File:Flag of Antarctica.png |{{{size|22px}}}|link=wikipedia:Antartica |Antartica]] | + | | ATA = [[File:Flag of Antarctica.png |{{{size|22px}}}|link=wikipedia:Antartica |{{{text|Antartica}}}]] |
− | | AUS = [[File:Flag of Australia.png |{{{size|22px}}}|link=wikipedia:Australia |Australia]] | + | | AUS = [[File:Flag of Australia.png |{{{size|22px}}}|link=wikipedia:Australia |{{{text|Australia}}}]] |
− | | BEL = [[File:Flag of Belgium.png |{{{size|22px}}}|link=wikipedia:Belgium |Belgium]] | + | | BEL = [[File:Flag of Belgium.png |{{{size|22px}}}|link=wikipedia:Belgium |{{{text|Belgium}}}]] |
− | | BRA = [[File:Flag of Brazil. | + | | BRA = [[File:Flag of Brazil.svg |{{{size|22px}}}|link=wikipedia:Brazil |{{{text|Brazil}}}]] |
− | | CAN = [[File:Flag of Canada.png |{{{size|22px}}}|link=wikipedia:Canada |Canada]] | + | | CAN = [[File:Flag of Canada.png |{{{size|22px}}}|link=wikipedia:Canada |{{{text|Canada}}}]] |
− | | | + | | CHL = [[File:Flag of Chile.png |{{{size|22px}}}|link=wikipedia:Chile |{{{text|Chile}}}]] |
− | | | + | | CHN = [[File:Flag of the People's Republic of China.svg|{{{size|22px}}}|link=wikipedia:China |{{{text|China}}}]] |
− | + | | 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.svg |{{{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}}}]] |
− | + | | EGY = [[File:Flag of Egypt.png |{{{size|22px}}}|link=wikipedia:Egypt |{{{text|Egypt}}}]] | |
− | | | + | | ESP = [[File:Flag of Spain.svg |{{{size|22px}}}|link=wikipedia:Spain |{{{text|Spain}}}]] |
− | | | + | | EUR = [[File:Flag of Europe.png |{{{size|22px}}}|link=wikipedia:Europe |{{{text|Europe}}}]] |
− | | | + | | FIN = [[File:Flag of Finland.png |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Finland |{{{text|Finland}}}]] |
− | | | + | | FRA = [[File:Flag of France.svg |{{{size|22px}}}|link=wikipedia:France |{{{text|France}}}]] |
− | | | + | | GBR = [[File:Flag of the United Kingdom.png |{{{size|22px}}}|link=wikipedia:United Kingdom |{{{text|United Kingdom}}}]] |
− | + | | 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}}}]] |
− | | | + | | 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}}}]] |
− | | | + | | IRL = [[File:Flag of Ireland.png |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Ireland |{{{text|Ireland}}}]] |
− | | | + | | ISR = [[File:Flag of Israel.png |{{{size|22px}}}|link=wikipedia:Israel |{{{text|Israel}}}]] |
− | | | + | | ITA = [[File:Flag of Italy.svg |{{{size|22px}}}|link=wikipedia:Italy |{{{text|Italy}}}]] |
− | | | + | | JPN = [[File:Flag of Japan.svg |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Japan |{{{text|Japan}}}]] |
− | | | + | | KEN = [[File:Flag of Kenya.png |{{{size|22px}}}|link=wikipedia:Kenya |{{{text|Kenya}}}]] |
− | | | + | | KOR = [[File:Flag of South Korea.svg |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:South Korea |{{{text|South Korea}}}]] |
− | | | + | | 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}}}]] |
− | | | + | | 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}}}]] |
− | | | + | | NOR = [[File:Flag of Norway.png |{{{size|22px}}}|link=wikipedia:Norway |{{{text|Norway}}}]] |
+ | | NZL = [[File:Flag of New Zealand.png |{{{size|22px}}}|link=wikipedia:New Zealand |{{{text|New Zealand}}}]] | ||
+ | | PER = [[File:Flag of Peru.png |{{{size|22px}}}|link=wikipedia:Peru |{{{text|Peru}}}]] | ||
+ | | PHL = [[File:Flag of the Philippines.png |{{{size|22px}}}|link=wikipedia:Philippines |{{{text|Philippines}}}]] | ||
+ | | POL = [[File:Flag of Poland.png |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:Poland |{{{text|Poland}}}]] | ||
+ | | PRT = [[File:Flag of Portugal.png |{{{size|22px}}}|link=wikipedia:Portugal |{{{text|Portugal}}}]] | ||
+ | | PRI = [[File:Flag of Puerto Rico.png |{{{size|22px}}}|link=wikipedia:Puerto Rico |{{{text|Puerto Rico}}}]] | ||
+ | | RUS = [[File:Flag of Russia.svg |{{{size|22px}}}|link=wikipedia:Russia |{{{text|Russia}}}]] | ||
+ | | SAU = [[File:Flag of Saudi Arabia.svg |{{{size|22px}}}|link=wikipedia:Saudi Arabia |{{{text|Saudi Arabia}}}]] | ||
+ | | 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}}}]] | ||
+ | | 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}}}]] | ||
+ | | 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}}}]] | ||
<!-- SUB-DIVISIONS --> | <!-- SUB-DIVISIONS --> | ||
− | | GB-ENG = [[File:Flag of England.png |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:England |England]] | + | | GB-ENG = [[File:Flag of England.png |{{#if:{{{border|}}}||border{{!}}}}{{{size|22px}}}|link=wikipedia:England |{{{text|England}}}]] |
− | | GB-SCT = [[File:Flag of Scotland.png |{{{size|22px}}}|link=wikipedia:Scotland |Scotland]] | + | | GB-SCT = [[File:Flag of Scotland.png |{{{size|22px}}}|link=wikipedia:Scotland |{{{text|Scotland}}}]] |
− | | GB-WLS = [[File:Flag of Wales.png |{{{size|22px}}}|link=wikipedia:Wales |Wales]] | + | | GB-WLS = [[File:Flag of Wales.png |{{{size|22px}}}|link=wikipedia:Wales |{{{text|Wales}}}]] |
− | | CA-QC = [[File:Flag of Quebec. | + | | CA-QC = [[File:Flag of Quebec.svg |{{{size|22px}}}|link=wikipedia:Quebec |{{{text|Quebec}}}]] |
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> | }}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> |
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:
-
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 -
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 Indonesia -
IND
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 -
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 -
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 Singapore -
SWE
for the Kingdom of Sweden -
TWN
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}}