සැකිල්ල:langname-lite/documentation
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:
- If an etymology-only language code is given, it will return the canonical name of the regular language which it is attached to.
- If a language family code is given, it will give an error saying that this is not allowed.
See the parameters section below for changing these.
Errors
සංස්කරණයThe following errors were detected by Module:data consistency check:
- Code:
abs
. Saw name: Ambonese මැලේ. Expected name: Ambonese Malay. - Code:
acw
. Saw name: Hijazi අරාබි. Expected name: Hijazi Arabic. - Code:
acy
. Saw name: Cypriot අරාබි. Expected name: Cypriot Arabic. - Code:
aeb
. Saw name: Tunisian අරාබි. Expected name: Tunisian Arabic. - Code:
afb
. Saw name: Gulf අරාබි. Expected name: Gulf Arabic. - Code:
ajp
. Saw name: South Levantine අරාබි. Expected name: South Levantine Arabic. - Code:
ang
. Saw name: Old ඉංග්රීසි. Expected name: පුරාතන ඉංග්රීසි. - Code:
apc
. Saw name: North Levantine අරාබි. Expected name: North Levantine Arabic. - Code:
ary
. Saw name: Moroccan අරාබි. Expected name: Moroccan Arabic. - Code:
arz
. Saw name: Egyptian අරාබි. Expected name: Egyptian Arabic. - Code:
ayl
. Saw name: Libyan අරාබි. Expected name: Libyan Arabic. - Code:
br
. Saw name: Breton. Expected name: බ්රෙටන්. - Code:
cmn-ear
. Saw name: Mandarin. Expected name: මැන්ඩරීන්. - Code:
cy
. Saw name: Welsh. Expected name: වේල්ස. - Code:
dra-okn
. Saw name: Old කන්නඩ. Expected name: Old Kannada. - Code:
dum
. Saw name: Middle ඕලන්ද. Expected name: Middle Dutch. - Code:
enm
. Saw name: Middle ඉංග්රීසි. Expected name: මධ්යකාලීන ඉංග්රීසි. - Code:
fr-CA
. Saw name: French. Expected name: ප්රංශ. - Code:
frk
. Saw name: Proto-West Germanic. Expected name: ප්රොටෝ-බටහිර ජර්මානු. - Code:
frm
. Saw name: Middle ප්රංශ. Expected name: මධ්යකාලීන ප්රංශ. - Code:
fro
. Saw name: Old ප්රංශ. Expected name: පුරාතන ප්රංශ. - Code:
fro-nor
. Saw name: Old French. Expected name: පුරාතන ප්රංශ. - Code:
gd
. Saw name: Scottish Gaelic. Expected name: ස්කොට්ස් ගේලික්. - Code:
gem
. Saw name: Germanic. Expected name: ජර්මානු. - Code:
gem-pro
. Saw name: Proto-Germanic. Expected name: ප්රොටෝ-ජර්මානු. - Code:
gkm
. Saw name: Ancient Greek. Expected name: පුරාතන ග්රීක. - Code:
gmh
. Saw name: Middle High ජර්මානු. Expected name: Middle High German. - Code:
gml
. Saw name: Middle Low ජර්මානු. Expected name: Middle Low German. - Code:
gmq-mno
. Saw name: Middle නෝර්වීජියානු. Expected name: Middle Norwegian. - Code:
gmq-oda
. Saw name: Old ඩෙන්මාර්ක. Expected name: Old Danish. - Code:
gmq-osw
. Saw name: Old ස්වීඩන්. Expected name: Old Swedish. - Code:
gmw-ecg
. Saw name: East Central ජර්මානු. Expected name: East Central German. - Code:
gmw-jdt
. Saw name: Jersey ඕලන්ද. Expected name: Jersey Dutch. - Code:
gmy
. Saw name: Mycenaean ග්රීක. Expected name: Mycenaean Greek. - Code:
goh
. Saw name: Old High ජර්මානු. Expected name: Old High German. - Code:
grk-mar
. Saw name: Mariupol ග්රීක. Expected name: Mariupol Greek. - Code:
gsw
. Saw name: Alemannic ජර්මානු. Expected name: Alemannic German. - Code:
gv
. Saw name: Manx. Expected name: මැන්ක්ස්. - Code:
idb
. Saw name: Indo-පෘතුගීසි. Expected name: Indo-Portuguese. - Code:
inc-ash
. Saw name: Ashokan ප්රාකෘත. Expected name: Ashokan Prakrit. - Code:
kaw
. Saw name: Old ජාවා. Expected name: Old Javanese. - Code:
kw
. Saw name: Cornish. Expected name: කෝනිෂ්. - Code:
kxd
. Saw name: Brunei මැලේ. Expected name: Brunei Malay. - Code:
ltc
. Saw name: Middle චීන. Expected name: Middle Chinese. - Code:
meo
. Saw name: Kedah මැලේ. Expected name: Kedah Malay. - Code:
mga
. Saw name: Middle අයිරිෂ්. Expected name: Middle Irish. - Code:
ms-cla
. Saw name: Malay. Expected name: මැලේ. - Code:
ms-old
. Saw name: Malay. Expected name: මැලේ. - Code:
nds
. Saw name: Low ජර්මානු. Expected name: Low German. - Code:
nds-de
. Saw name: German Low ජර්මානු. Expected name: German Low German. - Code:
nod
. Saw name: Northern තායි. Expected name: Northern Thai. - Code:
obr
. Saw name: Old බුරුම. Expected name: Old Burmese. - Code:
och
. Saw name: Old චීන. Expected name: Old Chinese. - Code:
odt
. Saw name: Old ඕලන්ද. Expected name: Old Dutch. - Code:
oge
. Saw name: Old ජෝර්ජියානු. Expected name: Old Georgian. - Code:
ohu
. Saw name: Old හංගේරියානු. Expected name: Old Hungarian. - Code:
ojp
. Saw name: Old ජපන්. Expected name: Old Japanese. - Code:
okm
. Saw name: Middle කොරියානු. Expected name: Middle Korean. - Code:
oko
. Saw name: Old කොරියානු. Expected name: Old Korean. - Code:
osp
. Saw name: Old ස්පාඤ්ඤ. Expected name: Old Spanish. - Code:
ota
. Saw name: Ottoman තුර්කි. Expected name: Ottoman Turkish. - Code:
pal
. Saw name: Middle පර්සියානු. Expected name: Middle Persian. - Code:
pdc
. Saw name: Pennsylvania ජර්මානු. Expected name: Pennsylvania German. - Code:
peo
. Saw name: Old පර්සියානු. Expected name: Old Persian. - Code:
rmg
. Saw name: Traveller නෝර්වීජියානු. Expected name: Traveller Norwegian. - Code:
roa-opt
. Saw name: Old Galician-පෘතුගීසි. Expected name: Old Galician-Portuguese. - Code:
ruo
. Saw name: Istro-රුමේනියානු. Expected name: Istro-Romanian. - Code:
ruq
. Saw name: Megleno-රුමේනියානු. Expected name: Megleno-Romanian. - Code:
sa-ved
. Saw name: Sanskrit. Expected name: සංස්කෘත. - Code:
sga
. Saw name: Old අයිරිෂ්. Expected name: Old Irish. - Code:
sit-pro
. Saw name: Proto-Sino-ටිබෙට්. Expected name: Proto-Sino-Tibetan. - Code:
sou
. Saw name: Southern තායි. Expected name: Southern Thai. - Code:
tbq-lob-pro
. Saw name: Proto-Lolo-බුරුම. Expected name: Proto-Lolo-Burmese. - Code:
trk-oat
. Saw name: Old Anatolian තුර්කි. Expected name: Old Anatolian Turkish. - Code:
xaa
. Saw name: Andalusian අරාබි. Expected name: Andalusian Arabic. - Code:
xcl
. Saw name: Old ආමේනියානු. Expected name: Old Armenian. - Code:
xno
. Saw name: Old French. Expected name: පුරාතන ප්රංශ. - Code:
zlw-ocs
. Saw name: Old චෙක්. Expected name: Old Czech. - Code:
zlw-opl
. Saw name: Old පෝලන්ත. Expected name: Old Polish.
Parameters
සංස්කරණය|1=
- Language code.
|allow etym=
- If this is set, the template will return the canonical names of etymology-only languages.
|allow family=
- If this is set, the template will return the canonical names of language families.
|is family=
- If this is set, the template will return
1
if the code is for a language family; otherwise, it will behave normally. This is useful when used with the#ifeq
parser function.
Editing the list
සංස්කරණය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:
- Etymology-only language:
|la-med={{langname-lite/etymcode|<!-- -->Medieval Latin<!-- -->|<!-- -->Latin<!-- -->|{{{allow etym|}}}}}
- The first name is that of the etymology-only language, and the second that of the regular language which it is attached to (usually the parent in Module:etymology languages/data, unless that is another etymology-only language, in which just follow the chain until you find a regular language).
- Language family:
|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|}}}}}