Template:Country: Difference between revisions
Content deleted Content added
GVarnum-WMF (talk | contribs) additional countries Tag: 2017 source edit |
GVarnum-WMF (talk | contribs) No edit summary Tag: 2017 source edit |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
{{documentation |
{{documentation}} |
||
== Usage == |
|||
Displays the localized name of a country. This is useful in tables or infoboxes. |
|||
As first parameter you may give the full English country name or its alpha-2 or alpha- 3 digit [[w:en:List of ISO 3166 country codes|ISO-3166-1 code]]. |
|||
Pages calling for a country or ISO code missing from this template will appear in [[:Category:Pages with missing country in Template:Country]]. |
|||
Translations come from [[Wikidata]] utilizing the {{tl|Label}} template. |
|||
=== Examples === |
|||
<code><nowiki>Origin country: <tvar name=country>{{country|fr}}</tvar></nowiki></code> gives "Origin country: {{country|fr}}" |
|||
<code><nowiki>{{country|United States of America}}</nowiki></code> gives "{{country|United States of America}}" |
|||
Note: this template would gain to be turned into a parser function using CLDR. |
|||
[[Category:Templates that provide common messages{{#translation:}}]] |
|||
}} |
|||
</noinclude>{{#switch:{{{1}}} |
</noinclude>{{#switch:{{{1}}} |
||
| Afghanistan |af |afg = {{LabelT|Q889}} |
| Afghanistan |af |afg = {{LabelT|Q889}} |
||
| Algeria |dz |dza = {{LabelT|Q262}} |
| Algeria |dz |dza = {{LabelT|Q262}} |
||
| Albania |alb |al = {{LabelT|Q222}} |
| Albania |alb |al = {{LabelT|Q222}} |
||
| Andorra |ad |and = {{LabelT|Q228}} |
|||
| Angola |ago |ao = {{LabelT|Q916}} |
| Angola |ago |ao = {{LabelT|Q916}} |
||
| Anguilla |aia |ai = {{LabelT|Q25228}} |
| Anguilla |aia |ai = {{LabelT|Q25228}} |
||
Line 44: | Line 25: | ||
| Benin |ben |bj = {{LabelT|Q962}} |
| Benin |ben |bj = {{LabelT|Q962}} |
||
| Bermuda |bmu |bm = {{LabelT|Q23635}} |
| Bermuda |bmu |bm = {{LabelT|Q23635}} |
||
| Bhutan |bt |btn = {{LabelT|Q917}} |
|||
| Bolivia |bol |bo = {{LabelT|Q750}} |
| Bolivia |bol |bo = {{LabelT|Q750}} |
||
| Bosnia and Herzegovina |bih |ba = {{LabelT|Q225}} |
| Bosnia and Herzegovina |Bosnia-Herzegovina |bih |ba = {{LabelT|Q225}} |
||
| Botswana |bwa |bw = {{LabelT|Q963}} |
| Botswana |bwa |bw = {{LabelT|Q963}} |
||
| Brazil |bra |br = {{LabelT|Q155}} |
| Brazil |bra |br = {{LabelT|Q155}} |
||
Line 79: | Line 61: | ||
| East Timor |Timor-Leste |tl |tls = {{LabelT|Q574}} |
| East Timor |Timor-Leste |tl |tls = {{LabelT|Q574}} |
||
| Ecuador |ecu |ec = {{LabelT|Q736}} |
| Ecuador |ecu |ec = {{LabelT|Q736}} |
||
| Egypt |egy |eg = {{LabelT| |
| Egypt |egy |eg = {{LabelT|Q79}} |
||
| El Salvador |sv |slv = {{LabelT| |
| El Salvador |sv |slv = {{LabelT|Q792}} |
||
| Equatorial Guinea |gnq |gq = {{LabelT|Q983}} |
| Equatorial Guinea |gnq |gq = {{LabelT|Q983}} |
||
| Eritrea |eri |er = {{LabelT|Q986}} |
| Eritrea |eri |er = {{LabelT|Q986}} |
||
Line 110: | Line 92: | ||
| India |ind |in = {{LabelT|Q668}} |
| India |ind |in = {{LabelT|Q668}} |
||
| Indonesia |idn |id = {{LabelT|Q252}} |
| Indonesia |idn |id = {{LabelT|Q252}} |
||
| Iran |irn |ir |
| Iran |irn |ir = {{LabelT|Q794}} |
||
| Iraq |irq |iq = {{LabelT|Q796}} |
| Iraq |irq |iq = {{LabelT|Q796}} |
||
| Ireland |irl |ie = {{LabelT|Q27}} |
| Ireland |irl |ie = {{LabelT|Q27}} |
Latest revision as of 00:03, 27 March 2024
This template has a duplicate on Meta-Wiki. Please visit its documentation on Meta-Wiki for usage details and any additional information. Please keep the content and translations synchronized as much as possible. Thank you! |
{{{1}}}