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


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

------- Nominal categories -------

labels["nominals by inflection type"] = {
	description = "{{{langname}}} nouns and adjectives categorized by their inflection type.",
	breadcrumb = "by inflection type",
	preceding = "{{mainapp|Estonian declension}}",
	parents = {
		{name = "nouns", sort = "inflection type"},
		{name = "adjectives", sort = "inflection type"},
	},
}

table.insert(handlers, function(data)
	local nomtype = data.label:match("^(.*)%-type nominals$")
	if nomtype then
		return {
			description = ("{{{langname}}} ''%s''-type nominals."):format(nomtype),
			additional = ("Terms are added to this category using {{tl|et-decl-%s}}."):format(nomtype),
			breadcrumb = {name = ("''%s''-type"):format(nomtype), nocap = true},
			parents = {"nominals by inflection type"},
		}
	end
end)

labels["irregular nominals"] = {
	description = "{{{langname}}} nominals that follow non-standard patterns of declension.",
	breadcrumb = "irregular",
	parents = {"nouns", "adjectives", "pronouns",
		{name = "irregular nouns", lang = false},
		{name = "irregular adjectives", lang = false},
	},
}

for _, pos in ipairs { "adjectives", "nouns" } do
	labels[pos .. " that lack declension type"] = {
		description = "{{{langname}}} " .. pos .. " that lack declension type.",
		parents = {"entry maintenance"},
		hidden = true,
		can_be_empty = true,
	}
end

------- Verbal categories -------

labels["verbs by inflection type"] = {
	description = "{{{langname}}} verbs categorized by their inflection type.",
	breadcrumb = "by inflection type",
	preceding = "{{mainapp|Estonian conjugation}}",
	parents = {
		{name = "verbs", sort = "inflection type"},
		{name = "verbs by inflection type", lang = false},
	},
}

table.insert(handlers, function(data)
	local verbtype = data.label:match("^(.*)%-type verbs$")
	if verbtype then
		return {
			description = ("{{{langname}}} ''%s''-type verbs."):format(verbtype),
			additional = ("Terms are added to this category using {{tl|et-conj-%s}}."):format(verbtype),
			breadcrumb = {name = ("''%s''-type"):format(verbtype), nocap = true},
			parents = {"verbs by inflection type"},
		}
	end
end)

------- Misc categories -------

labels["entries with inflection not matching pagename"] = {
	description = "{{{langname}}} entries which have an inflection table whose lemma form does not match the page name.",
	additional = "This is usually the result of incorrect or missing parameters.",
	breadcrumb = "inflection not matching pagename",
	parents = {{name = "entry maintenance", sort = "inflection not matching pagename"}},
	hidden = true,
	can_be_empty = true,
}


return {LABELS = labels, HANDLERS = handlers}