Module:etymology languages/doc
This is the documentation page for Module:etymology languages
This module provides etymology-only languages. It has a separate data module, Module:etymology languages/data, which stores information for etymology-only language codes.
It exports several functions that behave similarly to the ones in Module:languages: getByCode
, getByCanonicalName
, and makeObject
. Etymology language objects returned by getByCode
, getByCanonicalName
, or makeObject
also have many methods that behave like the methods of a language object from Module:languages:
getAllNames
, getAncestors
, getCanonicalName
, getCategoryName
, getCode
, getOtherNames
, getRawData
, getType
, getWikidataItem
, getWikipediaArticle
, makeWikipediaLink
, and toJSON
. getParentCode
is a unique method (distinct from getAncestors
) that returns the parent
value from Module:etymology languages/data.