Difference between revisions of "Template:Flag/doc"
Line 71: | Line 71: | ||
{| class=wikitable style="width: 100%; text-align: center;" | {| 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]] | |[[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}} | ||
Line 87: | Line 76: | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
| style="width: 29px;" | {{flag|af}} | | style="width: 29px;" | {{flag|af}} | ||
− | | style=" | + | | style="width: 44px;" | [[Template:Flag/af|<code>af</code>]] |
− | | style=" | + | | style="width: 150px" | Afghanistan |
|- | |- | ||
| {{flag|al}} | | {{flag|al}} | ||
Line 135: | Line 124: | ||
| style="width: 29px;" | {{flag|bs}} | | style="width: 29px;" | {{flag|bs}} | ||
| style="width: 44px;" | <code>bs</code> | | style="width: 44px;" | <code>bs</code> | ||
− | | style="width: | + | | style="width: 150px;" | The Bahamas |
|- | |- | ||
| {{flag|bh}} | | {{flag|bh}} | ||
Line 206: | Line 195: | ||
| style="width: 29px;" | {{flag|kh}} | | style="width: 29px;" | {{flag|kh}} | ||
| style="width: 44px;" | <code>kh</code> | | style="width: 44px;" | <code>kh</code> | ||
− | | style="width: | + | | style="width: 150px;" | Cambodia |
|- | |- | ||
| {{flag|cm}} | | {{flag|cm}} | ||
Line 281: | Line 270: | ||
| style="width: 29px;" | {{flag|dk}} | | style="width: 29px;" | {{flag|dk}} | ||
| style="width: 44px;" | <code>dk</code> | | style="width: 44px;" | <code>dk</code> | ||
− | | style="width: | + | | style="width: 150px;" | Denmark |
|- | |- | ||
| {{flag|dj}} | | {{flag|dj}} | ||
Line 300: | Line 289: | ||
|- | |- | ||
| style="width: 29px;" | {{flag|tl}} | | style="width: 29px;" | {{flag|tl}} | ||
− | | style="width: 44px | + | | style="width: 44px;" | <code>tl</code> |
− | | style="width: | + | | style="width: 150px;" | East Timor |
|- | |- | ||
| {{flag|ec}} | | {{flag|ec}} | ||
Line 317: | Line 306: | ||
| {{flag|uken}} | | {{flag|uken}} | ||
| <code>uken</code> | | <code>uken</code> | ||
− | + | | England | |
|- | |- | ||
| {{flag|gq}} | | {{flag|gq}} | ||
Line 349: | Line 338: | ||
| style="width: 29px;" | {{flag|fj}} | | style="width: 29px;" | {{flag|fj}} | ||
| style="width: 44px;" | <code>fj</code> | | style="width: 44px;" | <code>fj</code> | ||
− | | style="width: | + | | style="width: 150px;" | Fiji |
|- | |- | ||
| {{flag|fi}} | | {{flag|fi}} | ||
Line 365: | Line 354: | ||
| style="width: 29px;" | {{flag|ga}} | | style="width: 29px;" | {{flag|ga}} | ||
| style="width: 44px;" | <code>ga</code> | | style="width: 44px;" | <code>ga</code> | ||
− | | style="width: | + | | style="width: 150px;" | Gabon |
|- | |- | ||
| {{flag|gm}} | | {{flag|gm}} | ||
Line 389: | Line 378: | ||
| {{flag|gl}} | | {{flag|gl}} | ||
| <code>gl</code> | | <code>gl</code> | ||
− | + | | Greenland | |
|- | |- | ||
| {{flag|gd}} | | {{flag|gd}} | ||
Line 417: | Line 406: | ||
| style="width: 29px;" | {{flag|ht}} | | style="width: 29px;" | {{flag|ht}} | ||
| style="width: 44px;" | <code>ht</code> | | style="width: 44px;" | <code>ht</code> | ||
− | | style="width: | + | | style="width: 150px;" | Haiti |
|- | |- | ||
| {{flag|hn}} | | {{flag|hn}} | ||
Line 425: | Line 414: | ||
| {{flag|hk}} | | {{flag|hk}} | ||
| <code>hk</code> | | <code>hk</code> | ||
− | + | | Hong Kong | |
|- | |- | ||
| {{flag|hu}} | | {{flag|hu}} | ||
Line 437: | Line 426: | ||
| style="width: 29px;" | {{flag|is}} | | style="width: 29px;" | {{flag|is}} | ||
| style="width: 44px;" | <code>is</code> | | style="width: 44px;" | <code>is</code> | ||
− | | style="width: | + | | style="width: 150px;" | Iceland |
|- | |- | ||
| {{flag|in}} | | {{flag|in}} | ||
Line 473: | Line 462: | ||
| style="width: 29px;" | {{flag|jm}} | | style="width: 29px;" | {{flag|jm}} | ||
| style="width: 44px;" | <code>jm</code> | | style="width: 44px;" | <code>jm</code> | ||
− | | style="width: | + | | style="width: 150px;" | Jamaica |
|- | |- | ||
| {{flag|jp}} | | {{flag|jp}} | ||
Line 489: | Line 478: | ||
| style="width: 29px;" | {{flag|kz}} | | style="width: 29px;" | {{flag|kz}} | ||
| style="width: 44px;" | <code>kz</code> | | style="width: 44px;" | <code>kz</code> | ||
− | | style="width: | + | | style="width: 150px;" | Kazakhstan |
|- | |- | ||
| {{flag|ke}} | | {{flag|ke}} | ||
Line 501: | Line 490: | ||
| {{flag|xk}} | | {{flag|xk}} | ||
| <code>xk</code> | | <code>xk</code> | ||
− | + | | Kosovo | |
|- | |- | ||
| {{flag|kw}} | | {{flag|kw}} | ||
Line 517: | Line 506: | ||
| style="width: 29px;" | {{flag|la}} | | style="width: 29px;" | {{flag|la}} | ||
| style="width: 44px;" | <code>la</code> | | style="width: 44px;" | <code>la</code> | ||
− | | style="width: | + | | style="width: 150px;" | Laos |
|- | |- | ||
| {{flag|lv}} | | {{flag|lv}} | ||
Line 557: | Line 546: | ||
| style="width: 29px;" | {{flag|mg}} | | style="width: 29px;" | {{flag|mg}} | ||
| style="width: 44px;" | <code>mg</code> | | style="width: 44px;" | <code>mg</code> | ||
− | | style="width: | + | | style="width: 150px;" | Madagascar |
|- | |- | ||
| {{flag|mw}} | | {{flag|mw}} | ||
Line 632: | Line 621: | ||
|- | |- | ||
| style="width: 29px;" | {{flag|na}} | | style="width: 29px;" | {{flag|na}} | ||
− | | style="width: 44px; | + | | style="width: 44px;" | <code>na</code> |
− | | style="width: | + | | style="width: 150px;" | Namibia |
|- | |- | ||
| {{flag|nr}} | | {{flag|nr}} | ||
Line 685: | Line 674: | ||
| style="width: 29px;" | {{flag|om}} | | style="width: 29px;" | {{flag|om}} | ||
| style="width: 44px;" | <code>om</code> | | style="width: 44px;" | <code>om</code> | ||
− | | style="width: | + | | style="width: 150px;" | Oman |
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
Line 693: | Line 682: | ||
| style="width: 29px;" | {{flag|pk}} | | style="width: 29px;" | {{flag|pk}} | ||
| style="width: 44px;" | <code>pk</code> | | style="width: 44px;" | <code>pk</code> | ||
− | | style="width: | + | | style="width: 150px;" | Pakistan |
|- | |- | ||
| {{flag|pw}} | | {{flag|pw}} | ||
Line 701: | Line 690: | ||
| {{flag|ps}} | | {{flag|ps}} | ||
| <code>ps</code> | | <code>ps</code> | ||
− | + | | Palestine | |
|- | |- | ||
| {{flag|pa}} | | {{flag|pa}} | ||
Line 741: | Line 730: | ||
| style="width: 29px;" | {{flag|qa}} | | style="width: 29px;" | {{flag|qa}} | ||
| style="width: 44px;" | <code>qa</code> | | style="width: 44px;" | <code>qa</code> | ||
− | | style="width: | + | | style="width: 150px;" | Qatar |
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
Line 749: | Line 738: | ||
| style="width: 29px;" | {{flag|ro}} | | style="width: 29px;" | {{flag|ro}} | ||
| style="width: 44px;" | <code>ro</code> | | style="width: 44px;" | <code>ro</code> | ||
− | | style="width: | + | | style="width: 150px;" | Romania |
|- | |- | ||
| {{flag|ru}} | | {{flag|ru}} | ||
Line 765: | Line 754: | ||
| style="width: 29px;" | {{flag|kn}} | | style="width: 29px;" | {{flag|kn}} | ||
| style="width: 44px;" | <code>kn</code> | | style="width: 44px;" | <code>kn</code> | ||
− | | style="width: | + | | style="width: 150px;" | Saint Kitts and Nevis |
|- | |- | ||
| {{flag|lc}} | | {{flag|lc}} | ||
Line 881: | Line 870: | ||
| style="width: 29px;" | {{flag|tw}} | | style="width: 29px;" | {{flag|tw}} | ||
| style="width: 44px;" | <code>tw</code> | | style="width: 44px;" | <code>tw</code> | ||
− | | style="width: | + | | style="width: 150px;" | Taiwan |
|- | |- | ||
| {{flag|tj}} | | {{flag|tj}} | ||
Line 929: | Line 918: | ||
| style="width: 29px;" | {{flag|ug}} | | style="width: 29px;" | {{flag|ug}} | ||
| style="width: 44px;" | <code>ug</code> | | style="width: 44px;" | <code>ug</code> | ||
− | | style="width: | + | | style="width: 150px;" | Uganda |
|- | |- | ||
| {{flag|ua}} | | {{flag|ua}} | ||
Line 961: | Line 950: | ||
| style="width: 29px;" | {{flag|vu}} | | style="width: 29px;" | {{flag|vu}} | ||
| style="width: 44px;" | <code>vu</code> | | style="width: 44px;" | <code>vu</code> | ||
− | | style="width: | + | | style="width: 150px;" | Vanuatu |
|- | |- | ||
| {{flag|va}} | | {{flag|va}} | ||
| <code>va</code> | | <code>va</code> | ||
− | + | | Vatican City | |
|- | |- | ||
| {{flag|ve}} | | {{flag|ve}} | ||
Line 981: | Line 970: | ||
| style="width: 29px;" | {{flag|ukwa}} | | style="width: 29px;" | {{flag|ukwa}} | ||
| style="width: 44px;" | <code>ukwa</code> | | style="width: 44px;" | <code>ukwa</code> | ||
− | | style="width: | + | | style="width: 150px;" | Wales |
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
Line 991: | Line 980: | ||
| style="width: 29px;" | {{flag|ye}} | | style="width: 29px;" | {{flag|ye}} | ||
| style="width: 44px;" | <code>ye</code> | | style="width: 44px;" | <code>ye</code> | ||
− | | style="width: | + | | style="width: 150px;" | Yemen |
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
Line 999: | Line 988: | ||
| style="width: 29px;" | {{flag|zm}} | | style="width: 29px;" | {{flag|zm}} | ||
| style="width: 44px;" | <code>zm</code> | | style="width: 44px;" | <code>zm</code> | ||
− | | style="width: | + | | style="width: 150px;" | Zambia |
|- | |- | ||
| {{flag|zw}} | | {{flag|zw}} |
Revision as of 14:10, 11 May 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, . 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.
- Australasia:
oceania
- The Bahamas:
bahamas
- Cape Verde:
cabo verde
- East Timor:
timor-leste
- Gambia:
the gambia
- Ivory Coast:
cote d'ivoire
- Macau:
macao
- Template:Flag/pn Pitcairn:
pitcairn islands
- United Nations:
global
,international
,world
- United States:
united states of america
Alternate abbreviations
These abbreviations are additional to those listed in the tables.
- England:
en
- English Language:
ukus
- South Africa:
rsa
- United Arab Emirates:
uae
- United Kingdom:
gb
- United States:
usa
- Wales:
wa
vs.
The individual flags of England, Northern Ireland, Scotland, and Wales should take preference in all possible circumstances over the 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 |
A
af
|
Afghanistan | |
al
|
Albania | |
dz
|
Algeria | |
ad
|
Andorra | |
ao
|
Angola | |
ag
|
Antigua and Barbuda | |
ar
|
Argentina | |
am
|
Armenia | |
au
|
Australia | |
at
|
Austria | |
az
|
Azerbaijan |
B
bs
|
The Bahamas | |
bh
|
Bahrain | |
bd
|
Bangladesh | |
bb
|
Barbados | |
by
|
Belarus | |
be
|
Belgium | |
bz
|
Belize | |
bj
|
Benin | |
bt
|
Bhutan | |
bo
|
Bolivia | |
ba
|
Bosnia and Herzegovina | |
bw
|
Botswana | |
br
|
Brazil | |
bn
|
Brunei | |
bg
|
Bulgaria | |
bf
|
Burkina Faso | |
bi
|
Burundi |
C
kh
|
Cambodia | |
cm
|
Cameroon | |
ca
|
Canada | |
cv
|
Cape Verde | |
cf
|
Central African Republic | |
td
|
Chad | |
cl
|
Chile | |
cn
|
China | |
co
|
Colombia | |
km
|
Comoros | |
cd
|
Democratic Republic of the Congo | |
cg
|
Republic of the Congo | |
cr
|
Costa Rica | |
hr
|
Croatia | |
cu
|
Cuba | |
cy
|
Cyprus | |
cz
|
Czech Republic | |
ci
|
Côte d'Ivoire |
D
dk
|
Denmark | |
dj
|
Djibouti | |
dm
|
Dominica | |
do
|
Dominican Republic |
E
tl
|
East Timor | |
ec
|
Ecuador | |
eg
|
Egypt | |
sv
|
El Salvador | |
uken
|
England | |
gq
|
Equatorial Guinea | |
er
|
Eritrea | |
ee
|
Estonia | |
sz
|
Eswatini | |
et
|
Ethiopia | |
eu
|
Europe |
F
fj
|
Fiji | |
fi
|
Finland | |
fr
|
France |
G
ga
|
Gabon | |
gm
|
Gambia | |
ge
|
Georgia | |
de
|
Germany | |
gh
|
Ghana | |
gr
|
Greece | |
gl
|
Greenland | |
gd
|
Grenada | |
gt
|
Guatemala | |
gn
|
Guinea | |
gw
|
Guinea-Bissau | |
gy
|
Guyana |
H
ht
|
Haiti | |
hn
|
Honduras | |
hk
|
Hong Kong | |
hu
|
Hungary |
I
is
|
Iceland | |
in
|
India | |
id
|
Indonesia | |
ir
|
Iran | |
iq
|
Iraq | |
ie
|
Ireland | |
il
|
Israel | |
it
|
Italy |
J
jm
|
Jamaica | |
jp
|
Japan | |
jo
|
Jordan |
K
kz
|
Kazakhstan | |
ke
|
Kenya | |
ki
|
Kiribati | |
xk
|
Kosovo | |
kw
|
Kuwait | |
kg
|
Kyrgyzstan |
L
la
|
Laos | |
lv
|
Latvia | |
lb
|
Lebanon | |
ls
|
Lesotho | |
lr
|
Liberia | |
ly
|
Libya | |
li
|
Liechtenstein | |
lt
|
Lithuania | |
lu
|
Luxembourg |
M
mg
|
Madagascar | |
mw
|
Malawi | |
my
|
Malaysia | |
mv
|
Maldives | |
ml
|
Mali | |
mt
|
Malta | |
mh
|
Marshall Islands | |
mr
|
Mauritania | |
mu
|
Mauritius | |
mx
|
Mexico | |
fm
|
Micronesia | |
md
|
Moldova | |
mc
|
Monaco | |
mn
|
Mongolia | |
me
|
Montenegro | |
ma
|
Morocco | |
mz
|
Mozambique | |
mm
|
Myanmar |
N
na
|
Namibia | |
nr
|
Nauru | |
np
|
Nepal | |
nl
|
Netherlands | |
nz
|
New Zealand | |
ni
|
Nicaragua | |
ne
|
Niger | |
ng
|
Nigeria | |
kp
|
North Korea | |
mk
|
North Macedonia | |
ukni
|
Northern Ireland | |
no
|
Norway |
O
om
|
Oman |
P
pk
|
Pakistan | |
pw
|
Palau | |
ps
|
Palestine | |
pa
|
Panama | |
pg
|
Papua New Guinea | |
py
|
Paraguay | |
pe
|
Peru | |
ph
|
Philippines | |
pl
|
Poland | |
pt
|
Portugal | |
pr
|
Puerto Rico |
Q
qa
|
Qatar |
R
ro
|
Romania | |
ru
|
Russia | |
rw
|
Rwanda |
S
kn
|
Saint Kitts and Nevis | |
lc
|
Saint Lucia | |
vc
|
Saint Vincent and the Grenadines | |
ws
|
Samoa | |
sm
|
San Marino | |
st
|
Sao Tome and Principe | |
sa
|
Saudi Arabia | |
uksc
|
Scotland | |
sn
|
Senegal | |
rs
|
Serbia | |
sc
|
Seychelles | |
sl
|
Sierra Leone | |
sg
|
Singapore | |
sk
|
Slovakia | |
si
|
Slovenia | |
sb
|
Soloman Islands | |
so
|
Somalia | |
za
|
South Africa | |
sam
|
South America | |
kr
|
South Korea | |
ss
|
South Sudan | |
es
|
Spain | |
lk
|
Sri Lanka | |
sd
|
Sudan | |
sr
|
Suriname | |
se
|
Sweden | |
ch
|
Switzerland | |
sy
|
Syria |
T
tw
|
Taiwan | |
tj
|
Tajikistan | |
tz
|
Tanzania | |
th
|
Thailand | |
tg
|
Togo | |
to
|
Tonga | |
tt
|
Trinidad and Tobago | |
tn
|
Tunisia | |
tr
|
Turkey | |
tm
|
Turkmenistan | |
tv
|
Tuvalu |
U
ug
|
Uganda | |
1zqjex'"(){}<x>:/1zqjex;9 | ua
|
Ukraine |
ae
|
United Arab Emirates | |
uk
|
United Kingdom | |
us
|
United States | |
uy
|
Uruguay | |
uz
|
Uzbekistan |
V
vu
|
Vanuatu | |
va
|
Vatican City | |
ve
|
Venezuela | |
vn
|
Vietnam |
W
ukwa
|
Wales |
X
Y
ye
|
Yemen |
Z
zm
|
Zambia | |
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. ), 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)