模組:Languages/data/3/z
在"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["zaa"] = {
"胡亞雷斯山薩波特克語",
12953989,
"omq-zap",
"Latn",
}
m["zab"] = {
"聖胡安格拉維亞薩波特克語",
5614751,
"omq-zpc",
"Latn",
}
m["zac"] = {
"奧科特蘭薩波特克語",
7076643,
"omq-zap",
"Latn",
}
m["zad"] = {
"卡霍諾斯薩波特克語",
5017997,
"omq-zpc",
"Latn",
}
m["zae"] = {
"亞雷尼薩波特克語",
12645368,
"omq-zap",
"Latn",
}
m["zaf"] = {
"阿約克斯科薩波特克語",
4831570,
"omq-zpc",
"Latn",
}
m["zag"] = {
"札加瓦語",
37007,
"ssa-sah",
"Latn", -- also Beria
}
m["zah"] = {
"Zangwal",
3441387,
"cdc-wst",
"Latn",
}
m["zai"] = {
"地峽薩波特克語",
56728,
"omq-zpc",
"Latn",
}
m["zaj"] = {
"Zaramo",
8066599,
"bnt-ruv",
"Latn",
}
m["zak"] = {
"Zanaki",
8066018,
"bnt-lok",
"Latn",
}
m["zal"] = {
"柔若語",
3616358,
"tbq-nus",
"Latn, Hani",
sort_key = {Hani = "Hani-sortkey"},
}
m["zam"] = {
"米亞瓦特蘭薩波特克語",
13541830,
"omq-zap",
"Latn",
}
m["zao"] = {
"奧索洛特佩克薩波特克語",
7116610,
"omq-zap",
"Latn",
}
m["zap"] = {
"薩波特克語",
13214,
"omq-zap",
"Latn",
}
m["zaq"] = {
"阿洛阿帕姆薩波特克語",
4734726,
"omq-zap",
"Latn",
}
m["zar"] = {
"林松薩波特克語",
7334628,
"omq-zap",
"Latn",
}
m["zas"] = {
"聖多明各阿爾巴拉達斯薩波特克語",
4709425,
"omq-zap",
"Latn",
}
m["zat"] = {
"塔巴薩波特克語",
7672849,
"omq-zap",
"Latn",
}
m["zau"] = {
"藏斯卡語",
771203,
"sit-lab",
"Tibt",
ancestors = "lbj",
translit = "Tibt-translit",
override_translit = true,
display_text = s["Tibt-displaytext"],
entry_name = s["Tibt-entryname"],
sort_key = "Tibt-sortkey",
}
m["zav"] = {
"亞查奇薩波特克語",
8050301,
"omq-zpc",
"Latn",
}
m["zaw"] = {
"米特拉薩波特克語",
3053288,
"omq-zpc",
"Latn",
}
m["zax"] = {
"薩達尼薩波特克語",
8042823,
"omq-zap",
"Latn",
}
m["zay"] = {
"Zayse-Zergulla",
673895,
"omv-eom",
"Latn",
}
m["zaz"] = {
"Zari",
3914398,
"cdc-wst",
"Latn",
}
m["zbt"] = {
"巴圖伊語",
16839143,
"poz-slb",
"Latn",
}
m["zca"] = {
"科亞特卡斯阿特拉斯薩波特克語",
5138603,
"omq-zap",
"Latn",
}
m["zdj"] = {
"大科摩羅語",
3114653,
"bnt-com",
"Latn",
sort_key = "bnt-com-sortkey",
}
m["zea"] = {
"澤蘭語",
237409,
"gmw-frk",
"Latn",
ancestors = "dum",
sort_key = {
from = {"^'([aeiouy].*)$"},
to = {"%1'"}
}
}
m["zeg"] = {
"Zenag",
12953345,
"poz-ocw",
"Latn",
}
m["zen"] = {
"澤納加語",
37005,
"ber",
"Latn",
}
m["zga"] = {
"Kinga",
11005332,
"bnt-bki",
"Latn",
}
m["zgh"] = {
"標準摩洛哥柏柏爾語",
7598268,
"ber",
"Tfng",
translit = "Tfng-translit",
}
m["zgr"] = {
"Magori",
3277370,
"poz-ocw",
"Latn",
}
m["zhb"] = {
"扎壩語",
56334,
"sit-qia",
}
m["zhi"] = {
"Zhire",
3914910,
"nic-plc",
"Latn",
}
m["zhn"] = {
"儂壯語",
7049385,
"tai-cen",
"Latn",
sort_key = {remove_diacritics = "%p"},
}
m["zhw"] = {
"Zhoa",
8070885,
"nic-rnw",
"Latn",
}
m["zia"] = {
"Zia",
3038636,
"ngf",
"Latn",
}
m["zib"] = {
"津巴布韋手語",
8072097,
"sgn",
}
m["zik"] = {
"Zimakani",
56740,
"ngf",
"Latn",
}
m["zil"] = {
"Zialo",
36991,
"dmn-msw",
"Latn",
}
m["zim"] = {
"Mesme",
56282,
"cdc-mas",
"Latn",
}
m["zin"] = {
"Zinza",
8072460,
"bnt-haj",
"Latn",
}
m["zir"] = {
"Ziriya",
3913943,
"nic-jer",
"Latn",
}
m["ziw"] = {
"Zigula",
37010,
"bnt-seu",
"Latn",
}
m["ziz"] = {
"Zizilivakan",
56300,
"cdc-cbm",
"Latn",
}
m["zka"] = {
"坎布拉瓦語",
6348011,
"poz-mun",
"Latn",
}
m["zkb"] = {
"科伊巴爾語",
949259,
"syd",
"Latn, Cyrl",
}
m["zkd"] = {
"卡杜語", -- The name is duplicated with Kadu languages in Africa.
54324451,
"sit-luu",
"Latn", -- and also unencoded Kadu script
}
m["zkg"] = {
"高句麗語",
706327,
"qfa-kor",
"Hani",
sort_key = "Hani-sortkey",
}
m["zkh"] = {
"花剌子模突厥語",
25502,
"trk-kar",
"Arab",
ancestors = "xqa",
}
m["zkk"] = {
"卡蘭卡瓦語",
3192947,
nil,
"Latn",
}
m["zko"] = {
"科特語",
34163,
"qfa-yso",
"Latn",
}
m["zkp"] = {
"聖保羅坎剛語",
7665661,
"sai-jee",
"Latn",
}
m["zkr"] = {
"扎話",
56996,
"sit-mdz",
"Latn, Hani",
sort_key = {Hani = "Hani-sortkey"},
}
m["zkt"] = {
"契丹語",
1064482,
"qfa-xgx",
"Kitl, Kits, Hani",
translit = {Kits = "zkt-translit"},
sort_key = {Hani = "Hani-sortkey"},
}
m["zku"] = {
"考爾納語",
6378899,
"aus-psw",
"Latn",
}
m["zkv"] = {
"克雷溫語",
6436902,
"urj-fin",
"Latn",
ancestors = "vot",
}
m["zkz"] = {
"可薩語",
1067986,
"trk",
"Orkh",
}
m["zma"] = {
"曼達語 (澳洲)",
18650060,
"aus-dal",
"Latn",
}
m["zmb"] = {
"津巴語",
8071960,
"bnt-lgb",
"Latn",
}
m["zmc"] = {
"馬爾加尼語",
10577017,
"aus-pam",
"Latn",
}
m["zmd"] = {
"馬里丹語",
10577273,
"aus-dal",
"Latn",
}
m["zme"] = {
"曼格爾語",
10576387,
nil,
"Latn",
}
m["zmf"] = {
"Mfinu",
35915,
"bnt-tek",
"Latn",
}
m["zmg"] = {
"Marti Ke",
10577823,
"aus-dal",
"Latn",
}
m["zmh"] = {
"馬科爾科爾語",
12636052,
"paa-bng",
"Latn",
}
m["zmi"] = {
"森美蘭馬來語",
3915909,
"poz-mly",
"Latn",
}
m["zmj"] = {
"馬里提亞賓語",
10577274,
"aus-dal",
"Latn",
}
m["zmk"] = {
"曼丹達尼語",
10576338,
"aus-pam",
"Latn",
}
m["zml"] = {
"Madngele",
10575155,
"aus-dal",
"Latn",
}
m["zmm"] = {
"馬里馬寧迪語",
10577424,
"aus-dal",
"Latn",
}
m["zmn"] = {
"姆邦韋語",
35928,
"bnt-kel",
"Latn",
}
m["zmo"] = {
"Molo",
15974357,
"sdv-eje",
"Latn",
}
m["zmp"] = {
"Mbuun",
106249400,
"bnt",
"Latn",
}
m["zmq"] = {
"Mituku",
6883590,
"bnt-mbe",
"Latn",
}
m["zmr"] = {
"馬拉農庫語",
6772792,
"aus-dal",
"Latn",
}
m["zms"] = {
"Mbesa",
6799676,
"bnt-ske",
"Latn",
}
m["zmt"] = {
"馬林加爾語",
10577443,
"aus-dal",
"Latn",
}
m["zmu"] = {
"穆魯瓦里語",
3915442,
"aus-pam",
"Latn",
}
m["zmv"] = {
"姆巴里曼-古丁馬語",
3915672,
"aus-pmn",
"Latn",
}
m["zmw"] = {
"Mbo (Congo)",
6799710,
"bnt-nya",
"Latn",
}
m["zmx"] = {
"Bomitaba",
35063,
"bnt-ngn",
"Latn",
}
m["zmy"] = {
"馬里耶迪語",
10577501,
"aus-dal",
"Latn",
}
m["zmz"] = {
"Mbandja",
3915310,
"bad",
"Latn",
}
m["zna"] = {
"Zan Gula",
863726,
"alv-bua",
"Latn",
}
m["zne"] = {
"贊德語",
35015,
"znd",
"Latn",
}
m["zng"] = {
"莽語",
720192,
"mkh-mng",
}
m["znk"] = {
"馬南卡利語",
6746906,
"aus-wdj",
"Latn",
}
m["zns"] = {
"Mangas",
3438780,
"cdc-wst",
"Latn",
}
m["zoc"] = {
"克派納拉索克語",
12954017,
"nai-miz",
"Latn",
}
m["zoh"] = {
"奇馬拉帕索克語",
5099289,
"nai-miz",
"Latn",
}
m["zom"] = {
"卓米語",
37011,
"tbq-kuk",
"Latn",
}
m["zoo"] = {
"亞松森-米斯特佩克薩波特克語",
4811888,
"omq-zap",
"Latn",
}
m["zoq"] = {
"塔巴斯科索克語",
323325,
"nai-miz",
"Latn",
}
m["zor"] = {
"拉永索克語",
12954015,
"nai-miz",
"Latn",
}
m["zos"] = {
"弗朗西斯科里昂索克語",
12954011,
"nai-miz",
"Latn",
}
m["zpa"] = {
"拉奇吉里薩波特克語",
6468403,
"omq-zap",
"Latn",
}
m["zpb"] = {
"亞烏特佩克薩波特克語",
7413392,
"omq-zap",
"Latn",
}
m["zpc"] = {
"喬亞潘薩波特克語",
5103425,
"omq-zap",
"Latn",
}
m["zpd"] = {
"東南伊斯特蘭薩波特克語",
8050392,
"omq-zap",
"Latn",
}
m["zpe"] = {
"佩塔帕薩波特克語",
7171675,
"omq-zap",
"Latn",
}
m["zpf"] = {
"聖佩德羅基亞托尼薩波特克語",
7271640,
"omq-zpc",
"Latn",
}
m["zpg"] = {
"格韋亞德洪堡薩波特克語",
13459953,
"omq-zap",
"Latn",
}
m["zph"] = {
"托托馬查潘薩波特克語",
7828390,
"omq-zap",
"Latn",
}
m["zpi"] = {
"聖瑪利亞基耶戈拉尼薩波特克語",
7271823,
"omq-zpc",
"Latn",
}
m["zpj"] = {
"基亞維庫薩斯薩波特克語",
7271642,
"omq-zap",
"Latn",
}
m["zpk"] = {
"特拉科盧利塔薩波特克語",
7810685,
"omq-zpc",
"Latn",
}
m["zpl"] = {
"拉奇西奧薩波特克語",
6468420,
"omq-zap",
"Latn",
}
m["zpm"] = {
"米斯特佩克薩波特克語",
7414598,
"omq-zpc",
"Latn",
}
m["zpn"] = {
"聖伊內斯亞切奇薩波特克語",
8050300,
"omq-zap",
"Latn",
}
m["zpo"] = {
"阿馬特蘭薩波特克語",
4740613,
"omq-zpc",
"Latn",
}
m["zpp"] = {
"阿爾托薩波特克語",
5350733,
"omq-zap",
"Latn",
}
m["zpq"] = {
"蘇戈喬薩波特克語",
8074100,
"omq-zpc",
"Latn",
}
m["zpr"] = {
"聖地亞哥薩尼卡薩波特克語",
8042924,
"omq-zap",
"Latn",
}
m["zps"] = {
"科亞特蘭薩波特克語",
7420514,
"omq-zap",
"Latn",
}
m["zpt"] = {
"聖比森特科亞特蘭薩波特克語",
13541831,
"omq-zap",
"Latn",
}
m["zpu"] = {
"亞拉拉格薩波特克語",
8047534,
"omq-zpc",
"Latn",
}
m["zpv"] = {
"奇奇卡潘薩波特克語",
5096050,
"omq-zap",
"Latn",
}
m["zpw"] = {
"薩尼薩薩波特克語",
8066220,
"omq-zpc",
"Latn",
}
m["zpx"] = {
"聖巴爾塔扎洛希查薩波特克語",
7413390,
"omq-zap",
"Latn",
}
m["zpy"] = {
"馬薩爾特佩克薩波特克語",
6798223,
"omq-zap",
"Latn",
}
m["zpz"] = {
"特斯梅盧坎薩波特克語",
7708357,
"omq-zpc",
"Latn",
}
m["zra"] = {
"伽耶語",
5528695,
"qfa-kor",
"Hani",
sort_key = "Hani-sortkey",
}
m["zrg"] = {
"米爾甘語",
6873206,
"inc-eas",
}
m["zrn"] = {
"Zirenkel",
3441365,
"cdc-est",
"Latn",
}
m["zro"] = {
"扎巴拉語",
10206,
"sai-zap",
"Latn",
}
m["zrs"] = {
"Mairasi",
3038645,
"paa-mai",
"Latn",
}
m["zsa"] = {
"Sarasira",
57333197,
"poz-ocw",
}
m["zsk"] = { -- attested?
"Kaskean",
6374586,
}
m["zsl"] = {
"贊比亞手語",
8065713,
"sgn",
}
m["zsr"] = {
"南林松薩波特克語",
12954000,
"omq-zpc",
"Latn",
}
m["zsu"] = {
"Sukurum",
57333741,
"poz-ocw",
}
m["zte"] = {
"埃洛特佩克薩波特克語",
5367223,
"omq-zap",
"Latn",
}
m["ztg"] = {
"薩那吉亞薩波特克語",
8042887,
"omq-zpc",
"Latn",
}
m["ztl"] = {
"聖地亞哥拉帕吉亞薩波特克語",
6488084,
"omq-zap",
"Latn",
}
m["ztm"] = {
"聖阿古斯丁米斯特佩克薩波特克語",
7413220,
"omq-zap",
"Latn",
}
m["ztn"] = {
"聖卡塔里納阿爾巴拉達斯薩波特克語",
7419277,
"omq-zap",
"Latn",
}
m["ztp"] = {
"洛希查薩波特克語",
6694268,
"omq-zap",
"Latn",
}
m["ztq"] = {
"基奧基塔尼-基耶里薩波特克語",
3574818,
"omq-zpc",
"Latn",
}
m["zts"] = {
"蒂爾基亞潘薩波特克語",
7802959,
"omq-zpc",
"Latn",
}
m["ztt"] = {
"特哈拉潘薩波特克語",
13510225,
"omq-zap",
"Latn",
}
m["ztu"] = {
"古伊拉薩波特克語",
5626813,
"omq-zap",
"Latn",
}
m["ztx"] = {
"薩奇拉薩波特克語",
8063390,
"omq-zap",
"Latn",
}
m["zty"] = {
"亞蒂薩波特克語",
3574815,
"omq-zpc",
"Latn",
}
m["zua"] = {
"Zeem",
3450131,
"cdc-wst",
"Latn",
}
m["zuh"] = {
"Tokano",
7813481,
"ngf",
"Latn",
}
m["zum"] = {
"孔扎里語",
36158,
"ira-swi",
"Arab",
ancestors = "pal",
}
m["zun"] = {
"祖尼語",
10188,
"qfa-iso",
"Latn",
}
m["zuy"] = {
"Zumaya",
56626,
"cdc-mas",
"Latn",
}
m["zwa"] = {
"扎伊語",
10195,
"sem-eth",
}
m["zyp"] = {
"Zyphe",
57004,
"tbq-kuk",
"Latn",
}
m["zza"] = {
"扎扎其語",
10199,
"ira-zgr",
"Latn",
dotted_dotless_i = true,
sort_key = "zza-sortkey",
wikimedia_codes = "diq",
}
m["zzj"] = {
"左江壯語",
13848149,
"tai-cen",
"Latn",
sort_key = {remove_diacritics = "%p"},
}
return m_lang.finalizeLanguageData(m_lang.addDefaultTypes(m, true))