Difference between revisions of "Template:Iso2nationality/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrandonXLF
imported>Le Deluge
 
(3 intermediate revisions by 3 users not shown)
Line 18: Line 18:
 
| <code><nowiki>{{Iso2nationality|IE}}</nowiki></code>
 
| <code><nowiki>{{Iso2nationality|IE}}</nowiki></code>
 
| {{Iso2nationality|IE}}
 
| {{Iso2nationality|IE}}
|-
 
| <code><nowiki>{{Iso2nationality|IE|link=yes}}</nowiki></code>
 
| {{Iso2nationality|IE|link=yes}}
 
 
|}
 
|}
  
 
=== See also ===
 
=== See also ===
 +
*{{tl|Demonym country}} - takes a [[Country code top-level domain]] and converts it to a demonym, ie ir -> Iranian
 +
*{{tl|ISO 3166 code}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to an ISO alpha-2 code, ie Iran/IR/IRN/364 -> IR
 +
*{{tl|ISO 3166 code-3}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to an ISO alpha-3 code, ie Iran/IR/IRN/364 -> IRN
 +
*{{tl|ISO 3166 name}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to an  official ISO name, ie Iran/IR/IRN/364 -> Iran (Islamic Republic of)
 +
*{{tl|Country name}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to a common name, ie Iran/IR/IRN/364 -> Iran
 +
*{{tl|ISO 3166 numeric}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to an ISO numeric code, ie Iran/IR/IRN/364 -> 364
 +
*{{tl|Iso2continent}} - takes an ISO country code and converts it to a continent, ie IR -> Asia
 +
*{{tl|GetCountryNameFromAdjective}} – takes a demonym and converts it to a country name, ie Iranian -> Iran
 +
*{{tl|Country2nationality}} - takes a country name and converts it to a demonym, ie Iran -> Iranian
 +
*{{tl|Country2continent}} - takes a country name and converts it to a continent, ie Iran-> Asia
 
* {{tl|Iso2country}}
 
* {{tl|Iso2country}}
* {{tl|Iso2lang}}
+
* {{tl|Country2nationality}}
 +
* {{tl|ISO 639 name}}
  
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
</includeonly>
 
</includeonly>

Latest revision as of 12:00, 24 August 2020

Usage

Given an ISO country code (ISO 3166-1 alpha-2), this template returns the matching nationality. It has one optional parameter: "article", which if it set to yes will return the article "the" if needed.

Code Result
{{Iso2nationality|ES}} Spanish
{{Iso2nationality|US}} American
{{Iso2nationality|IE}} Irish

See also

  • {{Demonym country}} - takes a Country code top-level domain and converts it to a demonym, ie ir -> Iranian
  • {{ISO 3166 code}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to an ISO alpha-2 code, ie Iran/IR/IRN/364 -> IR
  • {{ISO 3166 code-3}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to an ISO alpha-3 code, ie Iran/IR/IRN/364 -> IRN
  • {{ISO 3166 name}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to an official ISO name, ie Iran/IR/IRN/364 -> Iran (Islamic Republic of)
  • {{Country name}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to a common name, ie Iran/IR/IRN/364 -> Iran
  • {{ISO 3166 numeric}} - takes a country name/ISO alpha-2-or-3 code/ISO numeric code and converts it to an ISO numeric code, ie Iran/IR/IRN/364 -> 364
  • {{Iso2continent}} - takes an ISO country code and converts it to a continent, ie IR -> Asia
  • {{GetCountryNameFromAdjective}} – takes a demonym and converts it to a country name, ie Iranian -> Iran
  • {{Country2nationality}} - takes a country name and converts it to a demonym, ie Iran -> Iranian
  • {{Country2continent}} - takes a country name and converts it to a continent, ie Iran-> Asia
  • {{Iso2country}}
  • {{Country2nationality}}
  • {{ISO 639 name}}