Difference between revisions of "Template:Flag"

From comp.tf
Jump to navigation Jump to search
m
(Force lowercase)
 
(47 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|{{#switch: {{padleft:|1|{{lc:{{{1|}}}}} }}
+
<includeonly>{{Flag/{{lc:{{{1|}}}}}}}</includeonly><noinclude>{{documentation}}[[Category:Template]]</noinclude>
|k={{#switch:{{lc:{{{1|}}} }}
 
  |kr
 
  |korea            = [[Image:Kr.png| South Korea|link=:Category:South Korea]]
 
  |kz
 
  |kazakhstan        = [[Image:Kz.png| Kazakhstan|link=:Category:Kazakhstan]]
 
  |kw
 
  |kuwait            = [[Image:Kw.png| Kuwait|link=:Category:Kuwait]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
 
 
  }}
 
|u={{#switch:{{lc:{{{1|}}} }}
 
  |us                = [[Image:Us.png| USA|link=:Category:United States]]
 
  |ua                = [[Image:Ua.png| Ukraine|link=:Category:Ukraine]]
 
      |united states
 
      |united states of america
 
  |usa              = [[Image:Us.png| USA|link=:Category:United States]]
 
  |ukraine          = [[Image:Ua.png| Ukraine|link=:Category:Ukraine]]
 
 
 
  |uk                = [[Image:Uk.png| United Kingdom|link=:Category:United Kingdom]]
 
  |un                = [[Image:Un.gif| United Nations|link=:Category:United Nations]]
 
  |uken              = [[Image:En.gif| England|link=:Category:England]]
 
  |ukni              = [[Image:Ni.png| Northern Ireland|link=:Category:Northern Ireland]]
 
  |uksc              = [[Image:Sc.gif| Scotland|link=:Category:Scotland]]
 
  |ukwa              = [[Image:Wa.gif| Wales|link=:Category:Wales]]
 
  |uz                = [[Image:Uz.png| Uzbekistan|link=:Category:Uzbekistan]]
 
  |usuk              = [[Image:UsUk.png| EngSpeaking]]
 
  |uy                = [[Image:Uy.gif| Uruguay|link=:Category:Uruguay]]
 
      |unitedkingdom
 
  |united kingdom    = [[Image:Uk.png| United Kingdom|link=:Category:United Kingdom]]
 
  |united nations    = [[Image:Un.gif| United Nations|link=:Category:United Nations]]
 
  |uzbekistan        = [[Image:Uz.png| Uzbekistan|link=:Category:Uzbekistan]]
 
  |uruguay          = [[Image:Uy.gif| Uruguay|link=:Category:Uruguay]]
 
  |uae                = [[Image:Ae.png| United Arab Emirates|link=:Category:United Arab Emirates]]
 
  |united arab emirates = [[Image:Ae.png| United Arab Emirates|link=:Category:United Arab Emirates]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|s={{#switch:{{lc:{{{1|}}} }}
 
  |se                = [[Image:Se.png| Sweden|link=:Category:Sweden]]
 
      |south korea
 
  |southkorea        = [[Image:Kr.png| South Korea|link=:Category:South Korea]]
 
  |sweden            = [[Image:Se.png| Sweden|link=:Category:Sweden]]
 
 
 
  |sc                = [[Image:Sc.gif| Scotland|link=:Category:Scotland]]
 
  |sg                = [[Image:Sg.png| Singapore|link=:Category:Singapore]]
 
  |si                = [[Image:Si.png| Slovenia|link=:Category:Slovenia]]
 
  |sk                = [[Image:Sk.png| Slovak Republic|link=:Category:Slovak Republic]]
 
  |sv                = [[Image:Sv.png| El Salvador|link=:Category:El Salvador]]
 
  |so                = [[Image:So.png| Somalia|link=:Category:Somalia]]
 
  |scotland          = [[Image:Sc.gif| Scotland|link=:Category:Scotland]]
 
  |serbia            = [[Image:Rs.png| Serbia|link=:Category:Serbia]]
 
      |saudiarabia
 
      |sa
 
  |saudi arabia      = [[Image:Sa.png| Saudi Arabia|link=:Category:Saudi Arabia]]
 
  |singapore        = [[Image:Sg.png| Singapore|link=:Category:Singapore]]
 
      |slovakia
 
  |slovakrepublic    = [[Image:Sk.png| Slovak Republic|link=:Category:Slovak Republic]]
 
  |slovenia          = [[Image:Si.png| Slovenia|link=:Category:Slovenia]]
 
      |southafrica
 
  |south africa      = [[Image:Za.png| South Africa|link=:Category:South Africa]]
 
  |spain            = [[Image:Es.png| Spain|link=:Category:Spain]]
 
  |switzerland      = [[Image:Ch.png| Switzerland|link=:Category:Switzerland]]
 
  |somalia          = [[Image:So.png| Somalia|link=:Category:Somalia]]
 
      |srilanka
 
  |sri lanka        = [[Image:Lk.png| Sri Lanka|link=:Category:Sri Lanka]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|c={{#switch:{{lc:{{{1|}}} }}
 
  |ca                = [[Image:Ca.png| Canada|link=:Category:Canada]]
 
  |cn                = [[Image:Cn.png| China|link=:Category:China]]
 
  |canada            = [[Image:Ca.png| Canada|link=:Category:Canada]]
 
  |china            = [[Image:Cn.png| China|link=:Category:China]]
 
  |ch                = [[Image:Ch.png| Switzerland|link=:Category:Switzerland]]
 
  |cl                = [[Image:Cl.png| Chile|link=:Category:Chile]]
 
  |co                = [[Image:Co.png| Colombia|link=:Category:Colombia]]
 
  |cr                = [[Image:Cr.png| Costa Rica|link=:Category:Costa Rica]]
 
  |cz                = [[Image:Cz.png| Czech Republic|link=:Category:Czech Republic]]
 
  |cy                = [[Image:Cy.gif| Cyprus|link=:Category:Cyprus]]
 
  |chile            = [[Image:Cl.png| Chile|link=:Category:Chile]]
 
  |colombia          = [[Image:Co.png| Colombia|link=:Category:Colombia]]
 
      |costarica
 
  |costa rica        = [[Image:Cr.png| Costa Rica|link=:Category:Costa Rica]]
 
  |croatia          = [[Image:Hr.png| Croatia|link=:Category:Croatia]]
 
      |czech
 
      |czechrepublic
 
  |czech republic    = [[Image:Cz.png| Czech Republic|link=:Category:Czech Republic]]
 
  |cyprus            = [[Image:Cy.gif| Cyprus|link=:Category:Cyprus]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|d={{#switch:{{lc:{{{1|}}} }}
 
  |de                = [[Image:De.png| Germany|link=:Category:Germany]]
 
  |dk                = [[Image:Dk.png| Denmark|link=:Category:Denmark]]
 
  |do                = [[Image:Do.gif| Dominican Republic|link=:Category:Dominican Republic]]
 
  |deat              = [[Image:DeAt.png| GerSpeaking]]
 
  |denmark          = [[Image:Dk.png| Denmark|link=:Category:Denmark]]
 
  |dominican republic= [[Image:Do.gif| Dominican Republic|link=:Category:Dominican Republic]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|f={{#switch:{{lc:{{{1|}}} }}
 
  |ff                = [[Image:placeholderflag.png]]
 
  |fi                = [[Image:Fi.png| Finland|link=:Category:Finland]]
 
  |fr                = [[Image:Fr.png| France|link=:Category:France]]
 
  |filler flag      = [[Image:placeholderflag.png]]
 
  |finland          = [[Image:Fi.png| Finland|link=:Category:Finland]]
 
  |fo                = [[Image:Fo.png| Faroe Islands|link=:Category:Faroe Islands]]
 
  |france            = [[Image:Fr.png| France|link=:Category:France]]
 
      |faroeislands
 
  |faroe islands    = [[Image:Fo.png| Faroe Islands|link=:Category:Faroe Islands]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|n={{#switch:{{lc:{{{1|}}} }}
 
  |nl                = [[Image:Nl.png| Netherlands|link=:Category:Netherlands]]
 
  |no                = [[Image:No.png| Norway|link=:Category:Norway]]
 
  |ni                = [[Image:Ni.png| Northern Ireland|link=:Category:Northern Ireland]]
 
  |nz                = [[Image:Nz.png| New Zealand|link=:Category:New Zealand]]
 
  |na                = [[Image:Na.png| Namibia|link=:Category:Namibia]]
 
  |ng                = [[Image:Ng.png| Nigeria|link=:Category:Nigeria]]
 
  |netherlands      = [[Image:Nl.png| Netherlands|link=:Category:Netherlands]]
 
  |norway            = [[Image:No.png| Norway|link=:Category:Norway]]
 
      |newzealand
 
  |new zealand      = [[Image:Nz.png| New Zealand|link=:Category:New Zealand]]
 
      |northerireland
 
      |northernireland
 
  |northern ireland  = [[Image:Ni.png| Northern Ireland|link=:Category:Northern Ireland]]
 
  |namibia          = [[Image:Na.png| Namibia|link=:Category:Namibia]]
 
  |nigeria                = [[Image:Ng.png| Nigeria|link=:Category:Nigeria]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|r={{#switch:{{lc:{{{1|}}} }}
 
  |ru                = [[Image:Ru.png| Russia|link=:Category:Russia]]
 
  |ro                = [[Image:Ro.png| Romania|link=:Category:Romania]]
 
  |rs                = [[Image:Rs.png| Serbia|link=:Category:Serbia]]
 
  |russia            = [[Image:Ru.png| Russia|link=:Category:Russia]]
 
  |romania          = [[Image:Ro.png| Romania|link=:Category:Romania]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|e={{#switch:{{lc:{{{1|}}} }}
 
  |eu                = [[Image:Eu.png| Europe|link=:Category:Europe]]
 
  |en                = [[Image:En.gif| England|link=:Category:England]]
 
  |es                = [[Image:Es.png| Spain|link=:Category:Spain]]
 
  |engspeaking      = [[Image:En lang.png| EngSpeaking]]
 
  |enlang            = [[Image:En lang.png| EngSpeaking]]
 
  |england          = [[Image:En.gif| England|link=:Category:England]]
 
  |europe            = [[Image:Eu.png| Europe|link=:Category:Europe]]
 
  |ec                = [[Image:Ec.png| Ecuador|link=:Category:Ecuador]]
 
  |ee                = [[Image:Ee.png| Estonia|link=:Category:Estonia]]
 
  |estonia          = [[Image:Ee.png| Estonia|link=:Category:Estonia]]
 
  |ecuador          = [[Image:Ec.png| Ecuador|link=:Category:Ecuador]]
 
  |eg                = [[Image:Eg.gif| Egypt|link=:Category:Egypt]]
 
  |egypt            = [[Image:Eg.gif| Egypt|link=:Category:Egypt]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|p={{#switch:{{lc:{{{1|}}} }}
 
  |pl                = [[Image:Pl.png| Poland|link=:Category:Poland]]
 
  |pa                = [[Image:Pa.png| Panama|link=:Category:Panama]]
 
  |pk                = [[Image:Pk.png| Pakistan|link=:Category:Pakistan]]
 
  |py                = [[Image:Py.gif| Paraguay|link=:Category:Paraguay]]
 
  |pe                = [[Image:Pe.png| Peru|link=:Category:Peru]]
 
  |ph                = [[Image:Ph.png| Philippines|link=:Category:Philippines]]
 
  |pr                = [[Image:Pr.png| Puerto Rico|link=:Category:Puerto Rico]]
 
  |pt                = [[Image:Pt.png| Portugal|link=:Category:Portugal]]
 
  |pakistan          = [[Image:Pk.png| Pakistan|link=:Category:Pakistan]]
 
  |panama            = [[Image:Pa.png| Panama|link=:Category:Panama]]
 
  |paraguay          = [[Image:Py.gif| Paraguay|link=:Category:Paraguay]]
 
  |peru              = [[Image:Pe.png| Peru|link=:Category:Peru]]
 
  |philippines      = [[Image:Ph.png| Philippines|link=:Category:Philippines]]
 
  |poland            = [[Image:Pl.png| Poland|link=:Category:Poland]]
 
  |portugal          = [[Image:Pt.png| Portugal|link=:Category:Portugal]]
 
      |puertorico
 
  |puerto rico      = [[Image:Pr.png| Puerto Rico|link=:Category:Puerto Rico]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|a={{#switch:{{lc:{{{1|}}} }}
 
  |au                = [[Image:Au.png| Australia|link=:Category:Australia]]
 
  |ae                = [[Image:Ae.png| United Arab Emirates|link=:Category:United Arab Emirates]]
 
  |ar                = [[Image:Ar.png| Argentina|link=:Category:Argentina]]
 
  |am                = [[Image:Am.png| Armenia|link=:Category:Armenia]]
 
  |at                = [[Image:At.png| Austria|link=:Category:Austria]]
 
  |az                = [[Image:Az.png| Azerbaijan|link=:Category:Azerbaijan]]
 
  |australia        = [[Image:Au.png| Australia|link=:Category:Australia]]
 
  |argentina        = [[Image:Ar.png| Argentina|link=:Category:Argentina]]
 
  |armenia          = [[Image:Am.png| Armenia|link=:Category:Armenia]]
 
  |austria          = [[Image:At.png| Austria|link=:Category:Austria]]
 
  |azerbaijan        = [[Image:Az.png| Azerbaijan|link=:Category:Azerbaijan]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|i={{#switch:{{lc:{{{1|}}} }}
 
  |it                = [[Image:It.png| Italy|link=:Category:Italy]]
 
  |id                = [[Image:Id.png| Indonesia|link=:Category:Indonesia]]
 
  |ie                = [[Image:Ie.png| Ireland|link=:Category:Ireland]]
 
  |in                = [[Image:In.png| India|link=:Category:India]]
 
  |ir                = [[Image:Ir.png| Iran|link=:Category:Iran]]
 
  |il                = [[Image:Il.gif| Israel|link=:Category:Israel]]
 
  |is                = [[Image:Is.png| Iceland|link=:Category:Iceland]]
 
  |italy            = [[Image:It.png| Italy|link=:Category:Italy]]
 
  |iceland          = [[Image:Is.png| Iceland|link=:Category:Iceland]]
 
  |indonesia        = [[Image:Id.png| Indonesia|link=:Category:Indonesia]]
 
  |israel            = [[Image:Il.gif| Israel|link=:Category:Israel]]
 
  |iran              = [[Image:Ir.png| Iran|link=:Category:Iran]]
 
  |ireland          = [[Image:Ie.png| Ireland|link=:Category:Ireland]]
 
  |india            = [[Image:In.png| India|link=:Category:India]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|b={{#switch:{{lc:{{{1|}}} }}
 
  |be                = [[Image:Be.png| Belgium|link=:Category:Belgium]]
 
  |bg                = [[Image:Bg.png| Bulgaria|link=:Category:Bulgaria]]
 
  |bo                = [[Image:Bo.png| Bolivia|link=:Category:Bolivia]]
 
  |ba                = [[Image:Ba.gif| Bosnia and Herzegovina|link=:Category:Bosnia and Herzegovina]]
 
  |br                = [[Image:Br.png| Brazil|link=:Category:Brazil]]
 
  |by                = [[Image:By.png| Belarus|link=:Category:Belarus]]
 
  |belarus          = [[Image:By.png| Belarus|link=:Category:Belarus]]
 
  |belgium          = [[Image:Be.png| Belgium|link=:Category:Belgium]]
 
  |bolivia          = [[Image:Bo.png| Bolivia|link=:Category:Bolivia]]
 
  |bosnia            = [[Image:Ba.gif| Bosnia and Herzegovina|link=:Category:Bosnia and Herzegovina]]
 
  |brazil            = [[Image:Br.png| Brazil|link=:Category:Brazil]]
 
  |bulgaria          = [[Image:Bg.png| Bulgaria|link=:Category:Bulgaria]]
 
  |bd                = [[Image:Bd.gif| Bangladesh|link=:Category:Bangladesh]]
 
  |bangladesh        = [[Image:Bd.gif| Bangladesh|link=:Category:Bangladesh]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Class]]
 
  }}
 
|m={{#switch:{{lc:{{{1|}}} }}
 
  |mx                = [[Image:Mx.png| Mexico|link=:Category:Mexico]]
 
  |ma                = [[Image:Ma.png| Morocco|link=:Category:Morocco]]
 
  |mk                = [[Image:Mk.png| Macedonia|link=:Category:Macedonia]]
 
  |my                = [[Image:My.png| Malaysia|link=:Category:Malaysia]]
 
  |md                = [[Image:Md.gif| Moldova|link=:Category:Moldova]]
 
  |mt                = [[Image:Mt.png| Malta|link=:Category:Malta]]
 
  |mv                = [[Image:Mv.png| Maldives|link=:Category:Maldives]]
 
  |mn                = [[Image:Mn.png| Mongolia|link=:Category:Mongolia]]
 
  |macedonia        = [[Image:Mk.png| Macedonia|link=:Category:Macedonia]]
 
  |malaysia          = [[Image:My.png| Malaysia|link=:Category:Malaysia]]
 
  |mexico            = [[Image:Mx.png| Mexico|link=:Category:Mexico]]
 
  |morocco          = [[Image:Ma.png| Morocco|link=:Category:Morocco]]
 
  |moldova          = [[Image:Md.gif| Moldova|link=:Category:Moldova]]
 
  |malta            = [[Image:Mt.png| Malta|link=:Category:Malta]]
 
  |maldives          = [[Image:Mv.png| Maldives|link=:Category:Maldives]]
 
  |mongolia          = [[Image:Mn.png| Mongolia|link=:Category:Mongolia]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|g={{#switch:{{lc:{{{1|}}} }}
 
  |gb                = [[Image:Uk.png| United Kingdom|link=:Category:United Kingdom]]
 
  |gr                = [[Image:Gr.png| Greece|link=:Category:Greece]]
 
  |gt                = [[Image:Gt.png| Guatemala|link=:Category:Guatemala]]
 
  |germany          = [[Image:De.png| Germany|link=:Category:Germany]]
 
  |gerspeaking      = [[Image:DeAt.png| GerSpeaking|link=:Category:GerSpeaking]]
 
  |greece            = [[Image:Gr.png| Greece|link=:Category:Greece]]
 
  |guatemala        = [[Image:Gt.png| Guatemala|link=:Category:Guatemala]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|h={{#switch:{{lc:{{{1|}}} }}
 
  |hr                = [[Image:Hr.png| Croatia|link=:Category:Croatia]]
 
  |hu                = [[Image:Hu.png| Hungary|link=:Category:Hungary]]
 
  |hk                = [[Image:Hk.png| Hong Kong|link=:Category:Hong Kong]]
 
  |hn                = [[Image:Hn.png| Honduras|link=:Category:Honduras]]
 
  |holland          = [[Image:Nl.png| Netherlands|link=:Category:Netherlands]]
 
      |hongkong
 
  |hong kong        = [[Image:Hk.png| Hong Kong|link=:Category:Hong Kong]]
 
  |hungary          = [[Image:Hu.png| Hungary|link=:Category:Hungary]]
 
  |honduras          = [[Image:Hn.png| Honduras|link=:Category:Honduras]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|l={{#switch:{{lc:{{{1|}}} }}
 
  |lt                = [[Image:Lt.png| Lithuania|link=:Category:Lithuania]]
 
  |lv                = [[Image:Lv.png| Latvia|link=:Category:Latvia]]
 
  |lu                = [[Image:Lu.png| Luxembourg|link=:Category:Luxembourg]]
 
  |ly                = [[Image:Ly.png| Libya|link=:Category:Libya]]
 
  |lk                = [[Image:Lk.png| Sri Lanka|link=:Category:Sri Lanka]]
 
  |li                = [[Image:Li.png| Liechtenstein|link=:Category:Liechtenstein]]
 
  |latvia            = [[Image:Lv.png| Latvia|link=:Category:Latvia]]
 
  |lithuania        = [[Image:Lt.png| Lithuania|link=:Category:Lithuania]]
 
  |luxembourg        = [[Image:Lu.png| Luxembourg|link=:Category:Luxembourg]]
 
  |libya            = [[Image:Ly.png| Libya|link=:Category:Libya]]
 
  |liechtenstein    = [[Image:Li.png| Liechtenstein|link=:Category:Liechtenstein]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|t={{#switch:{{lc:{{{1|}}} }}
 
  |th                = [[Image:Th.png| Thailand|link=:Category:Thailand]]
 
  |tn                = [[Image:Tn.png| Tunisia|link=:Category:Tunisia]]
 
  |tt                = [[Image:Tt.png| Trinidad And Tobago|link=:Category:Trinidad And Tobago]]
 
  |tr                = [[Image:Tr.gif| Turkey|link=:Category:Turkey]]
 
  |tw                = [[Image:Tw.png| Taiwan|link=:Category:Taiwan]]
 
  |taiwan            = [[Image:Tw.png| Taiwan|link=:Category:Taiwan]]
 
  |thailand          = [[Image:Th.png| Thailand|link=:Category:Thailand]]
 
  |trinidadandtobago = [[Image:Tt.png| Trinidad And Tobago|link=:Category:Trinidad And Tobago]]
 
  |turkey            = [[Image:Tr.gif| Turkey|link=:Category:Turkey]]
 
  |tunisia          = [[Image:Tn.png| Tunisia|link=:Category:Tunisia]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|v={{#switch:{{lc:{{{1|}}} }}
 
  |ve                = [[Image:Ve.png| Venezuela|link=:Category:Venezuela]]
 
  |vn                = [[Image:Vn.png| Vietnam|link=:Category:Vietnam]]
 
  |venezuela        = [[Image:Ve.png| Venezuela|link=:Category:Venezuela]]
 
  |vietnam          = [[Image:Vn.png| Vietnam|link=:Category:Vietnam]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|w={{#switch:{{lc:{{{1|}}} }}
 
  |wa                = [[Image:Wa.gif| Wales|link=:Category:Wales]]
 
  |wales            = [[Image:Wa.gif| Wales|link=:Category:Wales]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|j={{#switch:{{lc:{{{1|}}} }}
 
  |jp                = [[Image:Jp.png| Japan|link=:Category:Japan]]
 
  |japan            = [[Image:Jp.png| Japan|link=:Category:Japan]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
|z={{#switch:{{lc:{{{1|}}} }}
 
  |za                = [[Image:Za.png| South Africa|link=:Category:South Africa]]
 
      |zw
 
  |zimbabwe          = [[Image:Zw.png| Zimbabwe|link=:Category:Zimbabwe]]
 
  |#default          = [[Image:placeholderflag.png]] [[Category:Unrecognised Flag]]
 
  }}
 
| [[Category:Unrecognised Flag]]
 
}}}}<noinclude>
 
Template for flags.
 
 
 
== Usage ==
 
<pre>{{flag|uk}}</pre>
 
yields
 
{{flag|uk}}
 
 
 
== Available Flags ==
 
 
 
*{{flag|au}} Australia (au)<br/>
 
*{{flag|be}} Belgium (be)<br/>
 
*{{flag|ca}} Canada (ca)<br/>
 
*{{flag|en}} England (en)<br/>
 
*{{flag|eu}} European Union (eu)<br/>
 
*{{flag|fi}} Finland (fi)<br/>
 
*{{flag|fr}} France (fr)<br/>
 
*{{flag|de}} Germany (de)<br/>
 
*{{flag|ie}} Ireland (ie)<br/>
 
*{{flag|nl}} Netherlands (nl)<br/>
 
*{{flag|no}} Norway (no)<br/>
 
*{{flag|pt}} Portugal (pt)<br/>
 
*{{flag|es}} Spain (es)<br/>
 
*{{flag|se}} Sweden (se)<br/>
 
*{{flag|uk}} United Kingdom (uk)<br/>
 
*{{flag|us}} United States (us)<br/>
 
*{{flag|wa}} Wales (wa)<br/>
 
 
 
You can also use the full names, e.g.:
 
 
 
<code><nowiki>{{flag|united kingdom}}</nowiki></code> = {{flag|united kingdom}}<br/>
 
<code><nowiki>{{flag|australia}}</nowiki></code> = {{flag|australia}}
 
 
 
[[Category:Template]]</noinclude>
 

Latest revision as of 17:38, 11 May 2020

(view - edit) Documentation

Template:Flag displays a flag icon.

Usage

{{flag|1}}

1

This is the only parameter in the template and is used for defining which country's flag will be shown.

  • All valid settings for flags are listed in the tables below
  • This parameter is case-insensitive.

Examples

You type You get
Full name {{flag|United Nations}} United Nations
Alternate name {{flag|world}} United Nations
Abbreviation {{flag|un}} United Nations
No parameter {{flag|}} Unknown
Invalid parameter {{flag|invalid}} Template:Flag/invalid

Valid settings

Note: United Kingdom flags

The individual flags of England England, Northern Ireland Northern Ireland, Scotland Scotland, and Wales Wales should take preference in all possible circumstances over the United Kingdom 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

O

Oman om Oman

Q

Qatar qa Qatar

X

Y

Yemen ye Yemen

Developer documentation

How this template works

  1. Template:Flag takes the input parameter and calls a sub-template at "Template:Flag/X". For example, {{flag|united nations}} will call Template:Flag/united nations.
  2. This sub-template then in turn calls Template:Flag icon, supplying it with a single parameter ({{Flag icon|X}}). For example, Template:Flag/united nations supplies Template:Flag icon with the single parameter United Nations
  3. Template:Flag icon calls for a flag image at "File:Flag of X.png", and applies formatting such as sizing and a 1px border. For example, if Template:Flag icon is given the parameter United Nations, it will supply File:Flag of United Nations.png (United Nations).

How to add 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. North America), we recommend a 23x15px flag which has a 2:3 ratio.

Upload

  • Your flag should be uploaded to File:Flag of ProperFlagName.png, where ProperFlagName is the full name of your flag with correct capitalization
  • Make sure you add your flag image to Category:Flag Images.

Update templates

  • Create a template at Template:Flag/lowercaseflagname, where lowercaseflagname is the full name of your flag in complete lowercase. This template should contain the code below:
{{Flag icon|'''ProperFlagName'''}}<noinclude>[[Category:Flag sub-templates]]</noinclude>
  • Create a template at Template:Flag/abbr, where abbr is the lowercase abbreviation of your flag. This template should be a simple redirect to the primary sub-template (Template:Flag/lowercaseflagname)
    • If your template has any alternate names or abbreviations, create them as simple redirects to the primary sub-template as well
  • Add your flag to the correct table in the documentation template.