Maps language codes to (canonical) language names. Used for Lua-free templates. Should be kept in sync with Module:languages, Module:etymology languages and Module:families, but not every language should be listed here; only those which are actually needed.
Default behaviour:
See the parameters section below for changing these.
Module:data consistency check shows no relevant errors.
|1=
|allow etym=
|allow family=
|is family=
1
if the code is for a language family; otherwise, it will behave normally. This is useful when used with the #ifeq
parser function.The list has been subdivided into switch tables based on the first letter; this is to prevent very large pages from hitting the preprocessor node count limit. Please note that this is case-sensitive, meaning (for example) that there are separate lists for codes beginning with e
and E
, which becomes relevant when adding alias codes for etymology-only languages.
|la=Latin
Etymology-only languages and language families may be listed, but have additional syntax. For example:
|la-med={{langname-lite/etymcode|<!-- -->Medieval Latin<!-- -->|<!-- -->Latin<!-- -->|{{{allow etym|}}}}}
|sla={{langname-lite/familycode|<!-- -->Slavic<!-- -->|{{{is family|}}}|{{{allow family|}}}}}
If you are adding aliases (alternative codes) for a language, you must duplicate the entry in the relevant list if it begins with a different letter to the main code, or else it won't work. For example, Medieval Latin has the main code la-med
, entered under the l
list (as per the example above), as well as the following entry under M
for its alias ML.
:
|ML.={{langname-lite/etymcode|<!-- -->Medieval Latin<!-- -->|<!-- -->Latin<!-- -->|{{{allow etym|}}}}}