Difference between revisions of "Template:Flag/doc"

From comp.tf
Jump to navigation Jump to search
Line 57: Line 57:
 
*{{flag|en}} England: <code>en</code>
 
*{{flag|en}} England: <code>en</code>
 
*{{flag|usuk}} English Language: <code>ukus</code>
 
*{{flag|usuk}} English Language: <code>ukus</code>
 +
*{{flag|rsa}} South Africa: <code>rsa</code>
 
*{{flag|ae}} United Arab Emirates: <code>uae</code>
 
*{{flag|ae}} United Arab Emirates: <code>uae</code>
 
*{{flag|uk}} United Kingdom: <code>gb</code>
 
*{{flag|uk}} United Kingdom: <code>gb</code>
Line 63: Line 64:
 
{{box|break}}
 
{{box|break}}
 
<div style="display:inline-block; width:500px;">
 
<div style="display:inline-block; width:500px;">
 +
 
=== {{flag|uken}} {{flag|ukni}} {{flag|uksc}} {{flag|ukwa}} <small>vs.</small> {{flag|uk}} ===
 
=== {{flag|uken}} {{flag|ukni}} {{flag|uksc}} {{flag|ukwa}} <small>vs.</small> {{flag|uk}} ===
 
The individual flags of '''{{flag|uken}} England''', '''{{flag|ukni}} Northern Ireland''', '''{{flag|uksc}} Scotland''', and '''{{flag|ukwa}} Wales''' should take preference in all possible circumstances over the '''{{flag|uk}} United Kingdom''' flag.
 
The individual flags of '''{{flag|uken}} England''', '''{{flag|ukni}} Northern Ireland''', '''{{flag|uksc}} Scotland''', and '''{{flag|ukwa}} Wales''' should take preference in all possible circumstances over the '''{{flag|uk}} United Kingdom''' flag.

Revision as of 18:21, 17 April 2020

Template:Flag displays a flag icon that is 15px high and bordered. This template is used in conjunction with Template:Flag/abbr, which defines the terms that can be used in this template. All of the flag images used in this template can be found at Category:Flag Images.

Usage

{{flag|name}}

name

This is the only parameter in the template and is used for defining which country's information should be used.

  • The data entered here will provide the icon with its image and caption/tool tip text.
  • Appropriate settings for this parameter are listed in the table below.
  • Any text entered should be fully lowercase.
  • Any special characters (å, é, ì, ô, ū) are not used as they conflict with the wiki's file retrieving system.
  • If there is no setting or the setting is invalid (i.e. not listed in the table below) the template will display a placeholder flag, Unknown. This is used to keep alignment proper in other templates or to indicate an unknown country.

Examples

You type You get
{{flag|antarctica}} Template:Flag/antarctica
{{flag|aq}} Template:Flag/aq
{{flag|invalid}} Template:Flag/invalid

Valid settings

A flag can be displayed by either using a country's two letter abbreviation, another name for the country, or the full name of the country in the name parameter. An alternate list of two letter abbreviations for countries can be found here.

Alternate names

These names are additional to those listed in the tables.

  • Oceania Australasia: oceania
  • The Bahamas The Bahamas: bahamas
  • Cape Verde Cape Verde: cabo verde
  • East Timor East Timor: timor-leste
  • Gabon Gambia: the gambia
  • Côte d'Ivoire Ivory Coast: cote d'ivoire
  • Macau Macau: macao
  • Template:Flag/pn Pitcairn: pitcairn islands
  • United Nations United Nations: global, international, world
  • United States United States: united states of america

Alternate abbreviations

These abbreviations are additional to those listed in the tables.

  • England England: en
  • English Language English Language: ukus
  • South Africa South Africa: rsa
  • United Arab Emirates United Arab Emirates: uae
  • United Kingdom United Kingdom: gb
  • United States United States: usa
  • Wales Wales: wa

England Northern Ireland Scotland Wales vs. United Kingdom

The individual flags of England England, Northern Ireland Northern Ireland, Scotland Scotland, and Wales Wales should take preference in all possible circumstances over the United Kingdom United Kingdom flag.

A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
Key
United Nations recognised country or sovereign state
Unrecognised country or sovereign state
Geographical region or collectivity of countries or sovereign states

A

Template:Flag/abkhazia Abkhazia
Template:Flag/ax ax Aland
Afghanistan af Afghanistan
Albania al Albania
Template:Flag/alderney Alderney
Algeria dz Algeria
Template:Flag/as as American Samoa
Andorra ad Andorra
Angola ao Angola
Template:Flag/ai ai Anguilla
Template:Flag/aq aq Antarctica
Antigua and Barbuda ag Antigua and Barbuda
Argentina ar Argentina
Armenia am Armenia
Template:Flag/aw aw Aruba
Oceania aunz Australasia
Australia au Australia
Austria at Austria
Azerbaijan az Azerbaijan

D

Denmark dk Denmark
Djibouti dj Djibouti
Dominica dm Dominica
Dominican Republic do Dominican Republic

G

Gabon ga Gabon
The Gambia gm Gambia
Georgia ge Georgia
Germany de Germany
Ghana gh Ghana
Template:Flag/gi gi Gibraltar
Greece gr Greece
Greenland gl Greenland
Grenada gd Grenada
Template:Flag/gu gu Guam
Guatemala gt Guatemala
Template:Flag/gg gg Guernsey
Guinea gn Guinea
Guinea-Bissau gw Guinea-Bissau
Guyana gy Guyana

J

Jamaica jm Jamaica
Japan jp Japan
Template:Flag/je je Jersey
Jordan jo Jordan

M

Macau mo Macau
North Macedonia mk Macedonia
Madagascar mg Madagascar
Malawi mw Malawi
Malaysia my Malaysia
Maldives mv Maldives
Mali ml Mali
Malta mt Malta
Marshall Islands mh Marshall Islands
Mauritania mr Mauritania
Mauritius mu Mauritius
Mexico mx Mexico
Micronesia fm Micronesia
Moldova md Moldova
Monaco mc Monaco
Mongolia mn Mongolia
Montenegro me Montenegro
Template:Flag/ms ms Montserrat
Morocco ma Morocco
Mozambique mz Mozambique
Myanmar mm Myanmar

P

Pakistan pk Pakistan
Palau pw Palau
Palestine ps Palestine
Panama pa Panama
Papua New Guinea pg Papua New Guinea
Paraguay py Paraguay
Peru pe Peru
Philippines ph Philippines
Template:Flag/pn pn Pitcairn
Poland pl Poland
Portugal pt Portugal
Puerto Rico pr Puerto Rico

S

Template:Flag/sahrawi arab democratic republic Sahrawi Arab
Democratic Republic
Saint Kitts and Nevis kn Saint Kitts and Nevis
Saint Lucia lc Saint Lucia
Template:Flag/mf mf Saint Martin
Saint Vincent and the Grenadines vc Saint Vincent and
the Grenadines
Samoa ws Samoa
San Marino sm San Marino
Sao Tome and Principe st Sao Tome and Principe
Template:Flag/sark Sark
Saudi Arabia sa Saudi Arabia
Scotland uksc Scotland
Senegal sn Senegal
Serbia rs Serbia
Seychelles sc Seychelles
Sierra Leone sl Sierra Leone
Singapore sg Singapore
Template:Flag/sx sx Sint Maarten
Slovakia sk Slovakia
Slovenia si Slovenia
Solomon Islands sb Soloman Islands
Somalia so Somalia
Template:Flag/somaliland Somaliland
South Africa za South Africa
South America sam South America
Template:Flag/gs gs South Georgia and the
South Sandwich Islands
South Korea kr South Korea
Template:Flag/south ossetia South Ossetia
South Sudan ss South Sudan
Spain es Spain
Sri_Lanka lk Sri Lanka
Sudan sd Sudan
Suriname sr Suriname
Eswatini sz Swaziland
Sweden se Sweden
Switzerland ch Switzerland
Syria sy Syria

V

Vanuatu vu Vanuatu
Vatican City va Vatican City
Venezuela ve Venezuela
Vietnam vn Vietnam
Template:Flag/vg vg British Virgin Islands
Template:Flag/vi vi United States Virgin Islands

Y

Yemen ye Yemen

B

The Bahamas bs The Bahamas
Bahrain bh Bahrain
Bangladesh bd Bangladesh
Barbados bb Barbados
Belarus by Belarus
Belgium be Belgium
Belize bz Belize
Benin bj Benin
Template:Flag/bm bm Bermuda
Bhutan bt Bhutan
Bolivia bo Bolivia
Bosnia and Herzegovina ba Bosnia and Herzegovina
Botswana bw Botswana
Brazil br Brazil
Template:Flag/io io British Indian Ocean Territory
Brunei bn Brunei
Bulgaria bg Bulgaria
Burkina Faso bf Burkina Faso
Burundi bi Burundi

E

Template:Flag/easter island Easter Island
East Timor tl East Timor
Ecuador ec Ecuador
Egypt eg Egypt
El Salvador sv El Salvador
England uken England
English Language usuk English Language
Equatorial Guinea gq Equatorial Guinea
Eritrea er Eritrea
Estonia ee Estonia
Ethiopia et Ethiopia
Europe eu Europe

H

Haiti ht Haiti
Template:Flag/herm Herm
Honduras hn Honduras
Hong Kong hk Hong Kong
Hungary hu Hungary

K

Kazakhstan kz Kazakhstan
Kenya ke Kenya
Kiribati ki Kiribati
Kosovo xk Kosovo
Kuwait kw Kuwait
Kyrgyzstan kg Kyrgyzstan

N

Template:Flag/nagorno-karabakh Nagorno-Karabakh
Namibia na Namibia
Nauru nr Nauru
Nepal np Nepal
Netherlands nl Netherlands
Template:Flag/nc nc New Caledonia
New Zealand nz New Zealand
Nicaragua ni Nicaragua
Niger ne Niger
Nigeria ng Nigeria
Template:Flag/nu nu Niue
Template:Flag/nf nf Norfolk Island
North America nam North America
North Korea kp North Korea
Template:Flag/northern cyprus Northern Cyprus
Northern Ireland ukni Northern Ireland
Template:Flag/mp mp Northern Mariana Islands
Norway no Norway

Q

Qatar qa Qatar

T

Taiwan tw Taiwan
Tajikistan tj Tajikistan
Tanzania tz Tanzania
Thailand th Thailand
Togo tg Togo
Template:Flag/tk tk Tokelau
Tonga to Tonga
Template:Flag/transnistria Transnistria
Trinidad and Tobago tt Trinidad and Tobago
Tunisia tn Tunisia
Turkey tr Turkey
Turkmenistan tm Turkmenistan
Template:Flag/tc tc Turks and Caicos Islands
Tuvalu tv Tuvalu

W

Wales ukwa Wales

Z

Zambia zm Zambia
Zimbabwe zw Zimbabwe

C

Cambodia kh Cambodia
Cameroon cm Cameroon
Canada ca Canada
Cape Verde cv Cape Verde
Template:Flag/ky ky Cayman Islands
Central African Republic cf Central African Republic
Chad td Chad
Chile cl Chile
China cn China
Template:Flag/cx cx Christmas Island
Template:Flag/cc cc Cocos (Keeling) Islands
Colombia co Colombia
Template:Flag/ck ck Cook Islands
Democratic Republic of the Congo cd Democratic Republic of the Congo
Republic of the Congo cg Republic of the Congo
Costa_Rica cr Costa Rica
Croatia hr Croatia
Cuba cu Cuba
Template:Flag/cw cw Curacao
Cyprus cy Cyprus
Template:Flag/cyrenaica Cyrenaica
Czech Republic cz Czech Republic

F

Template:Flag/fk fk Falkland Islands
Template:Flag/fo fo Faroe Islands
Fiji fj Fiji
Finland fi Finland
France fr France
Template:Flag/pf pf French Polynesia

I

Iceland is Iceland
India in India
Indonesia id Indonesia
Iran ir Iran
Iraq iq Iraq
Ireland ie Ireland
Template:Flag/im im Isle of Man
Israel il Israel
Italy it Italy
Côte d'Ivoire ci Ivory Coast

L

Laos la Laos
Latvia lv Latvia
Lebanon lb Lebanon
Lesotho ls Lesotho
Liberia lr Liberia
Libya ly Libya
Liechtenstein li Liechtenstein
Lithuania lt Lithuania
Luxembourg lu Luxembourg

O

Oman om Oman

R

Template:Flag/rojava Rojava
Romania ro Romania
Russia ru Russia
Rwanda rw Rwanda

U

Uganda ug Uganda
1zqjex'"(){}<x>:/1zqjex;9 ua Ukraine
Template:Flag/unasur UNASUR
United Arab Emirates ae United Arab Emirates
United Kingdom uk United Kingdom
United Nations un United Nations
United States us United States
Unknown Unknown
Uruguay uy Uruguay
Uzbekistan uz Uzbekistan

X