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/doc: Difference between revisions

Template page
one more thing: use arrows (a bit more "multilingual") and remove quotation marks, since they're not part of the output, anyway
minor punct./copyedit
Line 16: Line 16:


|name=Country
|name=Country
|desc=Given the [[:en:ISO 3166-1 alpha-2|ISO code]] for a country, it checks if the English language name of the country matches a template name (e.g., EE → {{tl|Estonia}}). If such a template exists, it calls that template, if not, it returns the English name. The individual country templates provide localization of country names, and link the localized name to the Wikipedia entry in the relevant language (e.g., {{tl|Estonia}} produces: {{Estonia}}).
|desc=Given the [[:en:ISO 3166-1 alpha-2|ISO code]] for a country, it checks if the English language name of the country matches a template name (e.g., EE → {{tl|Estonia}}). If such a template exists, it calls that template; if not, it returns the English name. The individual country templates provide localization of country names, and link the localized name to the Wikipedia entry in the relevant language (e.g., {{tl|Estonia}} produces: {{Estonia}}).
|namespace=all
|namespace=all
|usergroup=all
|usergroup=all
Line 25: Line 25:
|i18n-method=-
|i18n-method=-
|i18n-desc=
|i18n-desc=
|seealso={{tl|CountryName}} - which provides just the country name, without linking anywhere
|seealso={{tl|CountryName}}, which provides just the country name without linking it
|setscats=
|setscats=
|lines=
|lines=

Revision as of 04:00, 20 June 2018

Given the ISO code for a country, it checks if the English language name of the country matches a template name (e.g., EE → {{Estonia}}). If such a template exists, it calls that template; if not, it returns the English name. The individual country templates provide localization of country names, and link the localized name to the Wikipedia entry in the relevant language (e.g., {{Estonia}} produces: Template:Estonia).

Usage

{{Country |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1ISO code for country (e.g., EE = Estonia — for a list see en: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

  • "Estonia" in current language: {{Country|EE}} → Estonia
  • "Italy" in Polish: {{Country|IT|lang=pl}} → Italy
  • "Ukraine" in Ukrainian without link: {{Country|UA|lang=uk|nolink=1}} → Ukraine
Cookies help us deliver our services. By using our services, you agree to our use of cookies.