Template:Flag/doc
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
|
[[Template:Flag/|Afghanistan | |
al
|
[[Template:Flag/|Albania | |
dz
|
[[Template:Flag/|Algeria | |
ad
|
[[Template:Flag/|Andorra | |
ao
|
[[Template:Flag/|Angola | |
ag
|
[[Template:Flag/|Antigua and Barbuda | |
ar
|
[[Template:Flag/|Argentina | |
am
|
[[Template:Flag/|Armenia | |
[[Template:Flag/<|au ]]
|
[[Template:Flag/|Australia | |
at
|
[[Template:Flag/|Austria | |
az
|
[[Template:Flag/|Azerbaijan |
B
bs
|
[[Template:Flag/|The Bahamas | |
bh
|
[[Template:Flag/|Bahrain | |
bd
|
[[Template:Flag/|Bangladesh | |
bb
|
[[Template:Flag/|Barbados | |
by
|
[[Template:Flag/|Belarus | |
be
|
[[Template:Flag/|Belgium | |
bz
|
[[Template:Flag/|Belize | |
bj
|
[[Template:Flag/|Benin | |
bt
|
[[Template:Flag/|Bhutan | |
bo
|
[[Template:Flag/|Bolivia | |
ba
|
[[Template:Flag/|Bosnia and Herzegovina | |
bw
|
[[Template:Flag/|Botswana | |
br
|
[[Template:Flag/|Brazil | |
bn
|
[[Template:Flag/|Brunei | |
bg
|
[[Template:Flag/|Bulgaria | |
bf
|
[[Template:Flag/|Burkina Faso | |
bi
|
[[Template:Flag/|Burundi |
C
kh
|
[[Template:Flag/|Cambodia | |
cm
|
[[Template:Flag/|Cameroon | |
ca
|
[[Template:Flag/|Canada | |
cv
|
[[Template:Flag/|Cape Verde | |
cf
|
[[Template:Flag/|Central African Republic | |
td
|
[[Template:Flag/|Chad | |
cl
|
[[Template:Flag/|Chile | |
cn
|
[[Template:Flag/|China | |
co
|
[[Template:Flag/|Colombia | |
km
|
[[Template:Flag/|Comoros | |
cd
|
[[Template:Flag/|Democratic Republic of the Congo | |
cg
|
[[Template:Flag/|Republic of the Congo | |
cr
|
[[Template:Flag/|Costa Rica | |
hr
|
[[Template:Flag/|Croatia | |
cu
|
[[Template:Flag/|Cuba | |
cy
|
[[Template:Flag/|Cyprus | |
cz
|
[[Template:Flag/|Czech Republic | |
ci
|
[[Template:Flag/|Côte d'Ivoire |
D
dk
|
[[Template:Flag/|Denmark | |
dj
|
[[Template:Flag/|Djibouti | |
dm
|
[[Template:Flag/|Dominica | |
do
|
[[Template:Flag/|Dominican Republic |
E
tl
|
[[Template:Flag/|East Timor | |
ec
|
[[Template:Flag/|Ecuador | |
eg
|
[[Template:Flag/|Egypt | |
sv
|
[[Template:Flag/|El Salvador | |
uken
|
[[Template:Flag/|England | |
gq
|
[[Template:Flag/|Equatorial Guinea | |
er
|
[[Template:Flag/|Eritrea | |
ee
|
[[Template:Flag/|Estonia | |
sz
|
[[Template:Flag/|Eswatini | |
et
|
[[Template:Flag/|Ethiopia | |
eu
|
[[Template:Flag/|Europe |
G
ga
|
[[Template:Flag/|Gabon | |
gm
|
[[Template:Flag/|Gambia | |
ge
|
[[Template:Flag/|Georgia | |
de
|
[[Template:Flag/|Germany | |
gh
|
[[Template:Flag/|Ghana | |
gr
|
[[Template:Flag/|Greece | |
gl
|
[[Template:Flag/|Greenland | |
gd
|
[[Template:Flag/|Grenada | |
gt
|
[[Template:Flag/|Guatemala | |
gn
|
[[Template:Flag/|Guinea | |
gw
|
[[Template:Flag/|Guinea-Bissau | |
gy
|
[[Template:Flag/|Guyana |
H
ht
|
[[Template:Flag/|Haiti | |
hn
|
[[Template:Flag/|Honduras | |
hk
|
[[Template:Flag/|Hong Kong | |
hu
|
[[Template:Flag/|Hungary |
I
is
|
[[Template:Flag/iceland|Iceland | |
in
|
[[Template:Flag/india|India | |
id
|
[[Template:Flag/indonesia|Indonesia | |
ir
|
[[Template:Flag/iran|Iran | |
iq
|
[[Template:Flag/iraq|Iraq | |
ie
|
[[Template:Flag/ireland|Ireland | |
il
|
[[Template:Flag/israel|Israel | |
it
|
[[Template:Flag//italy|Italy |
J
jm
|
[[Template:Flag/jamaica|Jamaica | |
jp
|
[[Template:Flag/japan|Japan | |
jo
|
[[Template:Flag/jordan|Jordan |
K
kz
|
[[Template:Flag/kazakhstan|Kazakhstan | |
ke
|
[[Template:Flag/kenya|Kenya | |
ki
|
[[Template:Flag/kiribati|Kiribati | |
xk
|
[[Template:Flag/kosovo|Kosovo | |
[[Template:Flag/>kw|kw ]]
|
[[Template:Flag/kuwait|Kuwait | |
kg
|
[[Template:Flag/kyrgyzstan|Kyrgyzstan |
L
la
|
[[Template:Flag/laos|Laos | |
lv
|
[[Template:Flag/latvia|Latvia | |
lb
|
[[Template:Flag/lebanon|Lebanon | |
ls
|
[[Template:Flag/lesotho|Lesotho | |
lr
|
[[Template:Flag/liberia|Liberia | |
ly
|
[[Template:Flag/libya|Libya | |
li
|
[[Template:Flag/liechtenstein|Liechtenstein | |
lt
|
[[Template:Flag/lithuania|Lithuania | |
lu
|
[[Template:Flag/luxembourg|Luxembourg |
M
mg
|
[[Template:Flag/madagascar|Madagascar | |
mw
|
[[Template:Flag/malawi|Malawi | |
my
|
[[Template:Flag/malaysia|Malaysia | |
mv
|
[[Template:Flag/maldives|Maldives | |
ml
|
[[Template:Flag/mali|Mali | |
mt
|
[[Template:Flag/malta|Malta | |
mh
|
[[Template:Flag/marshall islands|Marshall Islands | |
mr
|
[[Template:Flag/mauritania|Mauritania | |
mu
|
[[Template:Flag/mauritius|Mauritius | |
mx
|
[[Template:Flag/mexico|Mexico | |
fm
|
[[Template:Flag/micronesia|Micronesia | |
md
|
[[Template:Flag/moldova|Moldova | |
mc
|
[[Template:Flag/monaco|Monaco | |
mn
|
[[Template:Flag/mongolia|Mongolia | |
me
|
[[Template:Flag/montonegro|Montenegro | |
ma
|
[[Template:Flag/morocco|Morocco | |
mz
|
[[Template:Flag/mozambique|Mozambique | |
mm
|
[[Template:Flag/myanmar|Myanmar |
N
na
|
[[Template:Flag/namibia|Namibia | |
nr
|
[[Template:Flag/nauru|Nauru | |
np
|
[[Template:Flag/nepal|Nepal | |
nl
|
[[Template:Flag/netherlands|Netherlands | |
nz
|
[[Template:Flag/new zealand|New Zealand | |
ni
|
[[Template:Flag/nicaragua|Nicaragua | |
ne
|
[[Template:Flag/niger|Niger | |
ng
|
[[Template:Flag/nigeria|Nigeria | |
kp
|
[[Template:Flag/north korea|North Korea | |
mk
|
[[Template:Flag/north macedonia|North Macedonia | |
ukni
|
[[Template:Flag/northern ireland|Northern Ireland | |
no
|
[[Template:Flag/norway|Norway |
O
om
|
[[Template:Flag/oman|Oman |
P
pk
|
[[Template:Flag/pakistan|Pakistan | |
pw
|
[[Template:Flag/palau|Palau | |
ps
|
[[Template:Flag/palestine|Palestine | |
pa
|
[[Template:Flag/panama|Panama | |
pg
|
[[Template:Flag/papua new guinea|Papua New Guinea | |
py
|
[[Template:Flag/paraguay|Paraguay | |
pe
|
[[Template:Flag/peru|Peru | |
ph
|
[[Template:Flag/phillipines|Philippines | |
pl
|
[[Template:Flag/poland|Poland | |
pt
|
[[Template:Flag/portugal|Portugal | |
pr
|
[[Template:Flag/puerto rico|Puerto Rico |
Q
qa
|
[[Template:Flag/qatar|Qatar |
R
ro
|
[[Template:Flag/romania|Romania | |
ru
|
[[Template:Flag/russia|Russia | |
rw
|
[[Template:Flag/rwanda|Rwanda |
S
kn
|
[[Template:Flag/saint kitts and nevis|Saint Kitts and Nevis | |
lc
|
[[Template:Flag/saint lucia|Saint Lucia | |
vc
|
[[Template:Flag/saint vincent and the grenadines|Saint Vincent and the Grenadines | |
ws
|
[[Template:Flag/amoa|Samoa | |
sm
|
[[Template:Flag/san marino|San Marino | |
st
|
[[Template:Flag/sao tome and principe|Sao Tome and Principe | |
sa
|
[[Template:Flag/saudi arabia|Saudi Arabia | |
uksc
|
[[Template:Flag/scotland|Scotland | |
sn
|
[[Template:Flag/senegal|Senegal | |
rs
|
[[Template:Flag/serbia|Serbia | |
sc
|
[[Template:Flag/seychelles|Seychelles | |
sl
|
[[Template:Flag/ierra leone|Sierra Leone | |
sg
|
[[Template:Flag/singapore|Singapore | |
sk
|
[[Template:Flag/slovakia|Slovakia | |
si
|
[[Template:Flag/slovenia|Slovenia | |
sb
|
[[Template:Flag/solomon islands|Soloman Islands | |
so
|
[[Template:Flag/somalia|Somalia | |
za
|
[[Template:Flag/south africa|South Africa | |
sam
|
[[Template:Flag/south america|South America | |
kr
|
[[Template:Flag/south korea|South Korea | |
ss
|
[[Template:Flag/south sudan|South Sudan | |
es
|
[[Template:Flag/spain|Spain | |
lk
|
[[Template:Flag/sri lanka|Sri Lanka | |
sd
|
[[Template:Flag/sudan|Sudan | |
sr
|
[[Template:Flag/suriname|Suriname | |
se
|
[[Template:Flag/sweden|Sweden | |
ch
|
[[Template:Flag/switzerland|Switzerland | |
sy
|
[[Template:Flag/syria|Syria |
T
tw
|
[[Template:Flag/taiwan|Taiwan | |
tj
|
[[Template:Flag/tajikistan|Tajikistan | |
tz
|
[[Template:Flag/tanzania|Tanzania | |
th
|
[[Template:Flag/thailand|Thailand | |
tg
|
[[Template:Flag/togo|Togo | |
to
|
[[Template:Flag/tonga|Tonga | |
tt
|
[[Template:Flag/trinidad and tobago|Trinidad and Tobago | |
tn
|
[[Template:Flag/tunisia|Tunisia | |
tr
|
[[Template:Flag/turkey|Turkey | |
tm
|
[[Template:Flag/turkmenistan|Turkmenistan | |
tv
|
[[Template:Flag/tuvalu|Tuvalu |
U
ug
|
[[Template:Flag/uganda|Uganda | |
1zqjex'"(){}<x>:/1zqjex;9 | ua
|
[[Template:Flag/ukraine|Ukraine |
ae
|
[[Template:Flag/united arab emirates|United Arab Emirates | |
uk
|
[[Template:Flag/united kingdom|United Kingdom | |
us
|
[[Template:Flag/united states|United States | |
uy
|
[[Template:Flag/uruguay|Uruguay | |
uz
|
[[Template:Flag/uzbekistan|Uzbekistan |
V
vu
|
[[Template:Flag/vanuatu|Vanuatu | |
va
|
[[Template:Flag/vatican city|Vatican City | |
ve
|
[[Template:Flag/venezuela|Venezuela | |
vn
|
[[Template:Flag/vietnam|Vietnam |
W
ukwa
|
[[Template:Flag/wales|Wales |
X
Y
ye
|
[[Template:Flag/yemen|Yemen |
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)