模組:Languages/data/3/u
在"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["uam"] = {
"Uamué",
3441418,
}
m["uan"] = {
"寬語",
6441085,
}
m["uar"] = {
"Tairuma",
7676386,
"ngf",
}
m["uba"] = {
"Ubang",
3914467,
"nic-ben",
"Latn",
}
m["ubi"] = {
"Ubi",
56264,
}
m["ubl"] = {
"布希農比科爾語",
18664494,
"phi",
"Latn",
}
m["ubr"] = {
"Ubir",
3547642,
"poz-ocw",
"Latn",
}
m["ubu"] = {
"考蓋爾語",
12953245,
"ngf",
}
m["uby"] = {
"尤比克語",
36931,
"cau-nwc",
"Cyrl, Latn",
translit = "uby-translit",
override_translit = true,
display_text = {Cyrl = s["cau-Cyrl-displaytext"]},
entry_name = {
Cyrl = s["cau-Cyrl-entryname"],
Latn = s["cau-Latn-entryname"],
},
sort_key = "uby-sortkey",
}
m["uda"] = {
"烏達語",
11011951,
"nic-lcr",
}
m["ude"] = {
"烏德蓋語",
13235,
"tuw-udg",
"Cyrl",
}
m["udg"] = {
"Muduga",
16886762,
"dra-imd",
"Mlym",
translit = "ml-translit",
}
m["udi"] = {
"烏迪語",
36867,
"cau-esm",
"Cyrl, Latn, Armn, Geor",
ancestors = "xag",
translit = {
Cyrl = "udi-translit",
Armn = "Armn-translit",
Geor = "Geor-translit",
},
override_translit = true,
display_text = {Cyrl = s["cau-Cyrl-displaytext"]},
entry_name = {
Cyrl = s["cau-Cyrl-entryname"],
Latn = s["cau-Latn-entryname"],
},
}
m["udj"] = {
"烏吉爾語",
14916906,
"poz-cet",
}
m["udl"] = {
"烏爾德美語",
3515078,
"cdc-cbm",
}
m["udm"] = {
"烏得穆爾特語",
13238,
"urj-prm",
"Cyrl",
translit = "udm-translit",
override_translit = true,
sort_key = "udm-sortkey",
}
m["udu"] = {
"烏督語",
3182573,
"ssa-kom",
}
m["ues"] = {
"基奧哥語",
18343036,
}
m["ufi"] = {
"烏菲姆語",
7877531,
"ngf-fin",
"Latn",
}
m["uga"] = {
"烏加里特語",
36928,
"sem-nwe",
"Ugar",
translit = "uga-translit",
}
m["ugb"] = {
"Kuku-Ugbanh",
10549854,
}
m["uge"] = {
"烏格勒語",
966303,
"poz-ocw",
}
m["ugn"] = {
"烏干達手語",
7877677,
"sgn",
}
m["ugo"] = {
"貢語 (泰國)",
3448919,
"tbq-lob",
"Thai",
sort_key = "Thai-sortkey",
}
m["ugy"] = {
"烏拉圭手語",
7901470,
"sgn",
}
m["uha"] = {
"Uhami",
3913328,
"alv-nwd",
"Latn",
}
m["uhn"] = {
"達馬爾語",
4748974,
}
m["uis"] = {
"維薩伊語",
7878123,
"paa-sbo",
}
m["uiv"] = {
"伊意維語",
11128658,
"nic-tvc",
"Latn",
}
m["uji"] = {
"坦吉吉里語",
3914939,
"nic-pls",
}
m["uka"] = {
"Kaburi",
6344482,
}
m["ukg"] = {
"Ukuriguma",
7878623,
"ngf-mad",
}
m["ukh"] = {
"烏奎約語",
36623,
"bnt-bek",
}
m["ukk"] = {
"Muak Sa-aak",
23807993,
"mkh-pal",
}
m["ukl"] = {
"烏克蘭手語",
10322106,
"sgn",
}
m["ukp"] = {
"Ukpe-Bayobiri",
3914470,
"nic-ben",
"Latn",
}
m["ukq"] = {
"烏夸語",
7878635,
"nic-ief",
}
m["uks"] = {
"Kaapor Sign Language",
3322101,
"sgn",
}
m["uku"] = {
"Ukue",
3913387,
"alv-nwd",
"Latn",
}
m["ukw"] = {
"Ukwuani-Aboh-Ndoni",
36636,
"alv",
"Latn",
}
m["uky"] = {
"Kuuk Yak",
6448719,
"aus-psw",
"Latn",
}
m["ula"] = {
"豐瓦語",
5509187,
"nic-shi",
}
m["ulb"] = {
"奧盧庫米語",
36722,
"alv-yor",
"Latn",
entry_name = {Latn = {remove_diacritics = c.grave .. c.acute .. c.macron}},
sort_key = {
from = {"ch", "ẹ", "gb", "gh", "gw", "kp", "kw", "ọ", "ṣ"},
to = {"c" .. p[1], "e" .. p[1], "g" .. p[1], "g" .. p[2], "g" .. p[3], "k" .. p[1], "k" .. p[2], "o" .. p[1], "s" .. p[1]}
},
}
m["ulc"] = {
"烏爾奇語",
13239,
"tuw-nan",
"Cyrl, Latn",
entry_name = {
from = {"['’]"},
to = {"ʼ"}
},
sort_key = "ulc-sortkey",
}
m["ule"] = {
"盧萊語",
12635889,
nil,
"Latn",
}
m["ulf"] = {
"Afra",
4477735,
"paa-pau",
}
m["uli"] = {
"烏利蒂語",
36842,
"poz-mic",
}
m["ulk"] = {
"梅里阿姆語",
788174,
"ngf",
"Latn",
}
m["ull"] = {
"Ullatan",
8761579,
"dra-mal",
}
m["ulm"] = {
"烏魯曼答語",
3501892,
}
m["uln"] = {
"拉包爾克里奧爾德語",
13244,
"crp",
"Latn",
ancestors = "de",
}
m["ulu"] = {
"Uma' Lung",
3548186,
"poz-swa",
}
m["ulw"] = {
"烏爾瓦語",
2405552,
}
m["uma"] = {
"烏馬蒂拉語",
12953952,
"nai-shp",
"Latn",
ancestors = "nai-spt",
}
m["umb"] = {
"姆班杜語",
36983,
"bnt",
"Latn",
}
m["umc"] = {
"馬魯西尼語",
36110,
"itc-sbl",
"Latn, Ital",
}
m["umd"] = {
"Umbindhamu",
7881346,
"aus-pmn",
}
m["umg"] = {
"Umbuygamu",
3915677,
"aus-pmn",
}
m["umi"] = {
"烏基特語",
7878321,
}
m["umm"] = {
"Umon",
3915448,
"nic-ucn",
"Latn",
}
m["umn"] = {
"Makyan Naga",
6740516,
"sit-kch",
}
m["umo"] = {
"烏莫蒂納語",
7881740,
"sai-mje",
}
m["ump"] = {
"翁皮拉語",
12953954,
"aus-pmn",
"Latn",
}
m["umr"] = {
"Umbugarla",
2980392,
}
m["ums"] = {
"本道語",
7162371,
"poz-tot",
}
m["umu"] = {
"門西語",
56547,
"del",
"Latn",
entry_name = {remove_diacritics = c.acute .. c.breve},
}
m["una"] = {
"北瓦圖特語",
15887898,
"poz-ocw",
"Latn",
}
m["und"] = {
"待定語言",
22282914,
"qfa-not",
"All",
}
m["une"] = {
"Uneme",
3913357,
"alv-yek",
"Latn",
}
m["ung"] = {
"Ngarinyin",
1284885,
"aus-wor",
"Latn",
}
m["unk"] = {
"Enawené-Nawé",
3307184,
"awd",
"Latn",
}
m["unm"] = {
"烏納米語",
3549180,
"del",
"Latn",
--[===[Don't strip diacritics from entry names, per [[WT:Grease pit/2020/May]].
entry_name = {remove_diacritics = c.grave .. c.diaer},]===]
}
m["unn"] = {
"Kurnai",
61676882,
"aus-pam",
"Latn",
}
m["unr"] = {
"蒙達里語",
3327828,
"mun",
"Nagm, Deva, Onao", -- Onao is used by Bhumij, which may be a separate language; remove if it gets split out
translit = "hi-translit", -- for now
}
m["unu"] = {
"Unubahe",
7897776,
}
m["unx"] = {
"Munda",
36264959,
"mun",
"Latn",
}
m["unz"] = {
"溫德-凱利語",
12953596,
"poz-kal",
"Latn",
}
m["uok"] = {
"Uokha",
3441216,
"alv-edo",
"Latn",
}
m["uon"] = {
"龜崙語",
11182000,
"map",
"Latn",
}
m["upi"] = {
"Umeda",
7881465,
"paa-brd",
}
m["upv"] = {
"Uripiv-Wala-Rano-Atchin",
13249,
"poz-vnc",
"Latn",
}
m["ura"] = {
"烏拉里納語",
1579560,
}
m["urb"] = {
"烏魯布-卡波爾語",
13893353,
"tup-gua",
"Latn",
}
m["urc"] = {
"Urningangg",
10710522,
}
m["ure"] = {
"烏魯語",
2992892,
}
m["urf"] = {
"Uradhi",
3915680,
"aus-pam",
"Latn",
}
m["urg"] = {
"Urigina",
7900603,
"ngf",
"Latn",
}
m["urh"] = {
"烏爾霍博語",
36663,
"alv-swd",
"Latn",
}
m["uri"] = {
"烏里姆語",
7900609,
"qfa-tor",
"Latn",
}
m["urk"] = {
"奧朗勞特語",
7899573,
"poz-mly",
"Thai",
sort_key = "Thai-sortkey",
}
m["url"] = {
"烏拉利語",
7899602,
"dra-kod",
"Knda",
}
m["urm"] = {
"Urapmin",
7899769,
"ngf-okk",
}
m["urn"] = {
"Uruangnirin",
7901389,
"poz-cet",
"Latn",
}
m["uro"] = {
"Ura (New Guinea)",
3121049,
"paa-bng",
"Latn",
}
m["urp"] = {
"Uru-Pa-In",
7901376,
"tup-gua",
"Latn",
}
m["urr"] = {
"Lehalurup",
3272124,
"poz-vnn",
"Latn",
}
m["urt"] = {
"烏拉特語",
3502084,
"qfa-tor",
"Latn",
}
m["uru"] = {
"烏魯米語",
7901530,
"tup",
"Latn",
}
m["urv"] = {
"烏魯阿瓦語",
36875,
"poz-ocw",
"Latn",
}
m["urw"] = {
"Sop",
7562808,
"ngf-mad",
"Latn",
}
m["urx"] = {
"烏里莫語",
7900611,
"qfa-tor",
"Latn",
}
m["ury"] = {
"Orya",
7105295,
"paa-tkw",
"Latn",
}
m["urz"] = {
"烏魯-窩-瓦-瓦語",
10266012,
"tup-gua",
"Latn",
}
m["usa"] = {
"烏薩魯法語",
7901714,
"paa-kag",
"Latn",
}
m["ush"] = {
"烏修基語",
3540446,
"inc-shn",
"ur-Arab",
}
m["usi"] = {
"Usui",
12644231,
}
m["usk"] = {
"Usaghade",
3914048,
"nic-lcr",
"Latn",
}
m["usp"] = {
"Uspanteco",
36728,
"myn",
"Latn",
}
m["uss"] = {
"Saare",
63313662,
"nic-knn",
"Latn",
}
m["usu"] = {
"Uya",
7904082,
}
m["uta"] = {
"Otank",
3913990,
"nic-tvc",
"Latn",
}
m["ute"] = {
"尤特語",
13260,
"azc-num",
"Latn",
}
m["uth"] = {
"Hun",
63313668,
"nic-knn",
"Latn",
}
m["utp"] = {
"阿姆巴語",
2841465,
"poz-tem",
"Latn",
}
m["utr"] = {
"埃圖洛語",
35262,
"alv-ido",
"Latn",
}
m["utu"] = {
"烏圖語",
7903469,
"ngf-mad",
}
m["uum"] = {
"烏魯姆語",
13257,
"trk-kcu",
"Cyrl",
}
m["uun"] = {
"龜崙-巴宰語",
36435,
"map",
"Latn",
}
m["uur"] = {
"Ura (Vanuatu)",
7899531,
"poz-vns",
"Latn",
}
m["uuu"] = {
"烏語",
953082,
"mkh-pal",
}
m["uve"] = {
"西烏韋阿語",
36837,
"poz-pnp",
"Latn",
}
m["uvh"] = {
"Uri",
7900540,
"ngf-fin",
"Latn",
}
m["uvl"] = {
"盧特語",
3259972,
"poz-ocw",
"Latn",
}
m["uwa"] = {
"Kuku-Uwanh",
3915687,
"aus-pmn",
}
m["uya"] = {
"Doko-Uyanga",
7904095,
"nic-ucr",
"Latn",
}
return m_lang.finalizeLanguageData(m_lang.addDefaultTypes(m, true))