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

維基詞典,自由的多語言詞典

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

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

labels["compound verbs by base verb"] = {
	description = "{{{langname}}} compound verbs categorized by base verb.",
	parents = {"verbs"},
}

table.insert(handlers, function(data)
	local base_verb = data.label:match("^compound verbs with base verb (.*)$")
	if base_verb then
		local altlink = "{{m|ur||" .. base_verb .. "}}"
		local altlink_no_tr = "{{m|ur||" .. base_verb .. "|tr=-}}"
		return {
			description = "{{{langname}}} compound verbs formed with the base verb {{m|ur|" .. base_verb .. "|tr=-}}.",
			displaytitle = "{{{langname}}} compound verbs with base verb " .. altlink_no_tr,
			parents = {
				{name = "compound verbs by base verb", sort = base_verb}
			},
			breadcrumb = altlink_no_tr,
		}
	end
end)


return {LABELS = labels, HANDLERS = handlers}