Difference between revisions of "Template:Flag/doc"
Jump to navigation
Jump to search
(33 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Template:Flag''' displays a flag icon | + | '''Template:Flag''' displays a flag icon. |
== Usage == | == Usage == | ||
− | <code><nowiki>{{flag|</nowiki>'''<nowiki> | + | <code><nowiki>{{flag|</nowiki>'''<nowiki>1</nowiki>'''<nowiki>}}</nowiki></code> |
− | === | + | === 1 === |
− | This is the only parameter in the template and is used for defining which country's | + | 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 == | == Examples == | ||
− | {| class="wikitable" style="text-align: center | + | {| class="wikitable" style="text-align: center;" |
− | + | | style="background-color:#ecfcf4;border-top:hidden;border-left:hidden" | | |
− | ! | + | ! You type |
+ | ! You get | ||
|- | |- | ||
− | + | ! style="font-weight:normal" | ''Full name'' | |
− | | <code><nowiki>{{flag| | + | | <code><nowiki>{{flag|United Nations}}</nowiki></code> |
− | + | | {{flag|United Nations}} | |
− | |||
− | | {{flag| | ||
− | |||
|- | |- | ||
− | + | ! style="font-weight:normal" | ''Alternate name'' | |
− | | <code><nowiki>{{flag| | + | | <code><nowiki>{{flag|world}}</nowiki></code> |
− | + | | {{flag|world}} | |
− | |||
− | | {{flag| | ||
− | |||
|- | |- | ||
− | | style=" | + | ! 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> | ||
− | |||
− | |||
| {{flag|invalid}} | | {{flag|invalid}} | ||
− | |||
|} | |} | ||
== Valid settings == | == Valid settings == | ||
− | + | === Note: United Kingdom flags === | |
− | + | 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. | |
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | The individual flags of | ||
− | |||
− | |||
{| 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}} | {{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 === | === A === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
| style="width: 29px;" | {{flag|af}} | | style="width: 29px;" | {{flag|af}} | ||
| style="width: 44px;" | [[Template:Flag/af|<code>af</code>]] | | style="width: 44px;" | [[Template:Flag/af|<code>af</code>]] | ||
− | | style="width: | + | | style="width: 160px" | [[Template:Flag/afghanistan|Afghanistan]] |
|- | |- | ||
| {{flag|al}} | | {{flag|al}} | ||
Line 120: | Line 142: | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== B === | === B === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
− | | style="width: 29px;" | {{flag|bs}} | + | | rowspan=2 style="width: 29px;" | {{flag|bs}} |
− | | style="width: 44px;" | [[Template:Flag/bs|<code>bs</code>]] | + | | rowspan=2 style="width: 44px;" | [[Template:Flag/bs|<code>bs</code>]] |
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/bahamas|Bahamas]] |
+ | |- | ||
+ | | [[Template:Flag/the bahamas|The Bahamas]] | ||
|- | |- | ||
| {{flag|bh}} | | {{flag|bh}} | ||
Line 147: | Line 172: | ||
|- | |- | ||
| {{flag|bz}} | | {{flag|bz}} | ||
− | | [[Template:Flag/ | + | | [[Template:Flag/bz|<code>bz</code>]] |
| [[Template:Flag/belize|Belize]] | | [[Template:Flag/belize|Belize]] | ||
|- | |- | ||
Line 191: | Line 216: | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== C === | === C === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
| style="width: 29px;" | {{flag|kh}} | | style="width: 29px;" | {{flag|kh}} | ||
| style="width: 44px;" | [[Template:Flag/kh|<code>kh</code>]] | | style="width: 44px;" | [[Template:Flag/kh|<code>kh</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/cambodia|Cambodia]] |
|- | |- | ||
| {{flag|cm}} | | {{flag|cm}} | ||
Line 205: | Line 231: | ||
| [[Template:Flag/canada|Canada]] | | [[Template:Flag/canada|Canada]] | ||
|- | |- | ||
− | | {{flag|cv}} | + | | rowspan=2 | {{flag|cv}} |
− | | [[Template:Flag/cv|<code>cv</code>]] | + | | rowspan=2 | [[Template:Flag/cv|<code>cv</code>]] |
| [[Template:Flag/cape verde|Cape Verde]] | | [[Template:Flag/cape verde|Cape Verde]] | ||
+ | |- | ||
+ | | [[Template:Flag/cabo verde|Cabo Verde]] | ||
|- | |- | ||
| {{flag|cf}} | | {{flag|cf}} | ||
| [[Template:Flag/cf|<code>cf</code>]] | | [[Template:Flag/cf|<code>cf</code>]] | ||
− | | [[Template:Flag/central african republic|Central African Republic]] | + | | [[Template:Flag/central african republic|Central African<br>Republic]] |
|- | |- | ||
| {{flag|td}} | | {{flag|td}} | ||
Line 232: | Line 260: | ||
| [[Template:Flag/km|<code>km</code>]] | | [[Template:Flag/km|<code>km</code>]] | ||
| [[Template:Flag/comoros|Comoros]] | | [[Template:Flag/comoros|Comoros]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{flag|cr}} | | {{flag|cr}} | ||
Line 257: | Line 277: | ||
| [[Template:Flag/cyprus|Cyprus]] | | [[Template:Flag/cyprus|Cyprus]] | ||
|- | |- | ||
− | | {{flag|cz}} | + | | rowspan=2 | {{flag|cz}} |
− | | [[Template:Flag/cz|<code>cz</code>]] | + | | rowspan=2 | [[Template:Flag/cz|<code>cz</code>]] |
| [[Template:Flag/czech republic|Czech Republic]] | | [[Template:Flag/czech republic|Czech Republic]] | ||
|- | |- | ||
− | | {{flag|ci}} | + | | [[Template:Flag/czechia|Czechia]] |
− | | [[Template:Flag/ci|<code>ci</code>]] | + | |- |
+ | | rowspan=2 | {{flag|ci}} | ||
+ | | rowspan=2 | [[Template:Flag/ci|<code>ci</code>]] | ||
| [[Template:Flag/côte d'ivoire|Côte d'Ivoire]] | | [[Template:Flag/côte d'ivoire|Côte d'Ivoire]] | ||
+ | |- | ||
+ | | [[Template:Flag/ivory coast|Ivory Coast]] | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== D === | === D === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
− | | style="width: 29px;" | {{flag| | + | | rowspan=2 style="width: 29px;" | {{flag|cd}} |
− | | style="width: 44px;" | [[Template:Flag/ | + | | rowspan=2 style="width: 44px;" | [[Template:Flag/cd|<code>cd</code>]] |
− | | style="width: | + | | 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}} | | {{flag|dj}} | ||
Line 288: | Line 319: | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
|- | |- | ||
− | | style="width: 29px;" | {{flag|tl}} | + | | rowspan=2 style="width: 29px;" | {{flag|tl}} |
− | | style="width: 44px;" | [[Template:Flag/tl|<code>tl</code>]] | + | | rowspan=2 style="width: 44px;" | [[Template:Flag/tl|<code>tl</code>]] |
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/east timor|East Timor]] |
+ | |- | ||
+ | | [[Template:Flag/timor-leste|Timor-Leste]] | ||
|- | |- | ||
| {{flag|ec}} | | {{flag|ec}} | ||
Line 304: | Line 337: | ||
| [[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 320: | Line 355: | ||
| [[Template:Flag/estonia|Estonia]] | | [[Template:Flag/estonia|Estonia]] | ||
|- | |- | ||
− | | {{flag|sz}} | + | | rowspan=2 | {{flag|sz}} |
− | | [[Template:Flag/sz|<code>sz</code>]] | + | | rowspan=2 | [[Template:Flag/sz|<code>sz</code>]] |
| [[Template:Flag/eswatini|Eswatini]] | | [[Template:Flag/eswatini|Eswatini]] | ||
+ | |- | ||
+ | | [[Template:Flag/swaziland|Swaziland]] | ||
|- | |- | ||
| {{flag|et}} | | {{flag|et}} | ||
| [[Template:Flag/et|<code>et</code>]] | | [[Template:Flag/et|<code>et</code>]] | ||
| [[Template:Flag/ethiopia|Ethiopia]] | | [[Template:Flag/ethiopia|Ethiopia]] | ||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== F === | === F === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 338: | Line 372: | ||
| style="width: 29px;" | {{flag|fj}} | | style="width: 29px;" | {{flag|fj}} | ||
| style="width: 44px;" | [[Template:Flag/fj|<code>fj</code>]] | | style="width: 44px;" | [[Template:Flag/fj|<code>fj</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/fiji|Fiji]] |
|- | |- | ||
| {{flag|fi}} | | {{flag|fi}} | ||
Line 354: | Line 388: | ||
| style="width: 29px;" | {{flag|ga}} | | style="width: 29px;" | {{flag|ga}} | ||
| style="width: 44px;" | [[Template:Flag/ga|<code>ga</code>]] | | style="width: 44px;" | [[Template:Flag/ga|<code>ga</code>]] | ||
− | | style="width: | + | | 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]] | | [[Template:Flag/gambia|Gambia]] | ||
|- | |- | ||
Line 401: | Line 437: | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== H === | === H === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 406: | Line 443: | ||
| style="width: 29px;" | {{flag|ht}} | | style="width: 29px;" | {{flag|ht}} | ||
| style="width: 44px;" | [[Template:Flag/ht|<code>ht</code>]] | | style="width: 44px;" | [[Template:Flag/ht|<code>ht</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/haiti|Haiti]] |
|- | |- | ||
| {{flag|hn}} | | {{flag|hn}} | ||
Line 426: | Line 463: | ||
| style="width: 29px;" | {{flag|is}} | | style="width: 29px;" | {{flag|is}} | ||
| style="width: 44px;" | [[Template:Flag/is|<code>is</code>]] | | style="width: 44px;" | [[Template:Flag/is|<code>is</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/iceland|Iceland]] |
|- | |- | ||
| {{flag|in}} | | {{flag|in}} | ||
Line 462: | Line 499: | ||
| style="width: 29px;" | {{flag|jm}} | | style="width: 29px;" | {{flag|jm}} | ||
| style="width: 44px;" | [[Template:Flag/jm|<code>jm</code>]] | | style="width: 44px;" | [[Template:Flag/jm|<code>jm</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/jamaica|Jamaica]] |
|- | |- | ||
| {{flag|jp}} | | {{flag|jp}} | ||
Line 478: | Line 515: | ||
| style="width: 29px;" | {{flag|kz}} | | style="width: 29px;" | {{flag|kz}} | ||
| style="width: 44px;" | [[Template:Flag/kz|<code>kz</code>]] | | style="width: 44px;" | [[Template:Flag/kz|<code>kz</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/kazakhstan|Kazakhstan]] |
|- | |- | ||
| {{flag|ke}} | | {{flag|ke}} | ||
Line 506: | Line 543: | ||
| style="width: 29px;" | {{flag|la}} | | style="width: 29px;" | {{flag|la}} | ||
| style="width: 44px;" | [[Template:Flag/la|<code>la</code>]] | | style="width: 44px;" | [[Template:Flag/la|<code>la</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/laos|Laos]] |
|- | |- | ||
| {{flag|lv}} | | {{flag|lv}} | ||
Line 543: | Line 580: | ||
=== M === | === M === | ||
{| class="wikitable" style="text-align: center;" | {| 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: 29px;" | {{flag|mg}} | ||
| style="width: 44px;" | [[Template:Flag/mg|<code>mg</code>]] | | style="width: 44px;" | [[Template:Flag/mg|<code>mg</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/madagascar|Madagascar]] |
|- | |- | ||
| {{flag|mw}} | | {{flag|mw}} | ||
Line 617: | Line 660: | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== N === | === N === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 622: | Line 666: | ||
| style="width: 29px;" | {{flag|na}} | | style="width: 29px;" | {{flag|na}} | ||
| style="width: 44px;" | [[Template:Flag/na|<code>na</code>]] | | style="width: 44px;" | [[Template:Flag/na|<code>na</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/namibia|Namibia]] |
|- | |- | ||
| {{flag|nr}} | | {{flag|nr}} | ||
Line 632: | Line 676: | ||
| [[Template:Flag/nepal|Nepal]] | | [[Template:Flag/nepal|Nepal]] | ||
|- | |- | ||
− | | {{flag|nl}} | + | | rowspan=2 | {{flag|nl}} |
− | | [[Template:Flag/nl|<code>nl</code>]] | + | | rowspan=2 | [[Template:Flag/nl|<code>nl</code>]] |
| [[Template:Flag/netherlands|Netherlands]] | | [[Template:Flag/netherlands|Netherlands]] | ||
+ | |- | ||
+ | | [[Template:Flag/holland|Holland]] | ||
|- | |- | ||
| {{flag|nz}} | | {{flag|nz}} | ||
Line 656: | Line 702: | ||
| [[Template:Flag/north korea|North Korea]] | | [[Template:Flag/north korea|North Korea]] | ||
|- | |- | ||
− | | {{flag|mk}} | + | | rowspan=2 | {{flag|mk}} |
− | | [[Template:Flag/mk|<code>mk</code>]] | + | | rowspan=2 | [[Template:Flag/mk|<code>mk</code>]] |
+ | | [[Template:Flag/macedonia|Macedonia]] | ||
+ | |- | ||
| [[Template:Flag/north macedonia|North Macedonia]] | | [[Template:Flag/north macedonia|North Macedonia]] | ||
|- | |- | ||
Line 669: | Line 717: | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== O === | === O === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 674: | Line 723: | ||
| style="width: 29px;" | {{flag|om}} | | style="width: 29px;" | {{flag|om}} | ||
| style="width: 44px;" | [[Template:Flag/om|<code>om</code>]] | | style="width: 44px;" | [[Template:Flag/om|<code>om</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/oman|Oman]] |
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
Line 682: | Line 731: | ||
| style="width: 29px;" | {{flag|pk}} | | style="width: 29px;" | {{flag|pk}} | ||
| style="width: 44px;" | [[Template:Flag/pk|<code>pk</code>]] | | style="width: 44px;" | [[Template:Flag/pk|<code>pk</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/pakistan|Pakistan]] |
|- | |- | ||
| {{flag|pw}} | | {{flag|pw}} | ||
Line 730: | Line 779: | ||
| style="width: 29px;" | {{flag|qa}} | | style="width: 29px;" | {{flag|qa}} | ||
| style="width: 44px;" | [[Template:Flag/qa|<code>qa</code>]] | | style="width: 44px;" | [[Template:Flag/qa|<code>qa</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/qatar|Qatar]] |
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
Line 736: | Line 785: | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
|- | |- | ||
− | | style="width: 29px;" | {{flag| | + | | rowspan=2 style="width: 29px;" | {{flag|cg}} |
− | | style="width: 44px;" | [[Template:Flag/|<code> | + | | rowspan=2 style="width: 44px;" | [[Template:Flag/cg|<code>cg</code>]] |
− | | style="width: | + | | 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}} | | {{flag|ru}} | ||
Line 749: | Line 804: | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== S === | === S === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 754: | Line 810: | ||
| style="width: 29px;" | {{flag|kn}} | | style="width: 29px;" | {{flag|kn}} | ||
| style="width: 44px;" | [[Template:Flag/kn|<code>kn</code>]] | | style="width: 44px;" | [[Template:Flag/kn|<code>kn</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/saint kitts and nevis|Saint Kitts and Nevis]] |
|- | |- | ||
| {{flag|lc}} | | {{flag|lc}} | ||
Line 762: | Line 818: | ||
| {{flag|vc}} | | {{flag|vc}} | ||
| [[Template:Flag/vc|<code>vc</code>]] | | [[Template:Flag/vc|<code>vc</code>]] | ||
− | | [[Template:Flag/saint vincent and the grenadines|Saint Vincent and the Grenadines]] | + | | [[Template:Flag/saint vincent and the grenadines|Saint Vincent<br>and the Grenadines]] |
|- | |- | ||
| {{flag|ws}} | | {{flag|ws}} | ||
Line 820: | Line 876: | ||
| [[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>]] | |
− | | [[Template:Flag/ | ||
− | |||
|- | |- | ||
| {{flag|kr}} | | {{flag|kr}} | ||
Line 865: | Line 919: | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== T === | === T === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 870: | Line 925: | ||
| style="width: 29px;" | {{flag|tw}} | | style="width: 29px;" | {{flag|tw}} | ||
| style="width: 44px;" | [[Template:Flag/tw|<code>tw</code>]] | | style="width: 44px;" | [[Template:Flag/tw|<code>tw</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/taiwan|Taiwan]] |
|- | |- | ||
| {{flag|tj}} | | {{flag|tj}} | ||
Line 918: | Line 973: | ||
| style="width: 29px;" | {{flag|ug}} | | style="width: 29px;" | {{flag|ug}} | ||
| style="width: 44px;" | [[Template:Flag/ug|<code>ug</code>]] | | style="width: 44px;" | [[Template:Flag/ug|<code>ug</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/uganda|Uganda]] |
|- | |- | ||
| {{flag|ua}} | | {{flag|ua}} | ||
Line 924: | Line 979: | ||
| [[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=3 | {{flag|uk}} |
| [[Template:Flag/uk|<code>uk</code>]] | | [[Template:Flag/uk|<code>uk</code>]] | ||
| [[Template:Flag/united kingdom|United Kingdom]] | | [[Template:Flag/united kingdom|United Kingdom]] | ||
|- | |- | ||
− | | {{flag|us}} | + | | 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/us|<code>us</code>]] | ||
| [[Template:Flag/united states|United States]] | | [[Template:Flag/united states|United States]] | ||
+ | |- | ||
+ | | [[Template:Flag/usa|<code>usa</code>]] | ||
+ | | [[Template:Flag/united states of america|United States of America]] | ||
|- | |- | ||
| {{flag|uy}} | | {{flag|uy}} | ||
Line 945: | Line 1,010: | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== V === | === V === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 950: | Line 1,016: | ||
| style="width: 29px;" | {{flag|vu}} | | style="width: 29px;" | {{flag|vu}} | ||
| style="width: 44px;" | [[Template:Flag/vu|<code>vu</code>]] | | style="width: 44px;" | [[Template:Flag/vu|<code>vu</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/vanuatu|Vanuatu]] |
|- | |- | ||
| {{flag|va}} | | {{flag|va}} | ||
Line 968: | Line 1,034: | ||
{| 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/ | + | | style="width: 44px;" | [[Template:Flag/wa|<code>wa</code>]] |
− | | style="width: | + | | rowspan=2 style="width: 160px;" | [[Template:Flag/wales|Wales]] |
+ | |- | ||
+ | | [[Template:Flag/ukwa|<code>ukwa</code>]] | ||
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== X === | === X === | ||
+ | <div style="width:273px"></div><!-- Div to keep tables aligned. Delete this if adding a table --> | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
+ | |||
=== Y === | === Y === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 980: | Line 1,051: | ||
| style="width: 29px;" | {{flag|ye}} | | style="width: 29px;" | {{flag|ye}} | ||
| style="width: 44px;" | [[Template:Flag/ye|<code>ye</code>]] | | style="width: 44px;" | [[Template:Flag/ye|<code>ye</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/yemen|Yemen]] |
|} | |} | ||
{{Box|break|padding=1em}} | {{Box|break|padding=1em}} | ||
Line 988: | Line 1,059: | ||
| style="width: 29px;" | {{flag|zm}} | | style="width: 29px;" | {{flag|zm}} | ||
| style="width: 44px;" | [[Template:Flag/zm|<code>zm</code>]] | | style="width: 44px;" | [[Template:Flag/zm|<code>zm</code>]] | ||
− | | style="width: | + | | style="width: 160px;" | [[Template:Flag/zambia|Zambia]] |
|- | |- | ||
| {{flag|zw}} | | {{flag|zw}} | ||
Line 996: | Line 1,067: | ||
{{Box|end}} | {{Box|end}} | ||
+ | == 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 | + | If you wish to add a flag, the following requirements must be followed: |
− | === Image size === | + | ==== Image size ==== |
*Width: equal or less than 23px | *Width: equal or less than 23px | ||
*Height: equal or less than 15px | *Height: equal or less than 15px | ||
*Aspect ratio: retained from source flag | *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. | If your flag is a custom flag (e.g. {{flag|nam}}), we recommend a 23x15px flag which has a 2:3 ratio. | ||
− | === Upload === | + | ==== Upload ==== |
− | *Your flag should be uploaded to <Code>File:Flag of < | + | *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 to [[:Category:Flag Images]] | + | *Make sure you add your flag image to [[:Category:Flag Images]]. |
− | === Update templates === | + | ==== Update templates ==== |
− | *[[Template:Flag/abbr | + | *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>) | |
− | <noinclude>[[Category:Flag Documentation Templates]]</noinclude> | + | **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}}
|
|
Alternate name | {{flag|world}}
|
|
Abbreviation | {{flag|un}}
|
|
No parameter | {{flag|}}
|
|
Invalid parameter | {{flag|invalid}}
|
Template:Flag/invalid |
Valid settings[edit]
Note: United Kingdom flags[edit]
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[edit]
A[edit]
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[edit]
C[edit]
D[edit]
cd
|
Democratic Republic of the Congo | |
Zaire | ||
dk
|
Denmark | |
dj
|
Djibouti | |
dm
|
Dominica | |
do
|
Dominican Republic |
E[edit]
tl
|
East Timor | |
Timor-Leste | ||
ec
|
Ecuador | |
eg
|
Egypt | |
sv
|
El Salvador | |
uken
|
England | |
en
| ||
gq
|
Equatorial Guinea | |
er
|
Eritrea | |
ee
|
Estonia | |
sz
|
Eswatini | |
Swaziland | ||
et
|
Ethiopia |
G[edit]
ga
|
Gabon | |
gm
|
The Gambia | |
Gambia | ||
ge
|
Georgia | |
de
|
Germany | |
gh
|
Ghana | |
gr
|
Greece | |
gl
|
Greenland | |
gd
|
Grenada | |
gt
|
Guatemala | |
gn
|
Guinea | |
gw
|
Guinea-Bissau | |
gy
|
Guyana |
L[edit]
la
|
Laos | |
lv
|
Latvia | |
lb
|
Lebanon | |
ls
|
Lesotho | |
lr
|
Liberia | |
ly
|
Libya | |
li
|
Liechtenstein | |
lt
|
Lithuania | |
lu
|
Luxembourg |
M[edit]
N[edit]
na
|
Namibia | |
nr
|
Nauru | |
np
|
Nepal | |
nl
|
Netherlands | |
Holland | ||
nz
|
New Zealand | |
ni
|
Nicaragua | |
ne
|
Niger | |
ng
|
Nigeria | |
kp
|
North Korea | |
mk
|
Macedonia | |
North Macedonia | ||
ukni
|
Northern Ireland | |
no
|
Norway |
P[edit]
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[edit]
T[edit]
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[edit]
ug
|
Uganda | |
1zqjex'"(){}<x>:/1zqjex;9 | ua
|
Ukraine |
ae
|
United Arab Emirates | |
uae
| ||
uk
|
United Kingdom | |
gb
|
Britain | |
Great Britain | ||
us
|
United States | |
usa
|
United States of America | |
uy
|
Uruguay | |
uz
|
Uzbekistan |
X[edit]
Developer documentation[edit]
How this template works[edit]
- 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. - 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 parameterUnited Nations
- 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 ().
- 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[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. ), we recommend a 23x15px flag which has a 2:3 ratio.
Upload[edit]
- Your flag should be uploaded to
File:Flag of ProperFlagName.png
, whereProperFlagName
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
, wherelowercaseflagname
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
, whereabbr
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.