Difference between revisions of "Template:Flag/doc"

From comp.tf
Jump to navigation Jump to search
Line 1: Line 1:
__NOTOC__
 
'''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 ==
 
<code><nowiki>{{flag|</nowiki>'''<nowiki>name</nowiki>'''<nowiki>}}</nowiki></code>
 
=== 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, {{flag}}. This is used to keep alignment proper in other templates or to indicate an unknown country.
 
== Examples ==
 
{| class="wikitable" style="text-align: center; cell-padding: em;"
 
! style="color: white; background-color: #1c1c1c" colspan=3 | You type
 
! style="color: white; background-color: #1c1c1c" colspan=3 | You get
 
|-
 
| style="border-right:hidden" |
 
| <code><nowiki>{{flag|antarctica}}</nowiki></code>
 
| style="border-left:hidden" |
 
| style="border-right:hidden" |
 
| {{flag|antarctica}}
 
| style="border-left:hidden" |
 
|-
 
| style="border-right:hidden" |
 
| <code><nowiki>{{flag|aq}}</nowiki></code>
 
| style="border-left:hidden" |
 
| style="border-right:hidden" |
 
| {{flag|aq}}
 
| style="border-left:hidden" |
 
|-
 
| style="border-right:hidden" |
 
| <code><nowiki>{{flag|invalid}}</nowiki></code>
 
| style="border-left:hidden" |
 
| style="border-right:hidden" |
 
| {{flag|invalid}}
 
| style="border-left:hidden" |
 
|}
 
== 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 [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements here].
 
{{box|start|padding=4em}}
 
=== Alternate names ===
 
These names are additional to those listed in the tables.
 
*{{flag|aunz}} Australasia: <code>oceania</code>
 
*{{flag|bs}} The Bahamas: <code>bahamas</code>
 
*{{flag|cv}} Cape Verde: <code>cabo verde</code>
 
*{{flag|tl}} East Timor: <code>timor-leste</code>
 
*{{flag|ga}} Gambia: <code>the gambia</code>
 
*{{flag|ci}} Ivory Coast: <code>cote d'ivoire</code>
 
*{{flag|mo}} Macau: <code>macao</code>
 
*{{flag|pn}} Pitcairn: <code>pitcairn islands</code>
 
*{{flag|un}} United Nations: <code>global</code>, <code>international</code>, <code>world</code>
 
*{{flag|us}} United States: <code>united states of america</code>
 
{{box|break|padding=4em}}
 
 
=== Alternate abbreviations ===
 
These abbreviations are additional to those listed in the tables.
 
*{{flag|en}} England: <code>en</code>
 
*{{flag|usuk}} English Language: <code>ukus</code>
 
*{{flag|rsa}} South Africa: <code>rsa</code>
 
*{{flag|ae}} United Arab Emirates: <code>uae</code>
 
*{{flag|uk}} United Kingdom: <code>gb</code>
 
*{{flag|us}} United States: <code>usa</code>
 
*{{flag|wa}} Wales: <code>wa</code>
 
{{box|break}}
 
<div style="display:inline-block; width:500px;">
 
 
=== {{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.
 
</div>
 
{{box|end}}
 
{| class=wikitable style="width: 100%; text-align: center;"
 
|[[Template:Flag#A | A]] · [[Template:Flag#B | B]] · [[Template:Flag#C | C]] · [[Template:Flag#D | D]] · [[Template:Flag#E | E]] · [[Template:Flag#F | F]] · [[Template:Flag#G | G]] · [[Template:Flag#H | H]] · [[Template:Flag#I | I]] · [[Template:Flag#J | J]] · [[Template:Flag#K | K]] · [[Template:Flag#L | L]] · [[Template:Flag#M | M]] · [[Template:Flag#N | N]] · [[Template:Flag#O | O]] · [[Template:Flag#P | P]] · [[Template:Flag#Q | Q]] · [[Template:Flag#R | R]] · [[Template:Flag#S | S]] · [[Template:Flag#T | T]] · [[Template:Flag#U | U]] · [[Template:Flag#V | V]] · [[Template:Flag#W | W]] · [[Template:Flag#X | X]] · [[Template:Flag#Y | Y]] · [[Template:Flag#Z | Z]]
 
|}
 
 
{{Box|start|padding=1em}}
 
{{Box|start|padding=1em}}
 
=== A ===
 
=== A ===
Line 995: Line 922:
 
|}
 
|}
 
{{Box|end}}
 
{{Box|end}}
 
 
== 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. {{flag|nam}}), we recommend a 23x15px flag which has a 2:3 ratio.
 
=== Upload ===
 
*Your flag should be uploaded to <Code>File:Flag of <nowiki><fullflagname></nowiki>.png</code>
 
*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)
 
 
<noinclude>[[Category:Flag Documentation Templates]]</noinclude>
 

Revision as of 14:42, 11 May 2020

A

Afghanistan af [[Template:Flag/|Afghanistan
Albania al [[Template:Flag/|Albania
Algeria dz [[Template:Flag/|Algeria
Andorra ad [[Template:Flag/|Andorra
Angola ao [[Template:Flag/|Angola
Antigua and Barbuda ag [[Template:Flag/|Antigua and Barbuda
Argentina ar [[Template:Flag/|Argentina
Armenia am [[Template:Flag/|Armenia
Australia [[Template:Flag/<|au]] [[Template:Flag/|Australia
Austria at [[Template:Flag/|Austria
Azerbaijan az [[Template:Flag/|Azerbaijan

B

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

C

Cambodia kh [[Template:Flag/|Cambodia
Cameroon cm [[Template:Flag/|Cameroon
Canada ca [[Template:Flag/|Canada
Cape Verde cv [[Template:Flag/|Cape Verde
Central African Republic cf [[Template:Flag/|Central African Republic
Chad td [[Template:Flag/|Chad
Chile cl [[Template:Flag/|Chile
China cn [[Template:Flag/|China
Colombia co [[Template:Flag/|Colombia
Comoros km [[Template:Flag/|Comoros
Democratic Republic of the Congo cd [[Template:Flag/|Democratic Republic of the Congo
Republic of the Congo cg [[Template:Flag/|Republic of the Congo
Costa_Rica cr [[Template:Flag/|Costa Rica
Croatia hr [[Template:Flag/|Croatia
Cuba cu [[Template:Flag/|Cuba
Cyprus cy [[Template:Flag/|Cyprus
Czech Republic cz [[Template:Flag/|Czech Republic
Côte d'Ivoire ci [[Template:Flag/|Côte d'Ivoire

D

Denmark dk [[Template:Flag/|Denmark
Djibouti dj [[Template:Flag/|Djibouti
Dominica dm [[Template:Flag/|Dominica
Dominican Republic do [[Template:Flag/|Dominican Republic

E

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

F

Fiji fj [[Template:Flag/|Fiji
Finland fi [[Template:Flag/|Finland
France fr [[Template:Flag/|France

G

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

H

Haiti ht [[Template:Flag/|Haiti
Honduras hn [[Template:Flag/|Honduras
Hong Kong hk [[Template:Flag/|Hong Kong
Hungary hu [[Template:Flag/|Hungary

I

Iceland is [[Template:Flag/iceland|Iceland
India in [[Template:Flag/india|India
Indonesia id [[Template:Flag/indonesia|Indonesia
Iran ir [[Template:Flag/iran|Iran
Iraq iq [[Template:Flag/iraq|Iraq
Ireland ie [[Template:Flag/ireland|Ireland
Israel il [[Template:Flag/israel|Israel
Italy it [[Template:Flag//italy|Italy

J

Jamaica jm [[Template:Flag/jamaica|Jamaica
Japan jp [[Template:Flag/japan|Japan
Jordan jo [[Template:Flag/jordan|Jordan

K

Kazakhstan kz [[Template:Flag/kazakhstan|Kazakhstan
Kenya ke [[Template:Flag/kenya|Kenya
Kiribati ki [[Template:Flag/kiribati|Kiribati
Kosovo xk [[Template:Flag/kosovo|Kosovo
Kuwait [[Template:Flag/>kw|kw]] [[Template:Flag/kuwait|Kuwait
Kyrgyzstan kg [[Template:Flag/kyrgyzstan|Kyrgyzstan

L

Laos la [[Template:Flag/laos|Laos
Latvia lv [[Template:Flag/latvia|Latvia
Lebanon lb [[Template:Flag/lebanon|Lebanon
Lesotho ls [[Template:Flag/lesotho|Lesotho
Liberia lr [[Template:Flag/liberia|Liberia
Libya ly [[Template:Flag/libya|Libya
Liechtenstein li [[Template:Flag/liechtenstein|Liechtenstein
Lithuania lt [[Template:Flag/lithuania|Lithuania
Luxembourg lu [[Template:Flag/luxembourg|Luxembourg

M

Madagascar mg [[Template:Flag/madagascar|Madagascar
Malawi mw [[Template:Flag/malawi|Malawi
Malaysia my [[Template:Flag/malaysia|Malaysia
Maldives mv [[Template:Flag/maldives|Maldives
Mali ml [[Template:Flag/mali|Mali
Malta mt [[Template:Flag/malta|Malta
Marshall Islands mh [[Template:Flag/marshall islands|Marshall Islands
Mauritania mr [[Template:Flag/mauritania|Mauritania
Mauritius mu [[Template:Flag/mauritius|Mauritius
Mexico mx [[Template:Flag/mexico|Mexico
Micronesia fm [[Template:Flag/micronesia|Micronesia
Moldova md [[Template:Flag/moldova|Moldova
Monaco mc [[Template:Flag/monaco|Monaco
Mongolia mn [[Template:Flag/mongolia|Mongolia
Montenegro me [[Template:Flag/montonegro|Montenegro
Morocco ma [[Template:Flag/morocco|Morocco
Mozambique mz [[Template:Flag/mozambique|Mozambique
Myanmar mm [[Template:Flag/myanmar|Myanmar

N

Namibia na [[Template:Flag/namibia|Namibia
Nauru nr [[Template:Flag/nauru|Nauru
Nepal np [[Template:Flag/nepal|Nepal
Netherlands nl [[Template:Flag/netherlands|Netherlands
New Zealand nz [[Template:Flag/new zealand|New Zealand
Nicaragua ni [[Template:Flag/nicaragua|Nicaragua
Niger ne [[Template:Flag/niger|Niger
Nigeria ng [[Template:Flag/nigeria|Nigeria
North Korea kp [[Template:Flag/north korea|North Korea
North Macedonia mk [[Template:Flag/north macedonia|North Macedonia
Northern Ireland ukni [[Template:Flag/northern ireland|Northern Ireland
Norway no [[Template:Flag/norway|Norway

O

Oman om [[Template:Flag/oman|Oman

P

Pakistan pk [[Template:Flag/pakistan|Pakistan
Palau pw [[Template:Flag/palau|Palau
Palestine ps [[Template:Flag/palestine|Palestine
Panama pa [[Template:Flag/panama|Panama
Papua New Guinea pg [[Template:Flag/papua new guinea|Papua New Guinea
Paraguay py [[Template:Flag/paraguay|Paraguay
Peru pe [[Template:Flag/peru|Peru
Philippines ph [[Template:Flag/phillipines|Philippines
Poland pl [[Template:Flag/poland|Poland
Portugal pt [[Template:Flag/portugal|Portugal
Puerto Rico pr [[Template:Flag/puerto rico|Puerto Rico

Q

Qatar qa [[Template:Flag/qatar|Qatar

R

Romania ro [[Template:Flag/romania|Romania
Russia ru [[Template:Flag/russia|Russia
Rwanda rw [[Template:Flag/rwanda|Rwanda

S

Saint Kitts and Nevis kn [[Template:Flag/saint kitts and nevis|Saint Kitts and Nevis
Saint Lucia lc [[Template:Flag/saint lucia|Saint Lucia
Saint Vincent and the Grenadines vc [[Template:Flag/saint vincent and the grenadines|Saint Vincent and the Grenadines
Samoa ws [[Template:Flag/amoa|Samoa
San Marino sm [[Template:Flag/san marino|San Marino
Sao Tome and Principe st [[Template:Flag/sao tome and principe|Sao Tome and Principe
Saudi Arabia sa [[Template:Flag/saudi arabia|Saudi Arabia
Scotland uksc [[Template:Flag/scotland|Scotland
Senegal sn [[Template:Flag/senegal|Senegal
Serbia rs [[Template:Flag/serbia|Serbia
Seychelles sc [[Template:Flag/seychelles|Seychelles
Sierra Leone sl [[Template:Flag/ierra leone|Sierra Leone
Singapore sg [[Template:Flag/singapore|Singapore
Slovakia sk [[Template:Flag/slovakia|Slovakia
Slovenia si [[Template:Flag/slovenia|Slovenia
Solomon Islands sb [[Template:Flag/solomon islands|Soloman Islands
Somalia so [[Template:Flag/somalia|Somalia
South Africa za [[Template:Flag/south africa|South Africa
South America sam [[Template:Flag/south america|South America
South Korea kr [[Template:Flag/south korea|South Korea
South Sudan ss [[Template:Flag/south sudan|South Sudan
Spain es [[Template:Flag/spain|Spain
Sri_Lanka lk [[Template:Flag/sri lanka|Sri Lanka
Sudan sd [[Template:Flag/sudan|Sudan
Suriname sr [[Template:Flag/suriname|Suriname
Sweden se [[Template:Flag/sweden|Sweden
Switzerland ch [[Template:Flag/switzerland|Switzerland
Syria sy [[Template:Flag/syria|Syria

T

Taiwan tw [[Template:Flag/taiwan|Taiwan
Tajikistan tj [[Template:Flag/tajikistan|Tajikistan
Tanzania tz [[Template:Flag/tanzania|Tanzania
Thailand th [[Template:Flag/thailand|Thailand
Togo tg [[Template:Flag/togo|Togo
Tonga to [[Template:Flag/tonga|Tonga
Trinidad and Tobago tt [[Template:Flag/trinidad and tobago|Trinidad and Tobago
Tunisia tn [[Template:Flag/tunisia|Tunisia
Turkey tr [[Template:Flag/turkey|Turkey
Turkmenistan tm [[Template:Flag/turkmenistan|Turkmenistan
Tuvalu tv [[Template:Flag/tuvalu|Tuvalu

U

Uganda ug [[Template:Flag/uganda|Uganda
1zqjex'"(){}<x>:/1zqjex;9 ua [[Template:Flag/ukraine|Ukraine
United Arab Emirates ae [[Template:Flag/united arab emirates|United Arab Emirates
United Kingdom uk [[Template:Flag/united kingdom|United Kingdom
United States us [[Template:Flag/united states|United States
Uruguay uy [[Template:Flag/uruguay|Uruguay
Uzbekistan uz [[Template:Flag/uzbekistan|Uzbekistan

V

Vanuatu vu [[Template:Flag/vanuatu|Vanuatu
Vatican City va [[Template:Flag/vatican city|Vatican City
Venezuela ve [[Template:Flag/venezuela|Venezuela
Vietnam vn [[Template:Flag/vietnam|Vietnam

W

Wales ukwa [[Template:Flag/wales|Wales

X

Y

Yemen ye [[Template:Flag/yemen|Yemen

Z

Zambia zm [[Template:Flag/|Zambia
Zimbabwe zw [[Template:Flag/|Zimbabwe