Template:Country: Difference between revisions
Content deleted Content added
GVarnum-WMF (talk | contribs) m 1 revision imported from meta:Template:Country |
GVarnum-WMF (talk | contribs) mNo edit summary Tag: 2017 source edit |
||
Line 16: | Line 16: | ||
<code><nowiki>{{country|United States of America}}</nowiki></code> gives "{{country|United States of America}}" |
<code><nowiki>{{country|United States of America}}</nowiki></code> gives "{{country|United States of America}}" |
||
== See also == |
|||
* [[:Category:Common messages|Common messages category]]: other templates to localize common phrases |
|||
* [[:mw:Special:MyLanguage/Help:Magic_words##language|#language parser documentation]]: it gives localized language name from [[mw:Extension:CLDR|CLDR]] |
|||
Note: this template would gain to be turned into a parser function using CLDR. |
Note: this template would gain to be turned into a parser function using CLDR. |
Revision as of 06:21, 16 August 2023
Template 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 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 {{Label}} template.
Examples
Origin country: {{country|fr}}
gives "Origin country: France"
{{country|United States of America}}
gives "United States of America"
Note: this template would gain to be turned into a parser function using CLDR.
{{{1}}}