Template:Flag/doc

From comp.tf
Jump to navigation Jump to search

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

Afghanistan af Afghanistan
Albania al Albania
Algeria dz Algeria
Andorra ad Andorra
Angola ao Angola
Antigua and Barbuda ag Antigua and Barbuda
Argentina ar Argentina
Armenia am Armenia
Australia au Australia
Austria at Austria
Azerbaijan az Azerbaijan

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
Bhutan bt Bhutan
Bolivia bo Bolivia
Bosnia and Herzegovina ba Bosnia and Herzegovina
Botswana bw Botswana
Brazil br Brazil
Brunei bn Brunei
Bulgaria bg Bulgaria
Burkina Faso bf Burkina Faso
Burundi bi Burundi

C

Cambodia kh Cambodia
Cameroon cm Cameroon
Canada ca Canada
Cape Verde cv Cape Verde
Central African Republic cf Central African Republic
Chad td Chad
Chile cl Chile
China cn China
Colombia co Colombia
Comoros km Comoros
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
Cyprus cy Cyprus
Czech Republic cz Czech Republic
Côte d'Ivoire ci Côte d'Ivoire

D

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

E

East Timor tl East Timor
Ecuador ec Ecuador
Egypt eg Egypt
El Salvador sv El Salvador
England uken England
Equatorial Guinea gq Equatorial Guinea
Eritrea er Eritrea
Estonia ee Estonia
Eswatini sz Eswatini
Ethiopia et Ethiopia
Europe eu Europe

F

Fiji fj Fiji
Finland fi Finland
France fr France

G

Gabon ga Gabon
The Gambia gm Gambia
Georgia ge Georgia
Germany de Germany
Ghana gh Ghana
Greece gr Greece
Greenland gl Greenland
Grenada gd Grenada
Guatemala gt Guatemala
Guinea gn Guinea
Guinea-Bissau gw Guinea-Bissau
Guyana gy Guyana

H

Haiti ht Haiti
Honduras hn Honduras
Hong Kong hk Hong Kong
Hungary hu Hungary

I

Iceland is Iceland
India in India
Indonesia id Indonesia
Iran ir Iran
Iraq iq Iraq
Ireland ie Ireland
Israel il Israel
Italy it Italy

J

Jamaica jm Jamaica
Japan jp Japan
Jordan jo Jordan

K

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

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

M

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
Morocco ma Morocco
Mozambique mz Mozambique
Myanmar mm Myanmar

N

Namibia na Namibia
Nauru nr Nauru
Nepal np Nepal
Netherlands nl Netherlands
New Zealand nz New Zealand
Nicaragua ni Nicaragua
Niger ne Niger
Nigeria ng Nigeria
North Korea kp North Korea
North Macedonia mk North Macedonia
Northern Ireland ukni Northern Ireland
Norway no Norway

O

Oman om Oman

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
Poland pl Poland
Portugal pt Portugal
Puerto Rico pr Puerto Rico

Q

Qatar qa Qatar

R

Romania ro Romania
Russia ru Russia
Rwanda rw Rwanda

S

Saint Kitts and Nevis kn Saint Kitts and Nevis
Saint Lucia lc Saint Lucia
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
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
Slovakia sk Slovakia
Slovenia si Slovenia
Solomon Islands sb Soloman Islands
Somalia so Somalia
South Africa za South Africa
South America sam South America
South Korea kr South Korea
South Sudan ss South Sudan
Spain es Spain
Sri_Lanka lk Sri Lanka
Sudan sd Sudan
Suriname sr Suriname
Sweden se Sweden
Switzerland ch Switzerland
Syria sy Syria

T

Taiwan tw Taiwan
Tajikistan tj Tajikistan
Tanzania tz Tanzania
Thailand th Thailand
Togo tg Togo
Tonga to Tonga
Trinidad and Tobago tt Trinidad and Tobago
Tunisia tn Tunisia
Turkey tr Turkey
Turkmenistan tm Turkmenistan
Tuvalu tv Tuvalu

U

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

V

Vanuatu vu Vanuatu
Vatican City va Vatican City
Venezuela ve Venezuela
Vietnam vn Vietnam

W

Wales ukwa Wales

X

Y

Yemen ye Yemen

Z

Zambia zm Zambia
Zimbabwe zw Zimbabwe

Adding a flag

If you wish to add a flag, the following requirements must be followed

Image size

  • Width: equal or less than 23px
  • Height: equal or less than 15px
  • Aspect ratio: retained from source flag

If your flag is a custom flag (e.g. North America), we recommend a 23x15px flag which has a 2:3 ratio.

Upload

  • Your flag should be uploaded to File:Flag of <fullflagname>.png
  • Make sure you add your flag to Category:Flag Images

Update templates

  • Template:Flag/abbr controls abbreviations and flag names, add your flag with its appropriate abbreviation there
  • Update the appropriate documentation template at Template:Flag/doc/FirstLetterOfFullFlagName (e.g. Template:Flag/doc/s for Switzerland)