Module:Country adjective/doc
Appearance
![]() | This is a documentation subpage for Module:Country adjective. It may contain usage information, categories and other content that is not part of the original module page. |
![]() | This Lua module is used on approximately 3,200 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
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]local data = mw.loadData('Module:Country adjective')
data.getCountryFromAdj[adjective]
Function and parameter list
[edit]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. |