1,071 bytes added
, 21:13, 15 July 2021
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{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 ==
<syntaxhighlight lang="lua">local data = mw.loadData('Module:Country adjective')
data.getCountryFromAdj[adjective]
</syntaxhighlight>
== Function and parameter list ==
{| class="wikitable"
|-
! scope="col" | Function
! scope="col" | Parameter
! scope="col" | Explanation
|-
! scope="row" | <code>getAdjFromCountry</code>
| <country name>
| Retrieves the country adjective from a country name.
|-
! scope="row" | <code>getCountryFromAdj</code>
| <country adjective>
| Retrieves the country name from a country adjective.
|}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Wikipedia modules]]
}}</includeonly>