Template:Country: Difference between revisions
Template page
More actions
redo (sorry, I'll try not to forget preview) |
|||
| Line 238: | Line 238: | ||
|VU={{#ifexist: Template:Vanuatu | {{Vanuatu}} | Vanuatu }} | |VU={{#ifexist: Template:Vanuatu | {{Vanuatu}} | Vanuatu }} | ||
|VE={{#ifexist: Template:Venezuela | {{Venezuela}} | Venezuela }} | |VE={{#ifexist: Template:Venezuela | {{Venezuela}} | Venezuela }} | ||
|VG={{#ifexist: Template:British Virgin Islands | {{British Virgin Islands}} | British Virgin Islands }} | |VG={{#ifexist: Template:British Virgin Islands | {{British Virgin Islands}} | British Virgin Islands }} | ||
|VI={{#ifexist: Template:US Virgin Islands | {{US Virgin Islands}} | US Virgin Islands }} | |VI={{#ifexist: Template:US Virgin Islands | {{US Virgin Islands}} | US Virgin Islands }} | ||
|VN={{#ifexist: Template:Vietnam | {{Vietnam}} | Vietnam }} | |||
|WF={{#ifexist: Template:Wallis and Futuna | {{Wallis and Futuna}} | Wallis and Futuna }} | |WF={{#ifexist: Template:Wallis and Futuna | {{Wallis and Futuna}} | Wallis and Futuna }} | ||
|EH={{#ifexist: Template:Western Sahara | {{Western Sahara}} | Western Sahara }} | |EH={{#ifexist: Template:Western Sahara | {{Western Sahara}} | Western Sahara }} | ||
| Line 246: | Line 246: | ||
|ZM={{#ifexist: Template:Zambia | {{Zambia}} | Zambia }} | |ZM={{#ifexist: Template:Zambia | {{Zambia}} | Zambia }} | ||
|ZW={{#ifexist: Template:Zimbabwe | {{Zimbabwe}} | Zimbabwe }} | |ZW={{#ifexist: Template:Zimbabwe | {{Zimbabwe}} | Zimbabwe }} | ||
|#default= {{{1|}}} | |#default={{#if: {{{debug|}}} | {{error}} | {{city|{{{1|}}}}} }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
Revision as of 07:01, 9 October 2011
This documentation is transcluded from Template:Country/doc.
Given the ISO code for a country, it checks if the English language name of the country matches a template name. If such a template exists, it calls that template; if not, it returns the English name.
Usage
{{Country |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | ISO code for country (e.g., EE = Estonia — for a list see w:ISO 3166-1 alpha-2) | empty | required | |
lang | language code (must be entirely lowercase) | empty | optional | |
nolink | set to suppress hyperlink | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
See also
{{CountryName}}, which provides just the country name without linking it
Localization
This template is not intended to be localized.
Examples
- "New Zealand" in Russian:
{{Country|NZ|lang=ru}}→ New Zealand - "Ukraine" in Ukrainian with no wikilink:
{{Country|UA|lang=uk|nolink=1}}→ Ukraine