模組:Category tree/poscatboiler/data/lang-specific/fa
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 = {}
local lang = require("Module:languages").getByCode("fa")
labels["compound verbs"] = {
description = "{{{langname}}} light verb constructions consisting of a verb and a non-verbal element, such as a noun.",
parents = {"verbs", "Category:Phrasal verbs by language", "compound terms"},
}
table.insert(handlers, function(data)
local auxverb = data.label:match("^compound verbs with (.+)$")
if auxverb then
local link = require("Module:links").full_link({ lang = lang, term = auxverb }, "term")
local altlink = require("Module:links").full_link({ lang = lang, alt = auxverb }, "term")
return {
description = "{{{langname}}} compound verbs with the phrasal verb " .. link .. ".",
displaytitle = "{{{langname}}} compound verbs with " .. altlink,
breadcrumb = altlink,
parents = {{name = "compound verbs", sort = auxverb}},
}
end
end)
labels["hazaragi terms with retroflex consonants"] = {
description = "Hazaragi dialectal terms containing retroflex consonants",
parents = {"Hazaragi Persian"},
}
return {LABELS = labels, HANDLERS = handlers}