Difference between revisions of "Template:Flag/doc"
Line 338: | Line 338: | ||
| [[Template:Flag/el salvador|El Salvador]] | | [[Template:Flag/el salvador|El Salvador]] | ||
|- | |- | ||
− | | {{flag|uken}} | + | | rowspan=2 | {{flag|uken}} |
| [[Template:Flag/uken|<code>uken</code>]] | | [[Template:Flag/uken|<code>uken</code>]] | ||
− | | [[Template:Flag/england|England]] | + | | rowspan=2 | [[Template:Flag/england|England]] |
+ | |- | ||
+ | | [[Template:Flag/en|<code>en</code>]] | ||
|- | |- | ||
| {{flag|gq}} | | {{flag|gq}} | ||
Line 851: | Line 853: | ||
| [[Template:Flag/somalia|Somalia]] | | [[Template:Flag/somalia|Somalia]] | ||
|- | |- | ||
− | | {{flag|za}} | + | | rowspan=2 | {{flag|za}} |
| [[Template:Flag/za|<code>za</code>]] | | [[Template:Flag/za|<code>za</code>]] | ||
− | | [[Template:Flag/south africa|South Africa]] | + | | rowspan=2 | [[Template:Flag/south africa|South Africa]] |
+ | |- | ||
+ | | [[Template:Flag/rsa|<code>rsa</code>]] | ||
|- | |- | ||
| {{flag|kr}} | | {{flag|kr}} | ||
Line 952: | Line 956: | ||
| [[Template:Flag/ukraine|Ukraine]] | | [[Template:Flag/ukraine|Ukraine]] | ||
|- | |- | ||
− | | {{flag|ae}} | + | | rowspan=2 | {{flag|ae}} |
| [[Template:Flag/ae|<code>ae</code>]] | | [[Template:Flag/ae|<code>ae</code>]] | ||
− | | [[Template:Flag/united arab emirates|United Arab Emirates]] | + | | rowspan=2 | [[Template:Flag/united arab emirates|United Arab Emirates]] |
+ | |- | ||
+ | | [[Template:Flag/uae|<code>uae</code>]] | ||
|- | |- | ||
− | | {{flag|uk}} | + | | rowspan=2 | {{flag|uk}} |
| [[Template:Flag/uk|<code>uk</code>]] | | [[Template:Flag/uk|<code>uk</code>]] | ||
− | | [[Template:Flag/united kingdom|United Kingdom]] | + | | rowspan=2 | [[Template:Flag/united kingdom|United Kingdom]] |
+ | |- | ||
+ | | [[Template:Flag/gb|<code>gb</code>]] | ||
|- | |- | ||
− | | {{flag|us}} | + | | rowspan=2 | {{flag|us}} |
| [[Template:Flag/us|<code>us</code>]] | | [[Template:Flag/us|<code>us</code>]] | ||
− | | [[Template:Flag/united states|United States]] | + | | rowspan=2 | [[Template:Flag/united states|United States]] |
+ | |- | ||
+ | | [[Template:Flag/usa|<code>usa</code>]] | ||
|- | |- | ||
| {{flag|uy}} | | {{flag|uy}} | ||
Line 996: | Line 1,006: | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
|- | |- | ||
− | | style="width: 29px;" | {{flag|ukwa}} | + | | rowspan=2 style="width: 29px;" | {{flag|ukwa}} |
| style="width: 44px;" | [[Template:Flag/ukwa|<code>ukwa</code>]] | | style="width: 44px;" | [[Template:Flag/ukwa|<code>ukwa</code>]] | ||
− | | style="width: 160px;" | [[Template:Flag/wales|Wales]] | + | | rowspan=2 style="width: 160px;" | [[Template:Flag/wales|Wales]] |
+ | |- | ||
+ | | [[Template:Flag/wa|<code>wa</code>]] | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} |
Revision as of 15:47, 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.
Misc · 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 |
Miscellaneous
aunz
|
Australia/New Zealand | |
ukus
|
English Language | |
eu
|
Europe | |
nam
|
North America | |
sam
|
South America | |
un
|
United Nations | |
|
Unknown |
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
C
E
tl
|
East Timor | |
ec
|
Ecuador | |
eg
|
Egypt | |
sv
|
El Salvador | |
uken
|
England | |
en
| ||
gq
|
Equatorial Guinea | |
er
|
Eritrea | |
ee
|
Estonia | |
sz
|
Eswatini | |
et
|
Ethiopia |
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 |
L
la
|
Laos | |
lv
|
Latvia | |
lb
|
Lebanon | |
ls
|
Lesotho | |
lr
|
Liberia | |
ly
|
Libya | |
li
|
Liechtenstein | |
lt
|
Lithuania | |
lu
|
Luxembourg |
M
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 |
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 |
S
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 | |
uae
| ||
uk
|
United Kingdom | |
gb
| ||
us
|
United States | |
usa
| ||
uy
|
Uruguay | |
uz
|
Uzbekistan |
X
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)