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


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["來自《拉封丹寓言》的詞"] = {
	displaytitle = "{{{langname}}} terms derived from the ''Fables'' of Jean de La Fontaine",
	parents = {{name = "terms attributed to a specific source", sort = "Fables of Jean de La Fontaine"}},
	description = "{{{langname}}} terms derived from the ''Fables'' of {{w|Jean de La Fontaine}}.",
	breadcrumb = "the ''Fables'' of Jean de La Fontaine",
}

table.insert(handlers, function(data)
	local conj = data.label:match("^verbs with conjugation (.*)$")
	if conj then
		return {
			description = ("{{{langname}}} verbs in the {{m|fr|%s%s}} conjugation."):format(
				-- Link actual verbs, but just italicize suffixes, most of which aren't defined.
				conj:find("^%-") and "|" or "", conj),
			displaytitle = ("{{{langname}}} verbs with conjugation {{m|fr||%s}}"):format(conj),
			breadcrumb = {name = ("{{m|fr||%s}}"):format(conj), nocap = true},
			parents = {"verbs by inflection type"},
		}
	end
end)


return {LABELS = labels, HANDLERS = handlers}