模組:Languages/data/3/e
在"incategory ..."過濾器後添加搜索文字:
該模塊包含了語言代碼之定義和元數據。欲見其他相關資訊,請參見附录:語言列表。
此模塊不得直接用於其他模塊或模板。資料與數據應通過Module:languages獲取。
必填值
表中的每個項目必須包含以下索引字段:
1
- 該語言的「規範」名稱,舊版模塊中寫作
canonicalName
。這是維基詞典詞條和分類名稱中使用的名字。 2
- 該語言在維基數據的ID(以Q開頭)。這取代了舊的
wikipedia_article
屬性。若該語言在維基數據沒有對應的實體,可將其設為nil
。
選填值
3
- 該語言所屬的語系,請參見Wiktionary:語系。
屬性 entry_name
和 sort_key
用於替換文本;它們替換或刪除某些字符或字符集。其工作原理相似,且都是可選的。它們都可以是表,sort_key
可以是一個模塊的名稱,該模塊接收一個條目名並生成一個排序鍵(用於在類別頁面上對條目進行排序)。
if sort_key
is the name of a module, the module must contain a sortkey-generating function that is named makeSortKey
. This function must take the arguments text, lang, sc
, where text
is the page name (or other text in the language), lang
is the language code (not the language object), and sc
is the script code (not the script object). The returned value should always be a string, or there will be a module error in the Language:makeSortKey()
function.
If either one is a table, it must contain two tables inside it: one named from
and one named to
. These two tables are organised pairwise: each element in from
is a pattern to identify which characters in the term to replace, while the corresponding element in to
defines what to replace them with.
If the replacement is not present or if it is false
or nil
, it defaults to an empty replacement, meaning that the matching characters are removed altogether. This means that the from
list can be longer than the to
list, and an empty replacement will be assumed for any elements in from
that have no counterpart in to
.
The tables can contain literal characters, or the patterns (a type of regular expressions) that are used by the standard Scribunto mw.ustring.gsub
function. See the Scribunto reference manual for more information.
At the top of the module, there is a list of combining characters with names. These are provided for convenience and readability, as combining characters generally do not display properly inside the module code (although they do not affect the actual operation of the module).
entry_name
- Defines replacements to create the entry name from the displayed form of a term. This can be used to remove certain diacritical marks according to the customs or standard practice of the language. For example, it is used to remove accent marks from Russian words (
ру́сский
→русский
), or macrons from Latin or Old English words (ōs
→os
), as these are not used in the normal written form of these languages. This is used bymakeEntryName
in Module:languages. sort_key
- Defines replacements to create a category sort key from the page name. The purpose is to remove any characters that are ignored in sorting, and to replace similar characters with identical ones if the sorting rules for that language do not distinguish them. For example, in German, the characters "ä" and "a" are considered equivalent for sorting, and are both treated as "a". The page name is converted to lowercase before applying the replacements, so you should not add uppercase letters to the "from" lists. This is used by
makeSortKey
in Module:languages.
These are other optional values:
otherNames
- 該語言除了標準名稱外的所有名稱的表格。該表格不僅應包括該語言的同義詞,而且應包括指歸入同一類別的語言變體的名稱。例如,雖然佛蘭芒語不是荷蘭語的同義詞,但佛蘭芒語被認為是荷蘭語的「一部分」,因此該名稱被列入荷蘭語其中。
type
- 語言的類型(會影響它在Wiktionary上的處理方式)。可用的值包括:
regular
-這個值是默認值,所以不需要特別指定。這表示該語言的詞彙符合Wiktionary:收录标准,因此被允許放在主命名空間中。該語言可能也有重構的詞彙,則這些詞彙應被放在重構(Reconstructed)命名空間中,且必須在前面加「*」表示重構。(註:中文維基詞典暫無 Reconstructed 空間。)reconstructed
- 此語言不符合Wiktionary:收录标准,因此只允許在重構命名空間中使用。這類語言中的所有詞彙都是重建得到的,必須在前面加上「*」。appendix-constructed
- 這種語言已經通過驗證,但不符合對重構語言的額外要求(Wiktionary:收录标准#構建語言)。因此,其詞彙必須放在附錄(Appendix)命名空間中;又因為它們不是透過重建得到的,因此不應該在鏈接中加上「*」前綴。
scripts
- A list of script codes, see Wiktionary:Scripts. These represent all the scripts (writing systems) that this language uses in the real world, as well as the ones that Wiktionary uses. The scripts that are used most often on Wiktionary should be first in the list, as this will speed up script detection.
- Many templates and modules detect the script of text in a particular language using the
findBestScript
function in Module:scripts. This function goes down the list of scripts and counts how many characters in the text belong to each script. If all the characters belong to one script, that script will be returned; otherwise, the script with the most characters will be returned. Thus, script detection will be faster if the most frequently used scripts are first in the list. translit_module
- The name of a module that is used to generate transliterations of terms, without the Module: prefix. This module must export a function named
tr
that is defined as follows:tr(text, lang, sc)
- The three parameters are the text to be transliterated, the language code, and the script code. The function can ignore the language and script codes, but they are provided for cases when a language has more than one script, or when a single function is used to transliterate multiple languages sharing the same script.
ancestors
- A table listing the language codes of the direct ancestors of this language. For example, the ancestor of English is listed as
enm
(Middle English);ang
(Old English, the ancestor of Middle English),gem-pro
(Proto-Germanic, the ancestor of Old English), andine-pro
(Proto-Indo-European, the ancestor of Proto-Germanic) are not listed. - For most languages, only one ancestor code should be given, but multiple ancestors can be listed for pidgins, creoles and mixed languages.
- The ancestor language table should not be included if the language's direct ancestor is the proto-language of the family to which the language belongs. In such a case, if the family code has been provided, Module:languages will automatically add the proto-language as the language's ancestor. For example, Proto-Germanic (
gem-pro
) belongs to the Indo-European (ine
) family, and its direct ancestor is Proto-Indo-European (ine-pro
). Because Proto-Indo-European is the proto-language of the Indo-European languages, Proto-Germanic does not need anancestors
table; Proto-Indo-European will be automatically returned as its ancestor by thegetAncestors
function. wikimedia_codes
- A table listing the Wikimedia language codes that this language maps to. This is used to translate Wiktionary codes to Wikimedia codes, which are usually the same but there are a few languages where it is different. The language codes must be valid Wikimedia codes (as determined by the wiki software), and if they are not defined in one of the language data modules, they must be defined in Module:wikimedia languages/data.
wikipedia_article
- The name of the Wikipedia article for the language. Should normally only be supplied if the Wikidata id cannot be used.
local m_lang = require("Module:languages")
local m_langdata = require("Module:languages/data")
local u = require("Module:string utilities").char
local c = m_langdata.chars
local p = m_langdata.puaChars
local s = m_langdata.shared
local m = {}
m["ebg"] = {
"艾布格胡語",
35294,
"nic-lcr",
"Latn",
}
m["ebk"] = {
"東邦圖克語",
62664215,
"phi",
"Latn",
}
m["ebr"] = {
"埃布里語",
36644,
"alv-ptn",
"Latn",
}
m["ebu"] = {
"恩布語",
35318,
"bnt-kka",
"Latn",
}
m["ecr"] = {
"Eteocretan",
35461,
nil,
"Polyt",
sort_key = s["Grek-sortkey"],
}
m["ecs"] = {
"厄瓜多爾手語",
3436769,
"sgn",
"Latn", -- when documented
}
m["ecy"] = {
"Eteocypriot",
35309,
nil,
"Cprt",
}
m["eee"] = {
"誒話",
35386,
"qfa-mix",
"Hani, Latn",
sort_key = {Hani = "Hani-sortkey"},
}
m["efa"] = {
"埃法伊語",
3813297,
"nic-ief",
"Latn",
}
m["efe"] = {
"埃菲語",
56354,
"csu-mle",
"Latn",
}
m["efi"] = {
"埃菲克語",
35377,
"nic-ief",
"Latn",
}
m["ega"] = {
"埃加語",
3914927,
"alv",
"Latn",
}
m["egl"] = {
"艾米利亞語",
1057898,
"roa-git",
"Latn",
wikimedia_codes = "eml",
}
m["ego"] = {
"埃貢語",
35300,
"nic-pls",
"Latn",
}
m["egy"] = {
"埃及語",
50868,
"egx",
"Latn, Egyp, Egyh",
sort_key = {
remove_diacritics = "'%-%s",
from = {"ꜣ", "j", "y", "ꜥ", "w", "b", "p", "f", "m", "n", "r", "ḥ", "ḫ", "ẖ", "h", "z", "š", "s", "q", "k", "g", "ṯ", "t", "ḏ", "d", "%."},
to = {p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[13], p[14], p[15], p[12], p[16], p[18], p[17], p[19], p[20], p[21], p[23], p[22], p[25], p[24], p[26]}
},
}
m["ehu"] = {
"Ehueun",
3441392,
"alv-nwd",
"Latn",
}
m["eip"] = {
"Eipomek",
5349839,
"ngf",
"Latn",
}
m["eit"] = {
"Eitiep",
5350030,
"qfa-tor",
"Latn",
}
m["eiv"] = {
"Askopan",
56324,
"paa-nbo",
"Latn",
}
m["eja"] = {
"Ejamat",
6269820,
"alv-jfe",
"Latn",
}
m["eka"] = {
"艾卡朱克語",
35250,
"nic-eko",
"Latn",
}
m["eke"] = {
"Ekit",
3509628,
"nic-ief",
"Latn",
}
m["ekg"] = {
"伊卡利語",
5350305,
"ngf",
"Latn",
}
m["eki"] = {
"Eki",
5350418,
"nic-ief",
"Latn",
}
m["ekl"] = {
"科爾語",
6426945,
"mun",
"Latn",
}
m["ekm"] = {
"埃立普語",
12952414,
"nic-ymb",
"Latn",
}
m["eko"] = {
"科蒂語",
29930,
"bnt-mak",
"Latn",
}
m["ekp"] = {
"埃克佩耶語",
35254,
"alv-igb",
"Latn",
}
m["ekr"] = {
"Yace",
36901,
"alv-ido",
"Latn",
}
m["eky"] = {
"東克耶語",
25559417,
"kar",
"Kali",
}
m["ele"] = {
"厄勒皮語",
5359444,
"qfa-tor",
"Latn",
}
m["elh"] = {
"El Hugeirat",
5351410,
"nub-hil",
"Latn",
}
m["eli"] = {
"Nding",
36176,
"alv-tal",
"Latn",
}
m["elk"] = {
"厄爾克依語",
5364210,
"qfa-tor",
"Latn",
}
m["elm"] = {
"Eleme",
3914427,
"nic-ogo",
"Latn",
}
m["elo"] = {
"El Molo",
56719,
"cus-eas",
"Latn",
}
m["elu"] = {
"艾盧語",
3364594,
"poz-aay",
"Latn",
}
m["elx"] = {
"埃蘭語",
35470,
"qfa-iso",
"Xsux",
}
m["ema"] = {
"Emai",
35428,
"alv-eeo",
"Latn",
}
m["emb"] = {
"恩巴洛語",
5369424,
"poz",
"Latn",
}
m["eme"] = {
"Emerillon",
3588942,
"tup-gua",
"Latn",
}
m["emg"] = {
"東梅瓦杭語",
12952840,
"sit-kie",
"Deva",
}
m["emi"] = {
"穆紹-埃米勞語",
6943093,
"poz-stm",
"Latn",
}
m["emk"] = {
"Eastern Maninkakan",
11002130,
"dmn-mnk",
"Latn, Arab, Nkoo",
}
m["emm"] = {
"Mamulique",
3285082,
"nai-pak",
"Latn",
}
m["emn"] = {
"Eman",
5368975,
"nic-tvc",
"Latn",
}
m["emp"] = {
"Northern Emberá",
2391297,
"sai-chc",
"Latn",
}
m["ems"] = {
"阿魯提克語",
27992,
"ypk",
"Latn",
}
m["emu"] = {
"東穆里亞語",
12952883,
"dra-mur",
}
m["emw"] = {
"Emplawas",
5374265,
"poz-tim",
"Latn",
}
m["emx"] = {
"巴斯克羅姆語",
1122188,
"qfa-mix",
"Latn",
ancestors = "rom, eu",
}
m["emy"] = {
"古典馬雅語",
301355,
"myn",
"Latn, Maya",
}
m["ena"] = {
"Apali",
3504201,
"ngf-mad",
"Latn",
}
m["enb"] = {
"Markweeta",
56874,
"sdv-nma",
"Latn",
}
m["enc"] = {
"恩語",
3504110,
"qfa-buy",
"Latn",
}
m["end"] = {
"Ende",
2067656,
"poz-cet",
"Latn",
}
m["enf"] = {
"森林埃涅茨語",
30249597,
"syd",
"Cyrl",
}
m["enh"] = {
"凍原埃涅茨語",
25559411,
"syd",
"Cyrl",
}
m["enl"] = {
"Enlhet",
15462671,
"sai-mas",
"Latn",
}
m["enm"] = {
"中古英語",
36395,
"gmw-ang",
"Latn",
entry_name = {remove_diacritics = c.acute .. c.macron .. c.dotabove},
}
m["enn"] = {
"Engenni",
3915365,
"alv-dlt",
"Latn",
}
m["eno"] = {
"Enggano",
2669164,
"poz",
"Latn",
}
m["enq"] = {
"恩加語",
1143040,
"paa-eng",
"Latn",
}
m["enr"] = {
"Emem",
5370369,
"paa-pau",
}
m["enu"] = {
"峨努語",
5380858,
"tbq-bka",
}
m["env"] = {
"Enwan",
3438334,
"alv-yek",
"Latn",
}
m["enw"] = {
"Enwang",
11134434,
"nic-lcr",
"Latn",
}
m["enx"] = {
"Enxet",
15462609,
"sai-mas",
"Latn",
}
m["eot"] = {
"Eotile",
3915347,
"alv-ptn",
"Latn",
}
m["epi"] = {
"Epie",
35291,
"alv-dlt",
"Latn",
}
m["era"] = {
"Eravallan",
5385061,
"dra-tam",
}
m["erg"] = {
"Sie",
426254,
"poz-vns",
"Latn",
}
m["erh"] = {
"Eruwa",
3441244,
"alv-swd",
"Latn",
}
m["eri"] = {
"Ogea",
7079984,
"ngf-mad",
"Latn",
}
m["erk"] = {
"南埃法特語",
3449070,
"poz-vnc",
"Latn",
}
m["ero"] = {
"爾龔語",
56854,
"sit-rgy",
}
m["err"] = {
"Erre",
10488401,
"qfa-iso",
"Latn",
}
m["ers"] = {
"爾蘇語",
12952417,
"sit-qia",
"Latn", -- also Ersu Shaba
}
m["ert"] = {
"埃里泰語",
56376,
"paa-lkp",
"Latn",
}
m["erw"] = {
"Erokwanas",
5395296,
"poz-hce",
"Latn",
}
m["ese"] = {
"Ese Ejja",
2980381,
"sai-tac",
"Latn",
}
m["esh"] = {
"埃斯特哈爾迪語",
12952418,
"xme-ttc",
"fa-Arab, Latn",
ancestors = "xme-ttc-sou",
}
-- "esi" and "esk" moved to etymology-only per [[WT:LT]] and [[Wiktionary:Beer_parlour/2023/August#Issues_regarding_the_Inuit_languages]]
m["esl"] = {
"埃及手語",
5348443,
"sgn",
}
m["esm"] = {
"Esuma",
16927555,
"alv-kwa",
"Latn",
}
m["esn"] = {
"薩爾瓦多手語",
7406492,
"sgn",
"Latn", -- when documented
}
m["eso"] = {
"愛沙尼亞手語",
3196221,
"sgn",
"Latn", -- when documented
}
m["esq"] = {
"Esselen",
1294243,
"qfa-iso",
"Latn",
}
m["ess"] = {
"中西伯利亞尤皮克語",
27993,
"ypk",
"Cyrl",
}
m["esu"] = {
"中阿拉斯加尤皮克語",
21117,
"ypk",
"Latn",
}
m["esy"] = {
"埃斯卡亞語",
867086,
"art",
"Latn", -- also its own native script
}
m["etb"] = {
"Etebi",
11002851,
"nic-ief",
"Latn",
}
m["etc"] = {
"Etchemin",
5402493,
"alg-eas",
"Latn",
}
m["eth"] = {
"埃塞俄比亞手語",
3501903,
"sgn",
}
m["etn"] = {
"埃頓語 (萬那杜)",
3059362,
"poz-vnc",
"Latn",
}
m["eto"] = {
"埃頓語 (喀麥隆)",
35317,
"bnt-btb",
"Latn",
}
m["etr"] = {
"Edolo",
5340184,
"ngf",
"Latn",
}
m["ets"] = {
"Yekhee",
3915848,
"alv-yek",
"Latn",
}
m["ett"] = {
"伊特拉斯坎語",
35726,
"qfa-tyn",
"Ital",
translit = "Ital-translit",
}
m["etu"] = {
"Ejagham",
35296,
"nic-eko",
"Latn",
}
m["etx"] = {
"Eten",
3915392,
"nic-beo",
"Latn",
}
m["etz"] = {
"Semimi",
10950308,
"paa-mai",
"Latn",
}
m["eve"] = {
"鄂溫語",
29960,
"tuw-ewe",
"Cyrl, Latn",
translit = {Cyrl = "eve-translit"},
entry_name = {remove_diacritics = c.macron .. c.dotabove .. c.dotbelow},
sort_key = {
Cyrl = {
from = {
"ӫ", -- 2 chars
"ё", "ӈ", "ө" -- 1 char
},
to = {
"о" .. p[2],
"е" .. p[1], "н" .. p[1], "о" .. p[1]
},
},
},
}
m["evh"] = {
"Uvbie",
3441344,
"alv-swd",
"Latn",
}
m["evn"] = {
"鄂溫克語",
30004,
"tuw-ewe",
"Cyrl",
translit = "evn-translit",
entry_name = {remove_diacritics = c.macron .. c.dotabove .. c.dotbelow},
sort_key = {
from = {"ё", "ӈ"},
to = {"е" .. p[1], "н" .. p[1]}
},
}
m["ewo"] = {
"依汪都語",
35459,
"bnt-btb",
"Latn",
}
m["ext"] = {
"埃斯特雷馬杜拉語",
30007,
"roa-ibe",
"Latn",
}
m["eya"] = {
"埃雅克語",
27480,
"xnd",
"Latn",
}
m["eyo"] = {
"凱約語",
56856,
"sdv-nma",
"Latn",
}
m["eza"] = {
"Ezaa",
11921436,
"alv-igb",
"Latn",
ancestors = "izi",
}
m["eze"] = {
"Uzekwe",
3502244,
"nic-ucn",
"Latn",
}
return m_lang.finalizeLanguageData(m_lang.addDefaultTypes(m, true))