Difference between revisions of "Module:Country adjective/doc"
Jump to navigation
Jump to search
blackwiki>WOSlinker m (change source to syntaxhighlight) |
blackwiki>Gonnym m (→Usage) |
||
| Line 6: | Line 6: | ||
<syntaxhighlight lang="lua">local data = mw.loadData('Module:Country adjective') | <syntaxhighlight lang="lua">local data = mw.loadData('Module:Country adjective') | ||
data.getCountryFromAdj[adjective] | data.getCountryFromAdj[adjective] | ||
| − | </ | + | </syntaxhighlight> |
== Function and parameter list == | == Function and parameter list == | ||
Revision as of 01:31, 10 July 2020
| This Lua module is used on approximately 3,300 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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
local data = mw.loadData('Module:Country adjective')
data.getCountryFromAdj[adjective]
Function and parameter list
| 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. |