Jump to content

Module:Country adjective/doc

From Simple English Wikipedia, the free encyclopedia
Revision as of 19:48, 21 January 2020 by Brantmeierz (talk | changes) (Capitalization)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Country adjective


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 the page in the English Wikipedia List of adjectival and demonymic forms for countries and nations.

local data = mw.loadData('Module:Country adjective')
data.getCountryFromAdj[adjective]

Function and parameter list

[change 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.