模組:Languages/data/3/h
在"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["haa"] = {
"汗語",
28272,
"ath-nor",
"Latn",
}
m["hab"] = {
"河內手語",
12632107,
"sgn",
"Latn", -- when documented
}
m["hac"] = {
"古拉尼語",
33733,
"ira-zgr",
"ku-Arab",
translit = "ckb-translit",
}
m["had"] = {
"哈塔姆語",
56825,
"paa-wpa",
}
m["haf"] = {
"海防手語",
39868240,
"sgn",
}
m["hag"] = {
"漢加語",
35426,
"nic-dag",
"Latn",
}
m["hah"] = {
"哈洪語",
3125730,
"poz-ocw",
"Latn",
}
m["hai"] = {
"海達語",
33303,
"qfa-iso",
"Latn",
}
m["haj"] = {
"哈瓊語",
3350576,
"qfa-mix",
"as-Beng, Latn",
ancestors = "tbq-pro, inc-oas, inc-obn",
}
m["hak"] = {
"客家語",
33375,
"zhx",
"Hants",
ancestors = "ltc",
generate_forms = "zh-generateforms",
sort_key = "Hani-sortkey",
}
m["hal"] = {
"哈朗語",
56307,
"mkh",
"Latn",
}
m["ham"] = {
"赫瓦語",
5748345,
"paa-spk",
}
m["hao"] = {
"哈科語",
3125871,
"poz-ocw",
"Latn",
}
m["hap"] = {
"胡普拉語",
5946223,
"ngf",
}
m["har"] = {
"哈勒爾語",
33626,
"sem-eth",
"Ethi",
translit = "Ethi-translit",
}
m["has"] = {
"海斯拉語",
3107399,
"wak",
}
m["hav"] = {
"哈武語",
5684097,
"bnt-shh",
"Latn",
}
m["haw"] = {
"夏威夷語",
33569,
"poz-pep",
"Latn",
display_text = {
from = {"‘"},
to = {"ʻ"}
},
sort_key = {remove_diacritics = c.macron},
standardChars = "AaĀāEeĒēIiĪīOoŌōUuŪūHhKkLlMmNnPpWwʻ" .. c.punc,
}
m["hax"] = {
"南海達語",
12953543,
"qfa-iso",
ancestors = "hai",
}
m["hay"] = {
"哈雅語",
35756,
"bnt-haj",
}
m["hba"] = {
"Hamba",
11028905,
"bnt-tet",
}
m["hbb"] = {
"哈巴語",
56290,
"cdc-cbm",
}
m["hbn"] = {
"赫班語",
35523,
"alv-hei",
}
m["hbu"] = {
"哈布語",
1567033,
"poz-cet",
"Latn",
}
m["hca"] = {
"安達曼克里奧爾印地語",
7599417,
"crp",
ancestors = "hi, bn, ta",
}
m["hch"] = {
"惠喬爾語",
35575,
"azc",
"Latn",
}
m["hdn"] = {
"北海達語",
20054484,
"qfa-iso",
ancestors = "hai",
}
m["hds"] = {
"洪都拉斯手語",
3915496,
"sgn",
"Latn", -- when documented
}
m["hdy"] = {
"哈迪亞語",
56613,
"cus-hec",
}
m["hea"] = {
"北部黔東苗語",
3138832,
"hmn",
}
m["hed"] = {
"Herdé",
56253,
"cdc-mas",
}
m["heg"] = {
"赫隆語",
35432,
"poz-tim",
"Latn",
}
m["heh"] = {
"赫赫語",
3129390,
"bnt-bki",
"Latn",
}
m["hei"] = {
"海爾蘇克語",
5699507,
"wak",
"Latn",
}
m["hem"] = {
"Hemba",
5711209,
"bnt-lbn",
}
m["hgm"] = {
"海奧姆語",
4494781,
"khi-khk",
"Latn",
}
m["hgw"] = {
"海格威語",
5639108,
"poz-ocw",
"Latn",
}
m["hhi"] = {
"Hoia Hoia",
5877767,
"ngf",
}
m["hhr"] = {
"科拉克語",
11010783,
"alv-jfe",
}
m["hhy"] = {
"Hoyahoya",
15633149,
"ngf",
}
m["hia"] = {
"臘芒語",
35700,
"cdc-cbm",
"Latn",
}
m["hib"] = {
"Hibito",
3135164,
}
m["hid"] = {
"希達沙語",
3135234,
"sio-mor",
"Latn",
}
m["hif"] = {
"斐濟印地語",
46728,
"inc-hie",
"Latn",
ancestors = "awa",
}
m["hig"] = {
"卡姆威語",
56271,
"cdc-cbm",
}
m["hih"] = {
"帕莫蘇語",
12953011,
"ngf-mad",
}
m["hii"] = {
"欣杜里語",
5766763,
"him",
}
m["hij"] = {
"希朱克語",
35274,
"bnt-bsa",
}
m["hik"] = {
"Seit-Kaitetu",
7446989,
"poz-cma",
}
m["hil"] = {
"希利蓋農語",
35978,
"phi",
"Latn",
entry_name = {Latn = {remove_diacritics = c.grave .. c.acute .. c.circ}},
standardChars = {
Latn = "AaBbKkDdEeGgHhIiLlMmNnOoPpRrSsTtUuWwYy",
c.punc
},
sort_key = {
Latn = "tl-sortkey"
},
}
m["hio"] = {
"Tshwa",
963636,
"khi-kal",
}
m["hir"] = {
"Himarimã",
5765127,
}
m["hit"] = {
"赫梯語",
35668,
"ine-ana",
"Xsux",
}
m["hiw"] = {
"休語",
3138713,
"poz-vnn",
"Latn",
}
m["hix"] = {
"希卡利亞納語",
56522,
"sai-prk",
"Latn",
}
m["hji"] = {
"Haji",
5639933,
"poz-mly",
}
m["hka"] = {
"Kahe",
3892562,
"bnt-chg",
"Latn",
}
m["hke"] = {
"Hunde",
3065432,
"bnt-shh",
"Latn",
}
m["hkh"] = {
"波加利語",
105198619,
"inc-kas",
}
m["hkk"] = {
"Hunjara-Kaina Ke",
63213931,
"ngf",
}
m["hkn"] = {
"梅勒-卡翁語",
19059577,
"mkh-ban",
}
m["hks"] = {
"香港手語",
17038844,
"sgn",
}
m["hla"] = {
"哈利亞語",
3125959,
"poz-ocw",
"Latn",
}
m["hlb"] = {
"哈爾比語",
3695692,
"inc-hal",
"Deva, Orya",
}
m["hld"] = {
"端語",
3914632,
"mkh-ban",
}
m["hle"] = {
"山蘇語",
5873537,
"tbq-llo",
}
m["hlt"] = {
"巴杜比語",
12952942,
"tbq-kuk",
}
m["hma"] = {
"南部麻山苗語",
12953560,
"hmn",
"Latn",
}
m["hmb"] = {
"Humburi Senni",
35486,
"son",
}
m["hmc"] = {
"中部惠水苗語",
12953558,
"hmn",
}
m["hmd"] = {
"滇東北苗語",
1108934,
"hmn",
"Latn, Plrd",
}
m["hme"] = {
"東部惠水苗語",
12953559,
"hmn",
}
m["hmf"] = {
"Hmong Don",
22911602,
"hmn",
}
m["hmg"] = {
"西南貴陽苗語",
27478542,
"hmn",
}
m["hmh"] = {
"西南惠水苗語",
12953565,
"hmn",
}
m["hmi"] = {
"北部惠水苗語",
27434946,
"hmn",
}
m["hmj"] = {
"𱎼家語",
11251864,
"hmn",
}
m["hmk"] = {
"濊貊語",
8050724,
"qfa-kor",
"Hani",
sort_key = "Hani-sortkey",
}
m["hml"] = {
"羅泊河苗語",
14468943,
"hmn",
}
m["hmm"] = {
"中部麻山苗語",
12953561,
"hmn",
}
m["hmp"] = {
"北部麻山苗語",
12953564,
"hmn",
}
m["hmq"] = {
"東部黔東苗語",
27431369,
"hmn",
}
m["hmr"] = {
"赫馬爾語",
2992841,
"tbq-kuk",
ancestors = "lus",
}
m["hms"] = {
"南部黔東苗語",
12953562,
"hmn",
}
m["hmt"] = {
"漢泰語",
5646436,
"ngf",
}
m["hmu"] = {
"哈馬普語",
12952484,
"qfa-tap",
}
m["hmv"] = {
"Hmong Dô",
22911598,
"hmn",
}
m["hmw"] = {
"西部麻山苗語",
12953563,
"hmn",
}
m["hmy"] = {
"南部貴陽苗語",
12953553,
"hmn",
}
m["hmz"] = {
"漢苗語",
25559603,
"hmn",
}
m["hna"] = {
"Mina",
56532,
"cdc-cbm",
}
m["hnd"] = {
"南辛德科語",
382273,
"inc-pan",
ancestors = "lah",
}
m["hne"] = {
"恰蒂斯加爾語",
33158,
"inc-hie",
"Deva",
ancestors = "inc-oaw",
translit = "hi-translit"
}
m["hnh"] = {
"阿尼語",
3832982,
"khi-kal",
"Latn",
}
m["hni"] = {
"哈尼語",
56516,
"tbq-han",
}
m["hnj"] = {
"青苗語",
3138831,
"hmn",
"Latn, Hmng, Hmnp",
}
m["hnm"] = {
"海南話",
934541,
"zhx-nan",
"Hants",
generate_forms = "zh-generateforms",
sort_key = "Hani-sortkey",
}
m["hnn"] = {
"哈努諾語",
35435,
"phi",
"Hano, Latn",
translit = {Hano = "hnn-translit"},
override_translit = true,
entry_name = {Latn = {remove_diacritics = c.grave .. c.acute .. c.circ}},
standardChars = {
Latn = "AaBbKkDdEeGgHhIiLlMmNnOoPpRrSsTtUuWwYy",
c.punc
},
sort_key = {
Latn = "tl-sortkey",
},
}
m["hno"] = {
"北辛德科語",
6346358,
"inc-pan",
"Arab",
ancestors = "lah",
}
m["hns"] = {
"加勒比印度斯坦語",
1843468,
"inc", -- "crp"?
ancestors = "bho, awa",
}
m["hnu"] = {
"洪語",
12632753,
"mkh-vie",
}
m["hoa"] = {
"華瓦語",
3138887,
"poz-ocw",
"Latn",
}
m["hob"] = {
"南島馬里語",
6760941,
"poz-ocw",
"Latn",
}
m["hoc"] = {
"霍語",
33270,
"mun",
"Wara, Orya, Deva, Latn",
}
m["hod"] = {
"Holma",
56331,
"cdc-cbm",
"Latn",
}
m["hoe"] = {
"霍羅姆語",
3914008,
"nic-ple",
"Latn",
}
m["hoh"] = {
"Hobyót",
33299,
"sem-sar",
"Arab, Latn",
}
m["hoi"] = {
"霍利丘克語",
28508,
"ath-nor",
"Latn",
}
m["hoj"] = {
"Hadothi",
33227,
"raj",
"Deva",
translit = "hi-translit",
}
m["hol"] = {
"Holu",
4121133,
"bnt-pen",
"Latn",
}
m["hom"] = {
"Homa",
3449953,
"bnt-boa",
"Latn",
}
m["hoo"] = {
"Holoholo",
3139484,
"bnt-tkm",
"Latn",
}
m["hop"] = {
"霍皮語",
56421,
"azc",
"Latn",
}
m["hor"] = {
"Horo",
641748,
"csu-sar",
}
m["hos"] = {
"胡志明市手語",
16111971,
"sgn",
"Latn", -- when documented
}
m["hot"] = {
"Hote",
12632404,
"poz-ocw",
"Latn",
}
m["hov"] = {
"霍汪甘語",
5917269,
"poz",
}
m["how"] = {
"豪尼語",
56842,
"tbq-han",
}
m["hoy"] = {
"霍里雅語",
5880707,
"dra-kan",
}
m["hoz"] = {
"霍卓語",
5923010,
"omv-mao",
}
m["hpo"] = {
"Hpon",
5923277,
"tbq-brm",
}
m["hps"] = {
"夏威夷皮欽手語",
33358,
"sgn",
"Latn", -- when documented
}
m["hra"] = {
"赫朗科爾語",
5923435,
"tbq-kuk",
}
m["hrc"] = {
"Niwer Mil",
30323994,
"poz-oce",
"Latn",
}
m["hre"] = {
"赫耶語",
3915794,
"mkh-nbn",
}
m["hrk"] = {
"哈魯庫語",
5675762,
"poz-cma",
}
m["hrm"] = {
"角苗語",
63213949,
"hmn",
}
m["hro"] = {
"赫雷語",
3127568,
"cmc",
"Latn",
}
m["hrp"] = {
"恩希爾皮語",
32571318,
"aus-kar",
}
m["hrt"] = {
"赫特文語",
33290,
"sem-nna",
"Latn",
}
m["hru"] = {
"赫魯索語",
5923933,
"sit-hrs",
}
m["hrw"] = {
"Warwar Feni",
56704265,
"poz-oce",
"Latn",
}
m["hrx"] = {
"漢斯立克語",
304049,
"gmw-hgm",
"Latn",
ancestors = "gmw-cfr",
}
m["hrz"] = {
"哈爾札尼語",
56464,
"xme-ttc",
ancestors = "xme-ttc-nor",
}
m["hsb"] = {
"上索布語",
13248,
"wen",
"Latn",
sort_key = s["wen-sortkey"],
}
m["hsh"] = {
"匈牙利手語",
13636869,
"sgn",
"Latn", -- when documented
}
m["hsl"] = {
"豪薩手語",
3915462,
"sgn",
"Latn", -- when documented
}
m["hsn"] = {
"湘語",
13220,
"zhx",
"Hants",
ancestors = "ltc",
generate_forms = "zh-generateforms",
translit = "zh-translit",
sort_key = "Hani-sortkey",
}
m["hss"] = {
"哈爾蘇西語",
33423,
"sem-sar",
"Arab, Latn",
}
m["hti"] = {
"Hoti",
5912372,
"poz-cma",
"Latn",
}
m["hto"] = {
"Minica Huitoto",
948514,
"sai-wit",
"Latn",
}
m["hts"] = {
"哈扎語",
33411,
"qfa-iso",
"Latn",
}
m["htu"] = {
"希圖語",
5872700,
"poz-cma",
"Latn",
}
m["hub"] = {
"關必沙語",
1526037,
"sai-jiv",
"Latn",
}
m["huc"] = {
"霍安語",
2053913,
"khi-kxa",
"Latn",
}
m["hud"] = {
"胡奧盧語",
12952504,
"poz-cma",
"Latn",
}
m["huf"] = {
"胡梅內語",
11732231,
"ngf",
"Latn",
}
m["hug"] = {
"胡阿齊派爾語",
3446617,
"sai-har",
"Latn",
}
m["huh"] = {
"維利切語",
35531,
"sai-ara",
"Latn",
}
m["hui"] = {
"胡利語",
3125121,
"paa-eng",
"Latn",
}
m["huj"] = {
"北部貴陽苗語",
12953554,
"hmn",
}
m["huk"] = {
"胡隆語",
12952505,
"poz-cet",
}
m["hul"] = {
"Hula",
6382179,
"poz-ocw",
"Latn",
}
m["hum"] = {
"洪加納語",
10975396,
"bnt-yak",
}
m["huo"] = {
"戶語",
3141783,
"mkh-pal",
}
m["hup"] = {
"胡帕語",
28058,
"ath-pco",
"Latn",
}
m["huq"] = {
"回輝語",
34133,
"cmc",
}
m["hur"] = {
"哈爾魁梅林語",
35388,
"sal",
"Latn",
}
m["hus"] = {
"瓦斯特克語",
35573,
"myn",
"Latn",
}
m["huu"] = {
"穆魯伊維托托語",
2640935,
"sai-wit",
"Latn",
}
m["huv"] = {
"華韋語",
12954031,
"qfa-iso",
"Latn",
}
m["huw"] = {
"胡庫米納語",
3142988,
"poz-cma",
"Latn",
}
m["hux"] = {
"努波伊維托托語",
56333,
"sai-wit",
"Latn",
}
m["huy"] = {
"胡老拉語",
33426,
"sem-nna",
}
m["huz"] = {
"洪濟布語",
56564,
"cau-ets",
"Cyrl",
translit = "huz-translit",
display_text = {Cyrl = s["cau-Cyrl-displaytext"]},
entry_name = {Cyrl = s["cau-Cyrl-entryname"]},
}
m["hvc"] = {
"海地巫毒文化語",
3504239,
"crp",
"Latn",
}
m["hvk"] = {
"哈韋克語",
5683513,
"poz-cln",
"Latn",
}
m["hvn"] = {
"哈烏語",
3128792,
"poz-cet",
"Latn",
}
m["hwa"] = {
"韋恩語",
3914887,
"kro-ekr",
"Latn",
}
m["hwc"] = {
"夏威夷英語",
35602,
"crp",
"Latn",
}
m["hwo"] = {
"華納語",
56498,
"cdc-cbm",
"Latn",
}
m["hya"] = {
"希亞語",
56798,
"cdc-cbm",
"Latn",
}
return m_lang.finalizeLanguageData(m_lang.addDefaultTypes(m, true))