Jump to content

Module:Country adjective/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Warudo (talk | contribs) at 20:58, 29 August 2024 (Added the page to Category:Module documentation pages). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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.