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


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 handlers = {}

labels["surnames in the Catálogo alfabético de apellidos"] = {
	description = "{{{langname}}} surnames listed at the {{w|Catálogo alfabético de apellidos}}.",
	additional = "To add a {{{langname}}} surname to this category, add {{tl|Catálogo alfabético de apellidos|tl}} to a surname entry's Etymology section.",
	parents = {{
		name = "姓氏",
		sort = " Catálogo",
	}},
}

labels["有貝貝因文寫法的詞"] = {
	description = "包含了貝貝因文寫法的{{{langname}}}詞",
	parents = {{
		name = "依文字分類的詞",
		sort = "Baybayin",
	}},
	can_be_empty = true
}

labels["沒有貝貝因文寫法的詞"] = {
	description = "未包含貝貝因文寫法的{{{langname}}}",
	parents = {"詞條維護"},
	hidden = true,
	can_be_empty = true
}

labels["缺少貝貝因文詞條的詞"] = {
	description = "{{{langname}}} terms with missing Baybayin script entries.",
	parents = {"詞條維護"},
	hidden = true,
	can_be_empty = true
}

labels["terms without pronunciation template"] = {
	description = "{{{langname}}} terms without either [[Template:tl-pr]] or [[Template:tl-IPA]] to indicate pronunciation.",
	parents = {{name = "詞條維護"}},
	hidden = true,
	can_be_empty = true
}

labels["terms where syllabification alignment failed"] = {
	description = "{{{langname}}} terms where [[Module:tl-pronunciation]] was unable to align the syllabified respelling with the pagename to produce a syllabified spelling.",
	parents = {{name = "詞條維護"}},
	hidden = true,
	can_be_empty = true
}

--------------------------------------- Pronunciation --------------------------------------

labels["有malumay發音的詞"] = {
	description = "{{{langname}}} terms with slow and gentle pronunciation characterized by penultimate stress.",
	parents = {"依音位屬性分類的詞"},
	can_be_empty = true
}

labels["有malumi發音的詞"] = {
	description = "{{{langname}}} terms with slow and gentle pronunciation characterized by penultimate stress but glottalized.",
	parents = {"依音位屬性分類的詞"},
	can_be_empty = true
}

labels["有mabilis發音的詞"] = {
	description = "{{{langname}}} terms with quick pronunciation characterized by ultimate stress.",
	parents = {"依音位屬性分類的詞"},
	can_be_empty = true
}

labels["有maragsa發音的詞"] = {
	description = "{{{langname}}} terms with a forceful pronunciation characterized by ultimate stress but glottalized.",
	parents = {"依音位屬性分類的詞"},
	can_be_empty = true
}

-- Superseded forms --

table.insert(handlers, function(data)
	local m_table = require("Module:table")
	local year = data.label:match("^pre%-(.+) forms$")
	local year_list = {
		[2007] = "Tagalog spellings of words affected by the spelling reform in 2007, with the publication of the 2007 revision to the ''Ortograpiya ng Wikang Pambansa'' by the ''Komisyon sa Wikang Filipino'' (KWF, {{m-g|Commission on the Filipino Language}}). These spellings were standard forms before 1977 and variant forms between 1987 and 2007. See more at [[Appendix:Tagalog spellings#2007]].",
		[2014] = "Tagalog spellings of words affected by the spelling reform of 2013–2014, with the publication of the 2013 ''Ortograpiyang Pambansa'' and the and the 2014 ''Manwal sa Masinop na Pagsulat'' by the ''Komisyon sa Wikang Filipino'' (KWF, {{m-g|Commission on the Filipino Language}}). Spellings listed here are not necessarily considered nonstandard, but their use is generally discouraged in formal writing. See more at [[Appendix:Tagalog spellings#2013]]."
	}
	if year then
		year = tonumber(year)
		if m_table.tableContains(m_table.keysToList(year_list), year) then
			return {
				description = year_list[year],
				parents = {{
					name = "superseded forms",
					sort = year
				}},
			}
		end
	end
end)

-- Apheretic forms --

labels["apheretic forms"] = {
	description = "{{{langname}}} words that underwent {{lg|apheresis}}, thus their origin involved a removal of a letter or sound from the beginning.",
	parents = {"截斷形式", "詞源"},
}

--------------------------------------- Verbs --------------------------------------

local verb_types = {
	["1st actor trigger"] = {
		desc = "帶有前綴 {{m|tl|um-}} or infixed with {{m|tl|-um-}}",
		cat = {"terms prefixed with um-", "terms infixed with -um-"},
	},
	["2nd actor trigger"] = {
		desc = "帶有前綴 {{m|tl|mag-}}",
	},
	["3rd actor trigger"] = {
		desc = "帶有前綴 {{m|tl|mang-}}, which assimilates to {{m|tl|man-}} before [[alveolar]] consonants and {{m|tl|mam-}} before [[labial]] consonants; or sometimes 帶有前綴 {{m|tl|ma-}}",
		cat = {"terms prefixed with mang-"},
	},
	["4th actor trigger"] = {
		desc = "帶有前綴 {{m|tl|ma-}}",
	},
	["5th actor trigger"] = {
		desc = "帶有前綴 {{m|tl|maka-}}",
	},
	["6th actor trigger"] = {
		desc = "帶有前綴 {{m|tl|makapag-}}",
	},
	["7th actor trigger"] = {
		desc = "帶有前綴 {{m|tl|maki-}}",
	},
	["8th actor trigger"] = {
		desc = "帶有前綴 {{m|tl|magma-}}",
	},
	["indirect actor trigger"] = {
		desc = "帶有前綴 {{m|tl|magpa-}}",
	},
	["1st secondary indirect actor trigger"] = {
		desc = "帶有環綴 {{m|tl|pa- -in}}",
	},
	["2nd secondary indirect actor trigger"] = {
		desc = "帶有環綴 {{m|tl|papag- -in}}",
	},
	["3rd secondary indirect actor trigger"] = {
		desc = "帶有環綴 {{m|tl|papang- -in}}",
	},
	["1st object trigger"] = {
		desc = "帶有後綴 {{m|tl|-in}}, {{m|tl|-hin}}, {{m|tl|-nin}} or {{m|tl|-rin}}",
		cat = {"terms suffixed with -in", "terms suffixed with -hin", "terms suffixed with -nin", "terms suffixed with -rin"},
	},
	["2nd object trigger"] = {
		desc = "帶有後綴 {{m|tl|-an}}",
	},
	["3rd object trigger"] = {
		desc = "帶有前綴 {{m|tl|i-}}",
	},
	["4th object trigger"] = {
		desc = "帶有前綴 {{m|tl|ipag-}}",
	},
	["5th object trigger"] = {
		desc = "帶有環綴 {{m|tl|pag- -an}}",
	},
	["6th object trigger"] = {
		desc = "帶有前綴 {{m|tl|ipang-}}",
	},
	["7th object trigger"] = {
		desc = "帶有環綴 {{m|tl|pang- -an}}",
	},
	["8th object trigger"] = {
		desc = "帶有環綴 {{m|tl|pang- -in}}",
	},
	["9th object trigger"] = {
		desc = "帶有前綴 {{m|tl|ipa-}}",
	},
	["10th object trigger"] = {
		desc = "帶有環綴 {{m|tl|ma- -an}}",
	},
	["11th object trigger"] = {
		desc = "帶有環綴 {{m|tl|pa- -an}}",
	},
	["1st locative trigger"] = {
		desc = "帶有環綴 {{m|tl|pag- -an}}",
	},
	["2nd locative trigger"] = {
		desc = "帶有環綴 {{m|tl|ma- -an}} or {{m|tl|ma- -han}}",
		cat = {"terms circumfixed with ma- -an", "terms circumfixed with ma- -han"},
	},
	-- FIXME! The following is not listed in the documentation for [[Template:tl-verb]].
	["4th locative trigger"] = {
		desc = "?",
		cat = {},
	},
	["1st benefactive trigger"] = {
		desc = "帶有前綴 {{m|tl|i-}}",
	},
	["2nd benefactive trigger"] = {
		desc = "帶有前綴 {{m|tl|ipag-}}",
	},
	["3rd benefactive trigger"] = {
		desc = "帶有前綴 {{m|tl|ipang-}}",
	},
	["1st instrument trigger"] = {
		desc = "帶有前綴 {{m|tl|ipa-}}",
	},
	["2nd instrument trigger"] = {
		desc = "帶有前綴 {{m|tl|ipang-}}",
	},
	["1st reason trigger"] = {
		desc = "帶有前綴 {{m|tl|ika-}}",
	},
	["alternate 1st reason trigger"] = {
		desc = "帶有前綴 {{m|tl|i-}}",
	},
	["2nd reason trigger"] = {
		desc = "帶有前綴 {{m|tl|ikapag-}}",
	},
	["alternate 2nd reason trigger"] = {
		desc = "帶有前綴 {{m|tl|ipag-}}",
	},
	["3rd reason trigger"] = {
		desc = "帶有前綴 {{m|tl|ikapang-}}",
	},
	["alternate 3rd reason trigger"] = {
		desc = "帶有前綴 {{m|tl|ipang-}}",
	},
	["4th reason trigger"] = {
		desc = "帶有前綴 {{m|tl|ika-}}",
	},
	["1st directional trigger"] = {
		desc = "帶有後綴 {{m|tl|-an}}",
	},
	["2nd directional trigger"] = {
		desc = "帶有後綴 {{m|tl|-in}}",
	},
	["3rd directional trigger"] = {
		desc = "帶有環綴 {{m|tl|pag- -an}}",
	},
	["4th directional trigger"] = {
		desc = "帶有前綴 {{m|tl|ma-}}",
	},
	["5th directional trigger"] = {
		desc = "帶有環綴 {{m|tl|pang- -an}}",
	},
	["6th directional trigger"] = {
		desc = "帶有環綴 {{m|tl|ka- -an}}",
	},
	["7th directional trigger"] = {
		desc = "帶有環綴 {{m|tl|pa- -an}}",
	},
	["reference trigger"] = {
		desc = "帶有前綴 {{m|tl|pag- -an}}",
	},
	["1st reciprocal trigger"] = {
		desc = "帶有環綴 {{m|tl|mag- -an}}",
	},
	["2nd reciprocal trigger"] = {
		desc = "帶有前綴 {{m|tl|magka-}}",
	},
}

for verb_type, props in pairs(verb_types) do
	local parents = props.cat
	if not parents then
		parents = {"terms " .. props.desc:gsub("{{m|tl|(.-)}}", "%1")}
	end
	local infl_sort_key = verb_type:gsub("^alternate ", ""):gsub("^[0-9]+[a-z]+ ", "")
	table.insert(parents, 1, {name = "verbs by inflection type", sort = infl_sort_key})

	labels[verb_type .. " verbs"] = {
		description = ("{{{langname}}} %s verbs, %s."):format(verb_type, props.desc),
		parents = parents,
		breadcrumb = verb_type,
	}
end


return {LABELS = labels, HANDLERS = handlers}