User:Kvwiki1234/sandbox/Flags
Appearance
Flag Templates
[edit]Country shortcuts
[edit]- These Country shortcuts are equivalent to using the {{flag}} template: eg.
{{flag|USA}}
Markup | Displays as |
---|---|
{{USA}} |
United States |
{{UK}} |
United Kingdom |
{{GBR}} |
United Kingdom |
{{AUS}} |
Australia |
{{FRA}} |
France |
{{GER}} |
Germany |
{{ESP}} |
Spain |
{{BRA}} |
Brazil |
{{ARG}} |
Argentina |
{{CSK}} |
Czechoslovakia |
{{CZE}} |
Czech Republic |
{{IRL}} |
Ireland |
{{ITA}} |
Italy |
{{MEX}} |
Mexico |
{{NLD}} |
Netherlands |
{{NZL}} |
New Zealand |
{{NZ}} |
New Zealand |
{{NOR}} |
Norway |
{{PER}} |
Peru |
{{ROU}} |
Romania |
{{RUS}} |
Russia |
{{ZAF}} |
South Africa |
{{RSA}} |
South Africa |
{{SWE}} |
Sweden |
{{CHE}} |
Switzerland |
{{SUI}} |
Switzerland |
{{YUG}} |
Yugoslavia |
{{BLR}} |
Belarus |
{{BEL}} |
Belgium |
{{CHN}} |
China |
{{IND}} |
India |
{{BAN}} |
Bangladesh |
{{SKN}} |
Saint Kitts and Nevis |
{{LKA}} |
Sri Lanka |
{{ARE}} |
United Arab Emirates |
{{UAE}} |
United Arab Emirates |
Duplicates
Full templates
[edit]flag
[edit]Template:Flag: flag image with a text link to country
Markup | Displays as |
---|---|
{{flag|European Union}} |
European Union |
{{flag|ISIS}} |
ISIS |
{{flag|Bangladesh}} |
Bangladesh |
{{flag|Canada|1957|name=Canadian}} |
Canadian |
{{flag|Alaska}} |
Alaska |
{{flag|Georgia}} |
Georgia |
{{flag|Georgia_(U.S._state)|name=Georgia}} |
Georgia |
{{flag|Washington}} |
Washington |
{{flag|Washington, D.C.|name=Washington}} |
Washington |
{{flag|Kuwait}} |
Kuwait |
{{flag|Great Britain}} |
Great Britain [a] |
flagdeco
[edit]Template:Flagdeco: flag image only
Markup | Displays as |
---|---|
{{flagdeco|GBR}} |
|
{{flagdeco|ISIS}} |
|
{{flagdeco|England}} |
|
{{flagdeco|Kuwait}} |
Markup | Displays as |
---|---|
{{flagdeco|GBR}} [[Great Britain]] |
Great Britain [b] |
{{flagdeco|GBR}} [[United Kingdom|Great Britain]] |
Great Britain [c] |
flagicon
[edit]Template:Flagicon: flag image icon as a clickable link to country
Markup | Displays as |
---|---|
{{flagicon|Austrian Empire}} |
|
{{flagicon|Kuwait}} |
|
{{flagicon|Palestine}} |
|
{{flagicon|Macedonia}} |
|
{{flagicon|United States}} |
|
{{flagicon|British India}} |
|
{{flagicon|EU}} |
|
{{flagicon|Canada|1957}} |
|
{{flagicon|France}} |
|
{{flagicon|France|variant=1814}} |
[d] |
with image file parameter
[edit]Template:Flagicon with an image file parameter. Notice, using flagicon with an image file parameter renders a plain image similar to flagdeco.
Markup | Displays as |
---|---|
{{flagicon image|Flag_of_the_Alaungpaya_Dynasty_of_Myanmar.svg}} |
[e] |
{{flagicon image|Flag_of_OIC.svg}} |
File:Flag of OIC.svg [f] |
{{flagicon image|Flag of the Ottoman Empire (1844–1922).svg|link=Ottoman Empire}}
|
|
{{flagicon image|Flag_of_Gwalior_(State).svg|link=Gwalior State}}
|
|
{{flagicon image|Idar_Flag.svg|link=Idar State}}
|
|
{{flagicon image|Flag_of_Bikaner.svg|link=Bikaner State}}
|
flaglist
[edit]Template:Flaglist: practically the same as flag except that the names are aligned correctly even with flag icons of different widths such as Switzerland or Niger.
|
|
flagteam
[edit]Template:Flaglist: Displays a flag icon, country name, and country code in parentheses.
Markup | Displays as |
---|---|
{{flagteam|CAN}} |
Canada (CAN) |
Linking images
[edit]Two ways of linking to an image from the Wikipedia File namespace:
Display the image directly
[edit]Markup | Displays as |
---|---|
[[File:Wikipedia-logo.png]] |
Produce a link to the image file page
[edit]Markup | Displays as |
---|---|
[[:File:Wikipedia-logo.png]] |
File:Wikipedia-logo.png |
[[:File:Wikipedia-logo.png|Custom text - My image is here]] |
Custom text - My image is here |
Misc
[edit]Notes
[edit]- ^ Using the explicit {{flag}} template for Great Britain/UK instead of
{{GBR}}
renders text that says "Great Britain" but still links to the United Kingdom which is what is relevant for nationality in most cases. This is useful if the text "Great Britain" is needed for sports purposes such as Davis Cup, Fed Cup, the Olympics, etc - ^ Links to the island of Great Britain which is not relevant to nationality and is useless in most cases
- ^ Result is identical to using
{{flag|Great Britain}}
. - ^ Flag of France during the Bourbon Restoration
- ^ Flag of the Konbaung dynasty
- ^ Image deleted from wikipedia. Details here