Difference between revisions of "Template:Country2nationality"
Jump to navigation
Jump to search
imported>Le Deluge (Add in Home Nations) |
imported>Le Deluge (cat) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{str len|{{ISO 3166 code|{{{1}}}}}}}|2|{{Iso2nationality| {{ISO 3166 code|{{{1}}}}} }}| {{#if:{{{1|}}}| {{#switch: {{{1}}} | England = English | Scotland = Scottish | Wales = Welsh | Catalonia = Catalan }}}}}}</includeonly><noinclude>{{documentation}}</noinclude> | <includeonly>{{#ifeq:{{str len|{{ISO 3166 code|{{{1}}}}}}}|2|{{Iso2nationality| {{ISO 3166 code|{{{1}}}}} }}| {{#if:{{{1|}}}| {{#switch: {{{1}}} | England = English | Scotland = Scottish | Wales = Welsh | Catalonia = Catalan }}}}}}</includeonly><noinclude>{{documentation}}</noinclude> | ||
| + | |||
| + | <noinclude> | ||
| + | [[Category:String manipulation templates]] | ||
| + | </noinclude> | ||
Revision as of 10:36, 24 August 2020
Usage
Combines {{Iso2nationality}} and {{ISO 3166 code}} to generate a nationality from a country parameter, eg:
{{Country2nationality|France}}->
{{Country2nationality|England}}-> English
See also
- {{GetCountryNameFromAdjective}}
- {{Country2continent}}
- {{Find country}} - finds the name of a country or continent within text
- {{Title country}} - applies Find country to PAGENAME
| The above documentation is transcluded from Template:Country2nationality/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |