Module:Country adjective/doc: Difference between revisions
Appearance
hp>Nickps Added the page to Category:Module documentation pages |
Humanipedia (talk | contribs) m 1 revision imported |
(No difference)
|
Latest revision as of 21:10, 3 February 2025
Script error: No such module "High-use". Module:Country adjective can be used to retrieve a country's name from its adjective or a country's adjective from its name. The list is based on List of adjectival and demonymic forms for countries and nations.
Usage[edit source]
<syntaxhighlight lang="lua">local data = mw.loadData('Module:Country adjective') data.getCountryFromAdj[adjective] </syntaxhighlight>
Function and parameter list[edit source]
Function | Parameter | Explanation |
---|---|---|
getAdjFromCountry
|
<country name> | Retrieves the country adjective from a country name. |
getCountryFromAdj
|
<country adjective> | Retrieves the country name from a country adjective. |