Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Country: Difference between revisions

Template page
Passing nolink parameter
Passing lang parameter
Line 1: Line 1:
{{#switch:{{uc:{{{1|}}}}}
{{#switch:{{uc:{{{1|}}}}}
|AF={{#ifexist: Template:Afghanistan | {{Afghanistan|nolink={{{nolink|}}}}} | Afghanistan }}
|AF={{#ifexist: Template:Afghanistan | {{Afghanistan|1={{{lang|}}}|nolink={{{nolink|}}}}} | Afghanistan }}
|AX={{#ifexist: Template:Åland Islands | {{Åland Islands|nolink={{{nolink|}}}}} | Åland Islands }}
|AX={{#ifexist: Template:Åland Islands | {{Åland Islands|1={{{lang|}}}|nolink={{{nolink|}}}}} | Åland Islands }}
|AL={{#ifexist: Template:Albania | {{Albania|nolink={{{nolink|}}}}} | Albania }}
|AL={{#ifexist: Template:Albania | {{Albania|1={{{lang|}}}|nolink={{{nolink|}}}}} | Albania }}
|DZ={{#ifexist: Template:Algeria | {{Algeria|nolink={{{nolink|}}}}} | Algeria }}
|DZ={{#ifexist: Template:Algeria | {{Algeria|1={{{lang|}}}|nolink={{{nolink|}}}}} | Algeria }}
|AS={{#ifexist: Template:American Samoa | {{American Samoa|nolink={{{nolink|}}}}} | American Samoa }}
|AS={{#ifexist: Template:American Samoa | {{American Samoa|1={{{lang|}}}|nolink={{{nolink|}}}}} | American Samoa }}
|AD={{#ifexist: Template:Andorra | {{Andorra|nolink={{{nolink|}}}}} | Andorra }}
|AD={{#ifexist: Template:Andorra | {{Andorra|1={{
|AO={{#ifexist: Template:Angola | {{Angola|nolink={{{nolink|}}}}} | Angola }}
|AI={{#ifexist: Template
|#default={{#if: {{{debug|}}} | {{error}} | {{city|{{{1|}}}}} }}
|#default={{#if: {{{debug|}}} | {{error}} | {{city|{{{1|}}}}} }}
}}<noinclude>
}}<noinclude>

Revision as of 22:27, 9 September 2013

Template:City

Template documentation[ view · edit · history · purge ]
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

ParameterDescriptionDefaultStatus
1ISO code for country (e.g., EE = Estonia — for a list see w:ISO 3166-1 alpha-2)emptyrequired
langlanguage code (must be entirely lowercase)emptyoptional
nolinkset to suppress hyperlinkemptyoptional

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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.