Difference between revisions of "Template:Flag/doc"

From comp.tf
Jump to navigation Jump to search
m
 
(48 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''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]].
+
'''Template:Flag''' displays a flag icon.
 
== Usage ==
 
== Usage ==
<code><nowiki>{{flag|</nowiki>'''<nowiki>name</nowiki>'''<nowiki>}}</nowiki></code>
+
<code><nowiki>{{flag|</nowiki>'''<nowiki>1</nowiki>'''<nowiki>}}</nowiki></code>
=== name ===
+
=== 1 ===
This is the only parameter in the template and is used for defining which country's information should be used.
+
This is the only parameter in the template and is used for defining which country's flag will be shown.
*The data entered here will provide the icon with its image and caption/tool tip text.
+
* All valid settings for flags are listed in the tables below
*Appropriate settings for this parameter are listed in the table below.
+
* This parameter is case-insensitive.
*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, {{flag}}. This is used to keep alignment proper in other templates or to indicate an unknown country.
 
 
== Examples ==
 
== Examples ==
{| class="wikitable" style="text-align: center; cell-padding: em;"
+
{| class="wikitable" style="text-align: center;"
  ! style="color: white; background-color: #1c1c1c" colspan=3 | You type
+
  | style="background-color:#ecfcf4;border-top:hidden;border-left:hidden" |
  ! style="color: white; background-color: #1c1c1c" colspan=3 | You get
+
! You type
 +
  ! You get
 
|-
 
|-
  | style="border-right:hidden" |
+
  ! style="font-weight:normal" | ''Full name''
  | <code><nowiki>{{flag|antarctica}}</nowiki></code>
+
  | <code><nowiki>{{flag|United Nations}}</nowiki></code>
| style="border-left:hidden" |
+
  | {{flag|United Nations}}
| style="border-right:hidden" |
 
  | {{flag|antarctica}}
 
| style="border-left:hidden" |
 
 
|-
 
|-
  | style="border-right:hidden" |
+
  ! style="font-weight:normal" | ''Alternate name''
  | <code><nowiki>{{flag|aq}}</nowiki></code>
+
  | <code><nowiki>{{flag|world}}</nowiki></code>
| style="border-left:hidden" |
+
  | {{flag|world}}
| style="border-right:hidden" |
 
  | {{flag|aq}}
 
| style="border-left:hidden" |
 
 
|-
 
|-
  | style="border-right:hidden" |
+
  ! style="font-weight:normal" | ''Abbreviation''
 +
| <code><nowiki>{{flag|un}}</nowiki></code>
 +
| {{flag|un}}
 +
|-
 +
! style="font-weight:normal" | ''No parameter''
 +
| <code><nowiki>{{flag|}}</nowiki></code>
 +
| {{flag|}}
 +
|-
 +
! style="font-weight:normal" | ''Invalid parameter''
 
  | <code><nowiki>{{flag|invalid}}</nowiki></code>
 
  | <code><nowiki>{{flag|invalid}}</nowiki></code>
| style="border-left:hidden" |
 
| style="border-right:hidden" |
 
 
  | {{flag|invalid}}
 
  | {{flag|invalid}}
| style="border-left:hidden" |
 
 
|}
 
|}
 
== Valid settings ==
 
== 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 [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements here].
+
=== Note: United Kingdom flags ===
{{box|start|padding=4em}}
+
The individual flags of {{flag|uken}} England, {{flag|ukni}} Northern Ireland, {{flag|uksc}} Scotland, and {{flag|ukwa}} Wales should take preference in '''all possible circumstances''' over the {{flag|uk}} United Kingdom flag.
=== Alternate names ===
 
These names are additional to those listed in the tables.
 
*{{flag|bs}} The Bahamas: <code>bahamas</code>
 
*{{flag|cv}} Cape Verde: <code>cabo verde</code>
 
*{{flag|tl}} East Timor: <code>timor-leste</code>
 
*{{flag|ga}} Gambia: <code>the gambia</code>
 
*{{flag|ci}} Ivory Coast: <code>cote d'ivoire</code>
 
*{{flag|mo}} Macau: <code>macao</code>
 
*{{flag|aunz}} Oceania: <code>australasia</code>
 
*{{flag|pn}} Pitcairn: <code>pitcairn islands</code>
 
*{{flag|un}} United Nations: <code>global</code>, <code>international</code>
 
*{{flag|us}} United States: <code>united states of america</code>
 
{{box|break|padding=4em}}
 
=== Alternate abbreviations ===
 
These abbreviations are additional to those listed in the tables.
 
*{{flag|en}} England: <code>en</code>
 
*{{flag|usuk}} English Language: <code>ukus</code>
 
*{{flag|ae}} United Arab Emirates: <code>uae</code>
 
*{{flag|uk}} United Kingdom: <code>gb</code>
 
*{{flag|us}} United States: <code>usa</code>
 
*{{flag|wa}} Wales: <code>wa</code>
 
{{box|break}}
 
<div style="display:inline-block; width:500px;">
 
=== {{flag|uken}} {{flag|ukni}} {{flag|uksc}} {{flag|ukwa}} <small>vs.</small> {{flag|uk}} ===
 
The individual flags of '''{{flag|uken}} England''', '''{{flag|ukni}} Northern Ireland''', '''{{flag|uksc}} Scotland''', and '''{{flag|ukwa}} Wales''' should take preference in all possible circumstances over the '''{{flag|uk}} United Kingdom''' flag.
 
</div>
 
{{box|end}}
 
 
{| 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#Miscellaneous | Misc]] · [[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}}
 +
=== Miscellaneous ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|asean}}
 +
| style="width: 44px;" | [[Template:Flag/asean|<code>asean</code>]]
 +
| style="width: 160px;" | [[Template:Flag/asean|ASEAN]]
 +
|-
 +
| rowspan=2 | {{flag|ukus}}
 +
| [[Template:Flag/ukus|<code>ukus</code>]]
 +
| rowspan=2 | [[Template:Flag/english language|English Language]]
 +
|-
 +
| [[Template:Flag/usuk|<code>usuk</code>]]
 +
|-
 +
| rowspan=2 | {{flag|eu}}
 +
| rowspan=2 | [[Template:Flag/eu|<code>eu</code>]]
 +
| [[Template:Flag/europe|Europe]]
 +
|-
 +
| [[Template:Flag/european union|European Union]]
 +
|-
 +
| {{flag|nam}}
 +
| [[Template:Flag/nam|<code>nam</code>]]
 +
| [[Template:Flag/north america|North America]]
 +
|-
 +
| rowspan=4 | {{flag|aunz}}
 +
| rowspan=3 | [[Template:Flag/aunz|<code>aunz</code>]]
 +
| [[Template:Flag/australasia|Australasia]]
 +
|-
 +
| [[Template:Flag/oceania|Oceania]]
 +
|-
 +
| [[Template:Flag/australia/new zealand|Australia/New Zealand]]
 +
|-
 +
| [[Template:Flag/nzau|<code>nzau</code>]]
 +
| [[Template:Flag/new zealand/australia|New Zealand/Australia]]
 +
|-
 +
| {{flag|sam}}
 +
| [[Template:Flag/sam|<code>sam</code>]]
 +
| [[Template:Flag/south america|South America]]
 +
|-
 +
| rowspan=4 | {{flag|un}}
 +
| rowspan=4 | [[Template:Flag/un|<code>un</code>]]
 +
| [[Template:Flag/united nations|United Nations]]
 +
|-
 +
| [[Template:Flag/global|Global]]
 +
|-
 +
| [[Template:Flag/international|International]]
 +
|-
 +
| [[Template:Flag/world|World]]
 +
|-
 +
| {{flag|}}
 +
| [[Template:Flag/|<code></code>]]
 +
| [[Template:Flag/unknown|Unknown]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
 
 +
=== A ===
 +
{| class="wikitable" style="text-align: center;"
 +
| style="width: 29px;" | {{flag|af}}
 +
| style="width: 44px;" | [[Template:Flag/af|<code>af</code>]]
 +
| style="width: 160px" | [[Template:Flag/afghanistan|Afghanistan]]
 +
|-
 +
| {{flag|al}}
 +
| [[Template:Flag/al|<code>al</code>]]
 +
| [[Template:Flag/albania|Albania]]
 +
|-
 +
| {{flag|dz}}
 +
| [[Template:Flag/dz|<code>dz</code>]]
 +
| [[Template:Flag/algeria|Algeria]]
 +
|-
 +
| {{flag|ad}}
 +
| [[Template:Flag/ad|<code>ad</code>]]
 +
| [[Template:Flag/andorra|Andorra]]
 +
|-
 +
| {{flag|ao}}
 +
| [[Template:Flag/ao|<code>ao</code>]]
 +
| [[Template:Flag/angola|Angola]]
 +
|-
 +
| {{flag|ag}}
 +
| [[Template:Flag/ag|<code>ag</code>]]
 +
| [[Template:Flag/antigua and barbuda|Antigua and Barbuda]]
 +
|-
 +
| {{flag|ar}}
 +
| [[Template:Flag/ar|<code>ar</code>]]
 +
| [[Template:Flag/argentina|Argentina]]
 +
|-
 +
| {{flag|am}}
 +
| [[Template:Flag/am|<code>am</code>]]
 +
| [[Template:Flag/armenia|Armenia]]
 +
|-
 +
| {{flag|au}}
 +
| [[Template:Flag/|<code>au</code>]]
 +
| [[Template:Flag/australia|Australia]]
 +
|-
 +
| {{flag|at}}
 +
| [[Template:Flag/at|<code>at</code>]]
 +
| [[Template:Flag/austria|Austria]]
 +
|-
 +
| {{flag|az}}
 +
| [[Template:Flag/az|<code>az</code>]]
 +
| [[Template:Flag/azerbaijan|Azerbaijan]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
 
 +
=== B ===
 +
{| class="wikitable" style="text-align: center;"
 +
| rowspan=2 style="width: 29px;" | {{flag|bs}}
 +
| rowspan=2 style="width: 44px;" | [[Template:Flag/bs|<code>bs</code>]]
 +
| style="width: 160px;" | [[Template:Flag/bahamas|Bahamas]]
 +
|-
 +
| [[Template:Flag/the bahamas|The Bahamas]]
 +
|-
 +
| {{flag|bh}}
 +
| [[Template:Flag/bh|<code>bh</code>]]
 +
| [[Template:Flag/bahrain|Bahrain]]
 +
|-
 +
| {{flag|bd}}
 +
| [[Template:Flag/bd|<code>bd</code>]]
 +
| [[Template:Flag/bangladesh|Bangladesh]]
 +
|-
 +
| {{flag|bb}}
 +
| [[Template:Flag/bb|<code>bb</code>]]
 +
| [[Template:Flag/barbados|Barbados]]
 +
|-
 +
| {{flag|by}}
 +
| [[Template:Flag/by|<code>by</code>]]
 +
| [[Template:Flag/belarus|Belarus]]
 +
|-
 +
| {{flag|be}}
 +
| [[Template:Flag/be|<code>be</code>]]
 +
| [[Template:Flag/belgium|Belgium]]
 +
|-
 +
| {{flag|bz}}
 +
| [[Template:Flag/bz|<code>bz</code>]]
 +
| [[Template:Flag/belize|Belize]]
 +
|-
 +
| {{flag|bj}}
 +
| [[Template:Flag/bj|<code>bj</code>]]
 +
| [[Template:Flag/benin|Benin]]
 +
|-
 +
| {{flag|bt}}
 +
| [[Template:Flag/bt|<code>bt</code>]]
 +
| [[Template:Flag/bhutan|Bhutan]]
 +
|-
 +
| {{flag|bo}}
 +
| [[Template:Flag/bo|<code>bo</code>]]
 +
| [[Template:Flag/bolivia|Bolivia]]
 +
|-
 +
| {{flag|ba}}
 +
| [[Template:Flag/ba|<code>ba</code>]]
 +
| [[Template:Flag/bosnia and herzegovina|Bosnia and Herzegovina]]
 +
|-
 +
| {{flag|bw}}
 +
| [[Template:Flag/bw|<code>bw</code>]]
 +
| [[Template:Flag/botswana|Botswana]]
 +
|-
 +
| {{flag|br}}
 +
| [[Template:Flag/br|<code>br</code>]]
 +
| [[Template:Flag/brazil|Brazil]]
 +
|-
 +
| {{flag|bn}}
 +
| [[Template:Flag/bn|<code>bn</code>]]
 +
| [[Template:Flag/brunei|Brunei]]
 +
|-
 +
| {{flag|bg}}
 +
| [[Template:Flag/bg|<code>bg</code>]]
 +
| [[Template:Flag/bulgaria|Bulgaria]]
 +
|-
 +
| {{flag|bf}}
 +
| [[Template:Flag/bf|<code>bf</code>]]
 +
| [[Template:Flag/burkina faso|Burkina Faso]]
 +
|-
 +
| {{flag|bi}}
 +
| [[Template:Flag/bi|<code>bi</code>]]
 +
| [[Template:Flag/burundi|Burundi]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
 
 +
=== C ===
 +
{| class="wikitable" style="text-align: center;"
 +
| style="width: 29px;" | {{flag|kh}}
 +
| style="width: 44px;" | [[Template:Flag/kh|<code>kh</code>]]
 +
| style="width: 160px;" | [[Template:Flag/cambodia|Cambodia]]
 +
|-
 +
| {{flag|cm}}
 +
| [[Template:Flag/cm|<code>cm</code>]]
 +
| [[Template:Flag/cameroon|Cameroon]]
 +
|-
 +
| {{flag|ca}}
 +
| [[Template:Flag/ca|<code>ca</code>]]
 +
| [[Template:Flag/canada|Canada]]
 +
|-
 +
| rowspan=2 | {{flag|cv}}
 +
| rowspan=2 | [[Template:Flag/cv|<code>cv</code>]]
 +
| [[Template:Flag/cape verde|Cape Verde]]
 +
|-
 +
| [[Template:Flag/cabo verde|Cabo Verde]]
 +
|-
 +
| {{flag|cf}}
 +
| [[Template:Flag/cf|<code>cf</code>]]
 +
| [[Template:Flag/central african republic|Central African<br>Republic]]
 +
|-
 +
| {{flag|td}}
 +
| [[Template:Flag/td|<code>td</code>]]
 +
| [[Template:Flag/chad|Chad]]
 +
|-
 +
| {{flag|cl}}
 +
| [[Template:Flag/cl|<code>cl</code>]]
 +
| [[Template:Flag/chile|Chile]]
 +
|-
 +
| {{flag|cn}}
 +
| [[Template:Flag/cn|<code>cn</code>]]
 +
| [[Template:Flag/china|China]]
 +
|-
 +
| {{flag|co}}
 +
| [[Template:Flag/co|<code>co</code>]]
 +
| [[Template:Flag/colombia|Colombia]]
 +
|-
 +
| {{flag|km}}
 +
| [[Template:Flag/km|<code>km</code>]]
 +
| [[Template:Flag/comoros|Comoros]]
 +
|-
 +
| {{flag|cr}}
 +
| [[Template:Flag/cr|<code>cr</code>]]
 +
| [[Template:Flag/costa rica|Costa Rica]]
 +
|-
 +
| {{flag|hr}}
 +
| [[Template:Flag/hr|<code>hr</code>]]
 +
| [[Template:Flag/croatia|Croatia]]
 +
|-
 +
| {{flag|cu}}
 +
| [[Template:Flag/cu|<code>cu</code>]]
 +
| [[Template:Flag/cuba|Cuba]]
 +
|-
 +
| {{flag|cy}}
 +
| [[Template:Flag/cy|<code>cy</code>]]
 +
| [[Template:Flag/cyprus|Cyprus]]
 +
|-
 +
| rowspan=2 | {{flag|cz}}
 +
| rowspan=2 | [[Template:Flag/cz|<code>cz</code>]]
 +
| [[Template:Flag/czech republic|Czech Republic]]
 +
|-
 +
| [[Template:Flag/czechia|Czechia]]
 +
|-
 +
| rowspan=2 | {{flag|ci}}
 +
| rowspan=2 | [[Template:Flag/ci|<code>ci</code>]]
 +
| [[Template:Flag/côte d'ivoire|Côte d'Ivoire]]
 +
|-
 +
| [[Template:Flag/ivory coast|Ivory Coast]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
 
 +
=== D ===
 +
{| class="wikitable" style="text-align: center;"
 +
| rowspan=2 style="width: 29px;" | {{flag|cd}}
 +
| rowspan=2 style="width: 44px;" | [[Template:Flag/cd|<code>cd</code>]]
 +
| style="width: 160px;" | [[Template:Flag/democratic republic of the congo|Democratic Republic<br>of the Congo]]
 +
|-
 +
| [[Template:Flag/zaire|Zaire]]
 +
|-
 +
| {{flag|dk}}
 +
| [[Template:Flag/dk|<code>dk</code>]]
 +
| [[Template:Flag/denmark|Denmark]]
 +
|-
 +
| {{flag|dj}}
 +
| [[Template:Flag/dj|<code>dj</code>]]
 +
| [[Template:Flag/djibouti|Djibouti]]
 +
|-
 +
| {{flag|dm}}
 +
| [[Template:Flag/dm|<code>dm</code>]]
 +
| [[Template:Flag/dominica|Dominica]]
 +
|-
 +
| {{flag|do}}
 +
| [[Template:Flag/do|<code>do</code>]]
 +
| [[Template:Flag/dominican republic|Dominican Republic]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== E ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| rowspan=2 style="width: 29px;" | {{flag|tl}}
 +
| rowspan=2 style="width: 44px;" | [[Template:Flag/tl|<code>tl</code>]]
 +
| style="width: 160px;" | [[Template:Flag/east timor|East Timor]]
 +
|-
 +
| [[Template:Flag/timor-leste|Timor-Leste]]
 +
|-
 +
| {{flag|ec}}
 +
| [[Template:Flag/ec|<code>ec</code>]]
 +
| [[Template:Flag/ecuador|Ecuador]]
 +
|-
 +
| {{flag|eg}}
 +
| [[Template:Flag/eg|<code>eg</code>]]
 +
| [[Template:Flag/egypt|Egypt]]
 +
|-
 +
| {{flag|sv}}
 +
| [[Template:Flag/sv|<code>sv</code>]]
 +
| [[Template:Flag/el salvador|El Salvador]]
 +
|-
 +
| rowspan=2 | {{flag|uken}}
 +
| [[Template:Flag/uken|<code>uken</code>]]
 +
| rowspan=2 | [[Template:Flag/england|England]]
 +
|-
 +
| [[Template:Flag/en|<code>en</code>]]
 +
|-
 +
| {{flag|gq}}
 +
| [[Template:Flag/gq|<code>gq</code>]]
 +
| [[Template:Flag/equatorial guinea|Equatorial Guinea]]
 +
|-
 +
| {{flag|er}}
 +
| [[Template:Flag/er|<code>er</code>]]
 +
| [[Template:Flag/eritrea|Eritrea]]
 +
|-
 +
| {{flag|ee}}
 +
| [[Template:Flag/ee|<code>ee</code>]]
 +
| [[Template:Flag/estonia|Estonia]]
 +
|-
 +
| rowspan=2 | {{flag|sz}}
 +
| rowspan=2 | [[Template:Flag/sz|<code>sz</code>]]
 +
| [[Template:Flag/eswatini|Eswatini]]
 +
|-
 +
| [[Template:Flag/swaziland|Swaziland]]
 +
|-
 +
| {{flag|et}}
 +
| [[Template:Flag/et|<code>et</code>]]
 +
| [[Template:Flag/ethiopia|Ethiopia]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
 
 +
=== F ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|fj}}
 +
| style="width: 44px;" | [[Template:Flag/fj|<code>fj</code>]]
 +
| style="width: 160px;" | [[Template:Flag/fiji|Fiji]]
 +
|-
 +
| {{flag|fi}}
 +
| [[Template:Flag/fi|<code>fi</code>]]
 +
| [[Template:Flag/finland|Finland]]
 +
|-
 +
| {{flag|fr}}
 +
| [[Template:Flag/fr|<code>fr</code>]]
 +
| [[Template:Flag/france|France]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== G ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|ga}}
 +
| style="width: 44px;" | [[Template:Flag/ga|<code>ga</code>]]
 +
| style="width: 160px;" | [[Template:Flag/gabon|Gabon]]
 +
|-
 +
| rowspan=2 | {{flag|gm}}
 +
| rowspan=2 | [[Template:Flag/gm|<code>gm</code>]]
 +
| [[Template:Flag/the gambia|The Gambia]]
 +
|-
 +
| [[Template:Flag/gambia|Gambia]]
 +
|-
 +
| {{flag|ge}}
 +
| [[Template:Flag/ge|<code>ge</code>]]
 +
| [[Template:Flag/georgia|Georgia]]
 +
|-
 +
| {{flag|de}}
 +
| [[Template:Flag/de|<code>de</code>]]
 +
| [[Template:Flag/germany|Germany]]
 +
|-
 +
| {{flag|gh}}
 +
| [[Template:Flag/gh|<code>gh</code>]]
 +
| [[Template:Flag/ghana|Ghana]]
 +
|-
 +
| {{flag|gr}}
 +
| [[Template:Flag/gr|<code>gr</code>]]
 +
| [[Template:Flag/greece|Greece]]
 +
|-
 +
| {{flag|gl}}
 +
| [[Template:Flag/gl|<code>gl</code>]]
 +
| [[Template:Flag/greenland|Greenland]]
 +
|-
 +
| {{flag|gd}}
 +
| [[Template:Flag/gd|<code>gd</code>]]
 +
| [[Template:Flag/grenada|Grenada]]
 +
|-
 +
| {{flag|gt}}
 +
| [[Template:Flag/gt|<code>gt</code>]]
 +
| [[Template:Flag/guatemala|Guatemala]]
 +
|-
 +
| {{flag|gn}}
 +
| [[Template:Flag/gn|<code>gn</code>]]
 +
| [[Template:Flag/guinea|Guinea]]
 +
|-
 +
| {{flag|gw}}
 +
| [[Template:Flag/gw|<code>gw</code>]]
 +
| [[Template:Flag/guinea-bissau|Guinea-Bissau]]
 +
|-
 +
| {{flag|gy}}
 +
| [[Template:Flag/gy|<code>gy</code>]]
 +
| [[Template:Flag/guyana|Guyana]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
 
 +
=== H ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|ht}}
 +
| style="width: 44px;" | [[Template:Flag/ht|<code>ht</code>]]
 +
| style="width: 160px;" | [[Template:Flag/haiti|Haiti]]
 +
|-
 +
| {{flag|hn}}
 +
| [[Template:Flag/hn|<code>hn</code>]]
 +
| [[Template:Flag/honduras|Honduras]]
 +
|-
 +
| {{flag|hk}}
 +
| [[Template:Flag/hk|<code>hk</code>]]
 +
| [[Template:Flag/hong kong|Hong Kong]]
 +
|-
 +
| {{flag|hu}}
 +
| [[Template:Flag/hu|<code>hu</code>]]
 +
| [[Template:Flag/hungary|Hungary]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== I ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|is}}
 +
| style="width: 44px;" | [[Template:Flag/is|<code>is</code>]]
 +
| style="width: 160px;" | [[Template:Flag/iceland|Iceland]]
 +
|-
 +
| {{flag|in}}
 +
| [[Template:Flag/in|<code>in</code>]]
 +
| [[Template:Flag/india|India]]
 +
|-
 +
| {{flag|id}}
 +
| [[Template:Flag/id|<code>id</code>]]
 +
| [[Template:Flag/indonesia|Indonesia]]
 +
|-
 +
| {{flag|ir}}
 +
| [[Template:Flag/ir|<code>ir</code>]]
 +
| [[Template:Flag/iran|Iran]]
 +
|-
 +
| {{flag|iq}}
 +
| [[Template:Flag/iq|<code>iq</code>]]
 +
| [[Template:Flag/iraq|Iraq]]
 +
|-
 +
| {{flag|ie}}
 +
| [[Template:Flag/ie|<code>ie</code>]]
 +
| [[Template:Flag/ireland|Ireland]]
 +
|-
 +
| {{flag|il}}
 +
| [[Template:Flag/il|<code>il</code>]]
 +
| [[Template:Flag/israel|Israel]]
 +
|-
 +
| {{flag|it}}
 +
| [[Template:Flag/it|<code>it</code>]]
 +
| [[Template:Flag/italy|Italy]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== J ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|jm}}
 +
| style="width: 44px;" | [[Template:Flag/jm|<code>jm</code>]]
 +
| style="width: 160px;" | [[Template:Flag/jamaica|Jamaica]]
 +
|-
 +
| {{flag|jp}}
 +
| [[Template:Flag/jp|<code>jp</code>]]
 +
| [[Template:Flag/japan|Japan]]
 +
|-
 +
| {{flag|jo}}
 +
| [[Template:Flag/jo|<code>jo</code>]]
 +
| [[Template:Flag/jordan|Jordan]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== K ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|kz}}
 +
| style="width: 44px;" | [[Template:Flag/kz|<code>kz</code>]]
 +
| style="width: 160px;" | [[Template:Flag/kazakhstan|Kazakhstan]]
 +
|-
 +
| {{flag|ke}}
 +
| [[Template:Flag/ke|<code>ke</code>]]
 +
| [[Template:Flag/kenya|Kenya]]
 +
|-
 +
| {{flag|ki}}
 +
| [[Template:Flag/ki|<code>ki</code>]]
 +
| [[Template:Flag/kiribati|Kiribati]]
 +
|-
 +
| {{flag|xk}}
 +
| [[Template:Flag/xk|<code>xk</code>]]
 +
| [[Template:Flag/kosovo|Kosovo]]
 +
|-
 +
| {{flag|kw}}
 +
| [[Template:Flag/kw|<code>kw</code>]]
 +
| [[Template:Flag/kuwait|Kuwait]]
 +
|-
 +
| {{flag|kg}}
 +
| [[Template:Flag/kg|<code>kg</code>]]
 +
| [[Template:Flag/kyrgyzstan|Kyrgyzstan]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== L ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|la}}
 +
| style="width: 44px;" | [[Template:Flag/la|<code>la</code>]]
 +
| style="width: 160px;" | [[Template:Flag/laos|Laos]]
 +
|-
 +
| {{flag|lv}}
 +
| [[Template:Flag/lv|<code>lv</code>]]
 +
| [[Template:Flag/latvia|Latvia]]
 +
|-
 +
| {{flag|lb}}
 +
| [[Template:Flag/lb|<code>lb</code>]]
 +
| [[Template:Flag/lebanon|Lebanon]]
 +
|-
 +
| {{flag|ls}}
 +
| [[Template:Flag/ls|<code>ls</code>]]
 +
| [[Template:Flag/lesotho|Lesotho]]
 +
|-
 +
| {{flag|lr}}
 +
| [[Template:Flag/lr|<code>lr</code>]]
 +
| [[Template:Flag/liberia|Liberia]]
 +
|-
 +
| {{flag|ly}}
 +
| [[Template:Flag/ly|<code>ly</code>]]
 +
| [[Template:Flag/libya|Libya]]
 +
|-
 +
| {{flag|li}}
 +
| [[Template:Flag/li|<code>li</code>]]
 +
| [[Template:Flag/liechtenstein|Liechtenstein]]
 +
|-
 +
| {{flag|lt}}
 +
| [[Template:Flag/lt|<code>lt</code>]]
 +
| [[Template:Flag/lithuania|Lithuania]]
 +
|-
 +
| {{flag|lu}}
 +
| [[Template:Flag/lu|<code>lu</code>]]
 +
| [[Template:Flag/luxembourg|Luxembourg]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== M ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| rowspan=2 | {{flag|mo}}
 +
| rowspan=2 | [[Template:Flag/mo|<code>mo</code>]]
 +
| [[Template:Flag/macao|Macao]]
 +
|-
 +
| [[Template:Flag/macao|Macau]]
 +
|-
 +
| style="width: 29px;" | {{flag|mg}}
 +
| style="width: 44px;" | [[Template:Flag/mg|<code>mg</code>]]
 +
| style="width: 160px;" | [[Template:Flag/madagascar|Madagascar]]
 +
|-
 +
| {{flag|mw}}
 +
| [[Template:Flag/mw|<code>mw</code>]]
 +
| [[Template:Flag/malawi|Malawi]]
 +
|-
 +
| {{flag|my}}
 +
| [[Template:Flag/my|<code>my</code>]]
 +
| [[Template:Flag/malaysia|Malaysia]]
 +
|-
 +
| {{flag|mv}}
 +
| [[Template:Flag/mv|<code>mv</code>]]
 +
| [[Template:Flag/maldives|Maldives]]
 +
|-
 +
| {{flag|ml}}
 +
| [[Template:Flag/ml|<code>ml</code>]]
 +
| [[Template:Flag/mali|Mali]]
 +
|-
 +
| {{flag|mt}}
 +
| [[Template:Flag/mt|<code>mt</code>]]
 +
| [[Template:Flag/malta|Malta]]
 +
|-
 +
| {{flag|mh}}
 +
| [[Template:Flag/mh|<code>mh</code>]]
 +
| [[Template:Flag/marshall islands|Marshall Islands]]
 +
|-
 +
| {{flag|mr}}
 +
| [[Template:Flag/mr|<code>mr</code>]]
 +
| [[Template:Flag/mauritania|Mauritania]]
 +
|-
 +
| {{flag|mu}}
 +
| [[Template:Flag/mu|<code>mu</code>]]
 +
| [[Template:Flag/mauritius|Mauritius]]
 +
|-
 +
| {{flag|mx}}
 +
| [[Template:Flag/mx|<code>mx</code>]]
 +
| [[Template:Flag/mexico|Mexico]]
 +
|-
 +
| {{flag|fm}}
 +
| [[Template:Flag/fm|<code>fm</code>]]
 +
| [[Template:Flag/micronesia|Micronesia]]
 +
|-
 +
| {{flag|md}}
 +
| [[Template:Flag/md|<code>md</code>]]
 +
| [[Template:Flag/moldova|Moldova]]
 +
|-
 +
| {{flag|mc}}
 +
| [[Template:Flag/mc|<code>mc</code>]]
 +
| [[Template:Flag/monaco|Monaco]]
 +
|-
 +
| {{flag|mn}}
 +
| [[Template:Flag/mn|<code>mn</code>]]
 +
| [[Template:Flag/mongolia|Mongolia]]
 +
|-
 +
| {{flag|me}}
 +
| [[Template:Flag/me|<code>me</code>]]
 +
| [[Template:Flag/montenegro|Montenegro]]
 +
|-
 +
| {{flag|ma}}
 +
| [[Template:Flag/ma|<code>ma</code>]]
 +
| [[Template:Flag/morocco|Morocco]]
 +
|-
 +
| {{flag|mz}}
 +
| [[Template:Flag/mz|<code>mz</code>]]
 +
| [[Template:Flag/mozambique|Mozambique]]
 +
|-
 +
| {{flag|mm}}
 +
| [[Template:Flag/mm|<code>mm</code>]]
 +
| [[Template:Flag/myanmar|Myanmar]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
 
 +
=== N ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|na}}
 +
| style="width: 44px;" | [[Template:Flag/na|<code>na</code>]]
 +
| style="width: 160px;" | [[Template:Flag/namibia|Namibia]]
 +
|-
 +
| {{flag|nr}}
 +
| [[Template:Flag/nr|<code>nr</code>]]
 +
| [[Template:Flag/nauru|Nauru]]
 +
|-
 +
| {{flag|np}}
 +
| [[Template:Flag/np|<code>np</code>]]
 +
| [[Template:Flag/nepal|Nepal]]
 +
|-
 +
| rowspan=2 | {{flag|nl}}
 +
| rowspan=2 | [[Template:Flag/nl|<code>nl</code>]]
 +
| [[Template:Flag/netherlands|Netherlands]]
 +
|-
 +
| [[Template:Flag/holland|Holland]]
 +
|-
 +
| {{flag|nz}}
 +
| [[Template:Flag/nz|<code>nz</code>]]
 +
| [[Template:Flag/new zealand|New Zealand]]
 +
|-
 +
| {{flag|ni}}
 +
| [[Template:Flag/ni|<code>ni</code>]]
 +
| [[Template:Flag/nicaragua|Nicaragua]]
 +
|-
 +
| {{flag|ne}}
 +
| [[Template:Flag/ne|<code>ne</code>]]
 +
| [[Template:Flag/niger|Niger]]
 +
|-
 +
| {{flag|ng}}
 +
| [[Template:Flag/ng|<code>ng</code>]]
 +
| [[Template:Flag/nigeria|Nigeria]]
 +
|-
 +
| {{flag|kp}}
 +
| [[Template:Flag/kp|<code>kp</code>]]
 +
| [[Template:Flag/north korea|North Korea]]
 +
|-
 +
| rowspan=2 | {{flag|mk}}
 +
| rowspan=2 | [[Template:Flag/mk|<code>mk</code>]]
 +
| [[Template:Flag/macedonia|Macedonia]]
 +
|-
 +
| [[Template:Flag/north macedonia|North Macedonia]]
 +
|-
 +
| {{flag|ukni}}
 +
| [[Template:Flag/ukni|<code>ukni</code>]]
 +
| [[Template:Flag/northern ireland|Northern Ireland]]
 +
|-
 +
| {{flag|no}}
 +
| [[Template:Flag/no|<code>no</code>]]
 +
| [[Template:Flag/norway|Norway]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
 
 +
=== O ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|om}}
 +
| style="width: 44px;" | [[Template:Flag/om|<code>om</code>]]
 +
| style="width: 160px;" | [[Template:Flag/oman|Oman]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== P ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|pk}}
 +
| style="width: 44px;" | [[Template:Flag/pk|<code>pk</code>]]
 +
| style="width: 160px;" | [[Template:Flag/pakistan|Pakistan]]
 +
|-
 +
| {{flag|pw}}
 +
| [[Template:Flag/pw|<code>pw</code>]]
 +
| [[Template:Flag/palau|Palau]]
 +
|-
 +
| {{flag|ps}}
 +
| [[Template:Flag/ps|<code>ps</code>]]
 +
| [[Template:Flag/palestine|Palestine]]
 +
|-
 +
| {{flag|pa}}
 +
| [[Template:Flag/pa|<code>pa</code>]]
 +
| [[Template:Flag/panama|Panama]]
 +
|-
 +
| {{flag|pg}}
 +
| [[Template:Flag/pg|<code>pg</code>]]
 +
| [[Template:Flag/papua new guinea|Papua New Guinea]]
 +
|-
 +
| {{flag|py}}
 +
| [[Template:Flag/py|<code>py</code>]]
 +
| [[Template:Flag/paraguay|Paraguay]]
 +
|-
 +
| {{flag|pe}}
 +
| [[Template:Flag/pe|<code>pe</code>]]
 +
| [[Template:Flag/peru|Peru]]
 +
|-
 +
| {{flag|ph}}
 +
| [[Template:Flag/ph|<code>ph</code>]]
 +
| [[Template:Flag/phillipines|Philippines]]
 +
|-
 +
| {{flag|pl}}
 +
| [[Template:Flag/pl|<code>pl</code>]]
 +
| [[Template:Flag/poland|Poland]]
 +
|-
 +
| {{flag|pt}}
 +
| [[Template:Flag/pt|<code>pt</code>]]
 +
| [[Template:Flag/portugal|Portugal]]
 +
|-
 +
| {{flag|pr}}
 +
| [[Template:Flag/pr|<code>pr</code>]]
 +
| [[Template:Flag/puerto rico|Puerto Rico]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== Q ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|qa}}
 +
| style="width: 44px;" | [[Template:Flag/qa|<code>qa</code>]]
 +
| style="width: 160px;" | [[Template:Flag/qatar|Qatar]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== R ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| rowspan=2 style="width: 29px;" | {{flag|cg}}
 +
| rowspan=2 style="width: 44px;" | [[Template:Flag/cg|<code>cg</code>]]
 +
| style="width: 160px;" | [[Template:Flag/republic of the congo|Republic of the Congo]]
 +
|-
 +
| [[Template:Flag/congo|Congo]]
 +
|-
 +
| {{flag|ro}}
 +
| [[Template:Flag/ro|<code>ro</code>]]
 +
| [[Template:Flag/romania|Romania]]
 +
|-
 +
| {{flag|ru}}
 +
| [[Template:Flag/ru|<code>ru</code>]]
 +
| [[Template:Flag/russia|Russia]]
 +
|-
 +
| {{flag|rw}}
 +
| [[Template:Flag/rw|<code>rw</code>]]
 +
| [[Template:Flag/rwanda|Rwanda]]
 
|}
 
|}
{| class=wikitable style="align: center;"
+
{{Box|break|padding=1em}}
|+ Key
+
 
  | style="width: 15px;" |
+
=== S ===
  | United Nations recognised country or sovereign state
+
{| class="wikitable" style="text-align: center;"
 +
|-
 +
  | style="width: 29px;" | {{flag|kn}}
 +
  | style="width: 44px;" | [[Template:Flag/kn|<code>kn</code>]]
 +
| style="width: 160px;" | [[Template:Flag/saint kitts and nevis|Saint Kitts and Nevis]]
 +
|-
 +
| {{flag|lc}}
 +
| [[Template:Flag/lc|<code>lc</code>]]
 +
| [[Template:Flag/saint lucia|Saint Lucia]]
 +
|-
 +
| {{flag|vc}}
 +
| [[Template:Flag/vc|<code>vc</code>]]
 +
| [[Template:Flag/saint vincent and the grenadines|Saint Vincent<br>and the Grenadines]]
 +
|-
 +
| {{flag|ws}}
 +
| [[Template:Flag/ws|<code>ws</code>]]
 +
| [[Template:Flag/samoa|Samoa]]
 +
|-
 +
| {{flag|sm}}
 +
| [[Template:Flag/sm|<code>sm</code>]]
 +
| [[Template:Flag/san marino|San Marino]]
 +
|-
 +
| {{flag|st}}
 +
| [[Template:Flag/st|<code>st</code>]]
 +
| [[Template:Flag/sao tome and principe|Sao Tome and Principe]]
 +
|-
 +
| {{flag|sa}}
 +
| [[Template:Flag/sa|<code>sa</code>]]
 +
| [[Template:Flag/saudi arabia|Saudi Arabia]]
 +
|-
 +
| {{flag|uksc}}
 +
| [[Template:Flag/uksc|<code>uksc</code>]]
 +
| [[Template:Flag/scotland|Scotland]]
 +
|-
 +
| {{flag|sn}}
 +
| [[Template:Flag/sn|<code>sn</code>]]
 +
| [[Template:Flag/senegal|Senegal]]
 +
|-
 +
| {{flag|rs}}
 +
| [[Template:Flag/rs|<code>rs</code>]]
 +
| [[Template:Flag/serbia|Serbia]]
 +
|-
 +
| {{flag|sc}}
 +
| [[Template:Flag/sc|<code>sc</code>]]
 +
| [[Template:Flag/seychelles|Seychelles]]
 +
|-
 +
| {{flag|sl}}
 +
| [[Template:Flag/sl|<code>sl</code>]]
 +
| [[Template:Flag/sierra leone|Sierra Leone]]
 +
|-
 +
| {{flag|sg}}
 +
| [[Template:Flag/sg|<code>sg</code>]]
 +
| [[Template:Flag/singapore|Singapore]]
 +
|-
 +
| {{flag|sk}}
 +
| [[Template:Flag/sk|<code>sk</code>]]
 +
| [[Template:Flag/slovakia|Slovakia]]
 +
|-
 +
| {{flag|si}}
 +
| [[Template:Flag/si|<code>si</code>]]
 +
| [[Template:Flag/slovenia|Slovenia]]
 +
|-
 +
| {{flag|sb}}
 +
| [[Template:Flag/sb|<code>sb</code>]]
 +
| [[Template:Flag/solomon islands|Soloman Islands]]
 +
|-
 +
| {{flag|so}}
 +
| [[Template:Flag/so|<code>so</code>]]
 +
| [[Template:Flag/somalia|Somalia]]
 +
|-
 +
| rowspan=2 | {{flag|za}}
 +
| [[Template:Flag/za|<code>za</code>]]
 +
| rowspan=2 | [[Template:Flag/south africa|South Africa]]
 +
|-
 +
| [[Template:Flag/rsa|<code>rsa</code>]]
 +
|-
 +
| {{flag|kr}}
 +
| [[Template:Flag/kr|<code>kr</code>]]
 +
| [[Template:Flag/south korea|South Korea]]
 +
|-
 +
| {{flag|ss}}
 +
| [[Template:Flag/ss|<code>ss</code>]]
 +
| [[Template:Flag/south sudan|South Sudan]]
 +
|-
 +
| {{flag|es}}
 +
| [[Template:Flag/es|<code>es</code>]]
 +
| [[Template:Flag/spain|Spain]]
 +
|-
 +
| {{flag|lk}}
 +
| [[Template:Flag/lk|<code>lk</code>]]
 +
| [[Template:Flag/sri lanka|Sri Lanka]]
 
|-
 
|-
  | style="background-color: #ffeae6; width: 15px;" |
+
  | {{flag|sd}}
  | Unrecognised country or sovereign state
+
| [[Template:Flag/sd|<code>sd</code>]]
 +
  | [[Template:Flag/sudan|Sudan]]
 
|-
 
|-
  | style="background-color: #e6eeff; width: 15px;" |
+
  | {{flag|sr}}
  | Geographical region or collectivity of countries or sovereign states
+
| [[Template:Flag/sr|<code>sr</code>]]
 +
| [[Template:Flag/suriname|Suriname]]
 +
|-
 +
| {{flag|se}}
 +
| [[Template:Flag/se|<code>se</code>]]
 +
| [[Template:Flag/sweden|Sweden]]
 +
|-
 +
  | {{flag|ch}}
 +
| [[Template:Flag/ch|<code>ch</code>]]
 +
| [[Template:Flag/switzerland|Switzerland]]
 +
|-
 +
| {{flag|sy}}
 +
| [[Template:Flag/sy|<code>sy</code>]]
 +
| [[Template:Flag/syria|Syria]]
 
|}
 
|}
{{Box|start|padding=1em}}
+
{{Box|break|padding=1em}}
{|
+
 
{{Template:Flag/doc/a}}
+
=== T ===
{{Template:Flag/doc/d}}
+
{| class="wikitable" style="text-align: center;"
{{Template:Flag/doc/g}}
+
|-
{{Template:Flag/doc/j}}
+
| style="width: 29px;" | {{flag|tw}}
{{Template:Flag/doc/m}}
+
| style="width: 44px;" | [[Template:Flag/tw|<code>tw</code>]]
{{Template:Flag/doc/p}}
+
| style="width: 160px;" | [[Template:Flag/taiwan|Taiwan]]
{{Template:Flag/doc/s}}
+
|-
{{Template:Flag/doc/v}}
+
| {{flag|tj}}
{{Template:Flag/doc/y}}
+
| [[Template:Flag/tj|<code>tj</code>]]
 +
| [[Template:Flag/tajikistan|Tajikistan]]
 +
|-
 +
| {{flag|tz}}
 +
| [[Template:Flag/tz|<code>tz</code>]]
 +
| [[Template:Flag/tanzania|Tanzania]]
 +
|-
 +
| {{flag|th}}
 +
| [[Template:Flag/th|<code>th</code>]]
 +
| [[Template:Flag/thailand|Thailand]]
 +
|-
 +
| {{flag|tg}}
 +
| [[Template:Flag/tg|<code>tg</code>]]
 +
| [[Template:Flag/togo|Togo]]
 +
|-
 +
| {{flag|to}}
 +
| [[Template:Flag/to|<code>to</code>]]
 +
| [[Template:Flag/tonga|Tonga]]
 +
|-
 +
| {{flag|tt}}
 +
| [[Template:Flag/tt|<code>tt</code>]]
 +
| [[Template:Flag/trinidad and tobago|Trinidad and Tobago]]
 +
|-
 +
| {{flag|tn}}
 +
| [[Template:Flag/tn|<code>tn</code>]]
 +
| [[Template:Flag/tunisia|Tunisia]]
 +
|-
 +
| {{flag|tr}}
 +
| [[Template:Flag/tr|<code>tr</code>]]
 +
| [[Template:Flag/turkey|Turkey]]
 +
|-
 +
| {{flag|tm}}
 +
| [[Template:Flag/tm|<code>tm</code>]]
 +
| [[Template:Flag/turkmenistan|Turkmenistan]]
 +
|-
 +
| {{flag|tv}}
 +
| [[Template:Flag/tv|<code>tv</code>]]
 +
| [[Template:Flag/tuvalu|Tuvalu]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== U ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|ug}}
 +
| style="width: 44px;" | [[Template:Flag/ug|<code>ug</code>]]
 +
| style="width: 160px;" | [[Template:Flag/uganda|Uganda]]
 +
|-
 +
| {{flag|ua}}
 +
| [[Template:Flag/ua|<code>ua</code>]]
 +
| [[Template:Flag/ukraine|Ukraine]]
 +
|-
 +
| rowspan=2 | {{flag|ae}}
 +
| [[Template:Flag/ae|<code>ae</code>]]
 +
| rowspan=2 | [[Template:Flag/united arab emirates|United Arab Emirates]]
 +
|-
 +
| [[Template:Flag/uae|<code>uae</code>]]
 +
|-
 +
| rowspan=3 | {{flag|uk}}
 +
| [[Template:Flag/uk|<code>uk</code>]]
 +
| [[Template:Flag/united kingdom|United Kingdom]]
 +
|-
 +
| rowspan=2 | [[Template:Flag/gb|<code>gb</code>]]
 +
| [[Template:Flag/britain|Britain]]
 +
|-
 +
| [[Template:Flag/great britain|Great Britain]]
 +
|-
 +
| rowspan=2 | {{flag|us}}
 +
| [[Template:Flag/us|<code>us</code>]]
 +
| [[Template:Flag/united states|United States]]
 +
|-
 +
| [[Template:Flag/usa|<code>usa</code>]]
 +
| [[Template:Flag/united states of america|United States of America]]
 +
|-
 +
| {{flag|uy}}
 +
| [[Template:Flag/uy|<code>uy</code>]]
 +
| [[Template:Flag/uruguay|Uruguay]]
 +
|-
 +
| {{flag|uz}}
 +
| [[Template:Flag/uz|<code>uz</code>]]
 +
| [[Template:Flag/uzbekistan|Uzbekistan]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
 
 +
=== V ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| style="width: 29px;" | {{flag|vu}}
 +
| style="width: 44px;" | [[Template:Flag/vu|<code>vu</code>]]
 +
| style="width: 160px;" | [[Template:Flag/vanuatu|Vanuatu]]
 +
|-
 +
| {{flag|va}}
 +
| [[Template:Flag/va|<code>va</code>]]
 +
| [[Template:Flag/vatican city|Vatican City]]
 +
|-
 +
| {{flag|ve}}
 +
| [[Template:Flag/ve|<code>ve</code>]]
 +
| [[Template:Flag/venezuela|Venezuela]]
 +
|-
 +
| {{flag|vn}}
 +
| [[Template:Flag/vn|<code>vn</code>]]
 +
| [[Template:Flag/vietnam|Vietnam]]
 +
|}
 +
{{Box|break|padding=1em}}
 +
=== W ===
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
| rowspan=2 style="width: 29px;" | {{flag|ukwa}}
 +
| style="width: 44px;" | [[Template:Flag/wa|<code>wa</code>]]
 +
| rowspan=2 style="width: 160px;" | [[Template:Flag/wales|Wales]]
 +
|-
 +
| [[Template:Flag/ukwa|<code>ukwa</code>]]
 
|}
 
|}
 
{{Box|break|padding=1em}}
 
{{Box|break|padding=1em}}
{|
+
 
{{Template:Flag/doc/b}}
+
=== X ===
{{Template:Flag/doc/e}}
+
<div style="width:273px"></div><!-- Div to keep tables aligned. Delete this if adding a table -->
{{Template:Flag/doc/h}}
+
{{Box|break|padding=1em}}
{{Template:Flag/doc/k}}
+
 
{{Template:Flag/doc/n}}
+
=== Y ===
{{Template:Flag/doc/q}}
+
{| class="wikitable" style="text-align: center;"
{{Template:Flag/doc/t}}
+
|-
{{Template:Flag/doc/w}}
+
| style="width: 29px;" | {{flag|ye}}
{{Template:Flag/doc/z}}
+
| style="width: 44px;" | [[Template:Flag/ye|<code>ye</code>]]
 +
| style="width: 160px;" | [[Template:Flag/yemen|Yemen]]
 
|}
 
|}
 
{{Box|break|padding=1em}}
 
{{Box|break|padding=1em}}
{|
+
=== Z ===
{{Template:Flag/doc/c}}
+
{| class="wikitable" style="text-align: center;"
{{Template:Flag/doc/f}}
+
|-
{{Template:Flag/doc/i}}
+
| style="width: 29px;" | {{flag|zm}}
{{Template:Flag/doc/l}}
+
| style="width: 44px;" | [[Template:Flag/zm|<code>zm</code>]]
{{Template:Flag/doc/o}}
+
| style="width: 160px;" | [[Template:Flag/zambia|Zambia]]
{{Template:Flag/doc/r}}
+
|-
{{Template:Flag/doc/u}}
+
| {{flag|zw}}
{{Template:Flag/doc/x}}
+
| [[Template:Flag/zw|<code>zw</code>]]
 +
| [[Template:Flag/zimbabwe|Zimbabwe]]
 
|}
 
|}
 
{{Box|end}}
 
{{Box|end}}
<noinclude>[[Category:Flag Documentation Templates]]</noinclude>
+
 
 +
== Developer documentation ==
 +
=== How this template works ===
 +
# '''Template:Flag''' takes the input parameter and calls a sub-template at "Template:Flag/X". For example, <code><nowiki>{{flag|united nations}}</nowiki></code> will call [[Template:Flag/united nations]].
 +
# This sub-template then in turn calls [[Template:Flag icon]], supplying it with a single parameter (<code><nowiki>{{Flag icon|X}}</nowiki></code>). For example, Template:Flag/united nations supplies Template:Flag icon with the single parameter <code>United Nations</code>
 +
# 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 <code>United Nations</code>, it will supply [[:File:Flag of United Nations.png]] ({{flag|un}}).
 +
 
 +
* Many of the sub-templates (such as the abbreviations and alternate names) are simple redirects to a primary sub-template. For example, [[Template:Flag/un]], [[Template:Flag/global]], [[Template:Flag/international]] and [[Template:Flag/world]] all redirect to [[Template:Flag/united nations]]. Template:Flag/united nations is the primary sub-template which then calls Template:Flag icon.
 +
 
 +
=== 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. {{flag|nam}}), we recommend a 23x15px flag which has a 2:3 ratio.
 +
==== Upload ====
 +
*Your flag should be uploaded to <Code>File:Flag of '''ProperFlagName'''.png</code>, where <code>'''ProperFlagName'''</code> 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 <code>Template:Flag/'''lowercaseflagname'''</code>, where <code>'''lowercaseflagname'''</code> is the full name of your flag in complete lowercase. This template should contain the code below:
 +
<pre><nowiki>{{Flag icon|</nowiki>'''ProperFlagName'''<nowiki>}}<noinclude>[[Category:Flag sub-templates]]</noinclude></nowiki></pre>
 +
*Create a template at <code>Template:Flag/'''abbr'''</code>, where <code>abbr</code> is the lowercase abbreviation of your flag. This template should be a simple redirect to the primary sub-template (<code>Template:Flag/'''lowercaseflagname'''</code>)
 +
**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 [[Template:Flag/doc|documentation template]].<noinclude>[[Category:Flag Documentation Templates]]</noinclude>

Latest revision as of 05:00, 21 June 2022

Template:Flag displays a flag icon.

Usage[edit]

{{flag|1}}

1[edit]

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[edit]

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[edit]

Note: United Kingdom flags[edit]

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[edit]

Oman om Oman

X[edit]

Developer documentation[edit]

How this template works[edit]

  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[edit]

If you wish to add a flag, the following requirements must be followed:

Image size[edit]

  • 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[edit]

  • 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[edit]

  • 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.