Difference between revisions of "Template:GetCountryNameFromAdjective"
Jump to navigation
Jump to search
imported>Le Deluge (Split out documentation) |
imported>BrownHairedGirl (remove whitespace) |
||
| Line 1: | Line 1: | ||
{{#ifeq:{{{1|}}}|Yugoslavian|Yugoslavia|{{#invoke: CountryAdjectiveDemonym | getCountryFromAdjective |{{{1|}}}}}}}<!-- | {{#ifeq:{{{1|}}}|Yugoslavian|Yugoslavia|{{#invoke: CountryAdjectiveDemonym | getCountryFromAdjective |{{{1|}}}}}}}<!-- | ||
| − | + | --><noinclude><!-- | |
| − | <noinclude>{{ | + | -->{{Documentation}} |
[[Category:String manipulation templates|country]] | [[Category:String manipulation templates|country]] | ||
[[Category:Country templates]] | [[Category:Country templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 21:13, 24 August 2020
| This template uses Lua: |
Usage
Generate a country from a demonym parameter, eg:
{{GetCountryNameFromAdjective|Beninese}}→ Benin{{GetCountryNameFromAdjective|French}}→ France
See also
- {{Demonym country}} – similar, combining {{Iso2continent}} and {{ISO 3166 code}}
- {{Country2nationality}} - takes a country name and converts it to a demonym, ie France -> French
- {{Country2continent}} - takes a country name and converts it to a continent, ie France -> Europe
| The above documentation is transcluded from Template:GetCountryNameFromAdjective/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. |