Module:category tree/lang/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/lang/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/lang 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",
}

labels["pre-1990 spellings"] = {
	description = "{{{langname}}} spellings from before the [[Appendix:French spelling reforms of 1990|1990 spelling reform]], particularly those which have been mostly displaced by their respective reformed spellings.",
	additional = "This category is populated by {{tl|fr-pre-1990}}.",
	parents = {{ name = "terms by orthographic property", sort = "1990" }},
	breadcrumb = "pre-1990",
}

labels["post-1990 spellings"] = {
	description = "{{{langname}}} spellings from after the [[Appendix:French spelling reforms of 1990|1990 spelling reform]].",
	additional = "This category is populated by {{tl|fr-post-1990}}.",
	parents = {{ name = "terms by orthographic property", sort = "1990 " }},
	breadcrumb = "post-1990",
}

labels["post-1990 noun plural forms"] = {
	description = "{{{langname}}} plural forms which were changed in form, not just spelling, in the [[Appendix:French spelling reforms of 1990|1990 spelling reform]].",
	additional = "This category is populated by {{tl|fr-post-1990-plural}}.",
	parents = "post-1990 spellings",
	breadcrumb = "post-1990 plurals",
}

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}
Category:Category tree data modules/poscatboiler Category:French data modules Category:French modules