Module:category tree/poscatboiler/data/lang-specific/fr

This module handles generating the descriptions and categorization for French category pages of the format "French LABEL" where LABEL can be any text. Examples are Category:Bulgarian conjugation 2.1 verbs and Category:Russian velar-stem neuter-form nouns. This module is part of the poscatboiler system, which is a general framework for generating the descriptions and categorization of category pages.

For more information, see Module:category tree/poscatboiler/data/lang-specific/documentation.

NOTE: If you add a new language-specific module, you must add the language code to the list at the top of Module:category tree/poscatboiler/data/lang-specific in order for the module to be recognized.


local labels = {}
local handlers = {}

labels["terms derived from the Fables of Jean de La Fontaine"] = {
	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}