模組:Category tree/poscatboiler/data/lang-specific/vi


This module handles generating the descriptions and categorization for 越南語 category pages of the format "越南語 LABEL" where LABEL can be any text. Examples are Category:Bulgarian conjugation 2.1 verbs and Category:Russian velar-stem neuter-form nouns. 該模块是 poscatboiler 系統的一部分,該系統是用於生成分類頁面的描述和分類的通用框架。

有關更多資訊,請參閱Module:category tree/poscatboiler/data/lang-specific/doc

注意:如果您新增了特定語言的模块,請將語言代碼新增至 Module:category tree/poscatboiler/data/lang-specific 頂部的清單中,使程式碼能識別該模块。


local labels = {}

local rdp_types_app = { "-a", "-ang", "-ap", "-âp", "-ăn", "-e", "-eo", "-ơm", "-iêm", "-it", "-inh", "-oi", "-ôi", "-ui", "-ung", "l-", "ch-", "t-", "b-" }

local rdp_types_special = { a2 = {"-a reduplications (C tone)", "''-a'' reduplication (C tone)", "-a reduplication 2"}, o1 = {"-o reduplications (A tone)", "''-o'' reduplication (A tone)", "-o reduplication 1"}, o2 = {"-o reduplications (B tone)", "''-o'' reduplication (B tone)", "-o reduplication 2"}, ung2 = {"-ung reduplications (A tone)", "''-ung'' reduplication (A tone)", "-ung reduplication 2"} }

for i, rpd_type in pairs(rdp_types_app) do
	labels[rpd_type .. " reduplications"] = {
		description = "Vietnamese terms that underwent [[Appendix:Vietnamese reduplication#" .. rpd_type .. " reduplication|''" .. rpd_type .. "'' reduplication]].",
		parents = {{name = "reduplications", sort = mw.ustring.gsub( rpd_type, "%-", "") }},
	}
end

for rpd_type, info in pairs(rdp_types_special) do
	labels[info[1]] = {
		description = "Vietnamese terms that underwent [[Appendix:Vietnamese reduplication#" .. info[3] .. "|" .. info[2] .. "]].",
		parents = {{name = "reduplications", sort = rpd_type }},
	}
end

labels["diminutive reduplications"] = {
	description = "Vietnamese terms that underwent [[Appendix:Vietnamese reduplication#Adjectives|diminutive reduplication]].",
	parents = {{name = "reduplications", sort = "diminutive"}},
}

return {LABELS = labels}