Pergi ke kandungan

Modul:category tree/lang/fro

Daripada Wikikamus

This module handles generating the descriptions and categorization for Perancis Kuno category pages of the format "Perancis Kuno 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 category tree system, which is a general framework for generating the descriptions and categorization of category pages.

For more information, see Modul:category tree/lang/doc.

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


local labels = {}

labels["verbs by conjugation"] = {
	preceding = "{{also|Appendix:Old French verbs}}",
	description = "{{{langname}}} verbs categorized by their conjugation.",
	breadcrumb = "by conjugation",
	parents = {{name = "verbs", sort = "conjugation"}},
}

labels["first group verbs"] = {
	description = "{{{langname}}} first group verbs, also called regular ''-er/ier'' verbs.",
	additional = "This is the largest of the three main Old French verb groups. See also [[:Category:Old French second group verbs]] (regular ''-ir'' verbs), [[:Category:Old French third group verbs]] (irregular verbs) and [[:Category:Old French third-second group verbs]] (''-ir'' verbs that conjugate either as third or second group verbs).",
	breadcrumb = "first group",
	parents = {{name = "verbs by conjugation", sort = "1"}},
}

labels["second group verbs"] = {
	description = "{{{langname}}} second group verbs, also called regular ''-ir'' verbs.",
	additional = "See also [[:Category:Old French first group verbs]] (regular ''-er/-ier'' verbs) and [[:Category:Old French third group verbs]] (irregular verbs).",
	breadcrumb = "second group",
	parents = {{name = "verbs by conjugation", sort = "2"}},
}

labels["third group verbs"] = {
	description = "{{{langname}}} third group verbs, also called irregular verbs.",
	additional = "See also [[:Category:Old French first group verbs]] (regular ''-er/-ier'' verbs), [[:Category:Old French second group verbs]] (regular ''-ir'' verbs) and [[:Category:Old French third-second group verbs]] (''-ir'' verbs that conjugate either as third or second group verbs).",
	breadcrumb = "third group",
	parents = {{name = "verbs by conjugation", sort = "3"}},
}

labels["third-second group verbs"] = {
	description = "{{{langname}}} third-second group verbs, usually ''-ir'' verbs that can be conjugated either as third or second group verbs (without or with the ''-iss-'' infix).",
	additional = "See also [[:Category:Old French first group verbs]] (regular ''-er/-ier'' verbs), [[:Category:Old French second group verbs]] (regular ''-ir'' verbs) and [[:Category:Old French third group verbs]] (irregular verbs).",
	breadcrumb = "third-second group",
	parents = {{name = "verbs by conjugation", sort = "3-2"}},
}


local verb_ending_types = {
	["-er"]	= {
		desc = "forming part of the [[:Category:Old French first group verbs|first-group verbs]], although there are a few [[:Category:Old French third group verbs|third-group verbs]] as well, where {{m|fro|-er}} in this case is an [[Anglo-Norman]] variant of {{m|fro|-eir}}, itself a variant of standard {{m|fro|-oir}}",
	},
	["-ier"] = {
		desc = "forming part of the [[:Category:Old French first group verbs|first-group verbs]]",
		additional = "The stem of these verbs ended in a {{lg|palatalized}} consonant in {{catlink|Proto-Gallo-Romance}}.",
	},
	["-ir"] = {
		desc = "part of which form the [[:Category:Old French second group verbs|second-group verbs]] while the rest form part of the [[:Category:Old French third group verbs|third-group verbs]]",
		additional = "These originate from Latin verbs in {{m|la|-īre}}, from some verbs in {{m|la|-ēre}} (particularly when the stem ended in a {{lg|palatalized}} consonant in {{catlink|Proto-Gallo-Romance}}), " ..
			"and from some verbs ending in {{m|la|-ĕre}} that were transferred to the {{m|la|-īre}} or {{m|la|-ēre}} classes in {{catlink|Proto-Romance}} or later. They often alternated with " ..
			"verbs in {{m+|fro|-re}}, sometimes producing {{lg|doublet}}s in modern French, such as the verb {{m|fr|plaire}} and noun {{m|fr|plaisir}}, which were alternative " ..
			"infinitives for the same verb in Old French.",
	},
	["-eir"] = {
		desc = "forming part of the [[:Category:Old French third group verbs|third-group verbs]]; they are either early Old French or [[Anglo-Norman]] variants of verbs in {{m|fro|-oir}}",
	},
	["-oir"] = {
		desc = "forming part of the [[:Category:Old French third group verbs|third-group verbs]]",
		additional = "These originate from Latin verbs in {{m|la|-ēre}} (or sometimes {{m|la|-ĕre}}) that were not preceded by a palatal consonant in {{w|Proto-Gallo-Romance}}. " ..
			"(Those preceded by a palatal consonant have the ending {{m|fro|-ir}} in Old French.)",
	},
	["-re"] = {
		desc = "forming part of the [[:Category:Old French third group verbs|third-group verbs]]",
		additional = "These originate from Latin verbs in {{m|la|-ĕre}} (or sometimes {{m|la|-ēre}}).",
	},
}

for ending, props in pairs(verb_ending_types) do
	local breadcrumb = "''" .. ending .. "''"
	local displaytitle = "{{{langname}}} verbs ending in " .. breadcrumb
	labels["verbs ending in " .. ending] = {
		description = displaytitle .. ", " .. props.desc .. ".",
		displaytitle = displaytitle,
		additional = props.additional,
		breadcrumb_and_first_sort_key = breadcrumb,
		parents = {"verbs by conjugation"},
	}
end


labels["verbs by preterite type"] = {
	preceding = "{{also|Appendix:Old French verbs}}",
	description = "{{{langname}}} verbs categorized by the formation of their preterite tense.",
	breadcrumb = "by preterite type",
	parents = {{name = "verbs", sort = "preterite type"}},
}

local preterite_types = {
	["weak-a"] = {
		desc = "the standard preterite type for [[:Category:Old French verbs ending in -er|-er verbs]] (but not [[:Category:Old French verbs ending in -ier|-ier verbs]], which use [[:Category:Old French verbs with weak-a2 preterite|weak-a2 preterites]])",
		additional = [=[
Endings are as follows:
{|class="wikitable"
!
! ''jo''
! ''tu''
! ''il''
! ''nos''
! ''vos''
! ''il''
|-
! Preterite
| ''-ai''
| ''-as''
| ''-a''
| ''-ames''
| ''-astes''
| ''-erent''
|-
! Subjunctive imperfect
| ''-asse''
| ''-asses''
| ''-ast''
| ''-issons''<br>''-issiens''
| ''-issoiz''<br>''-issez''<br>''-issiez''
| ''-assent''
|}
]=],
	},
	["weak-a2"] = {
		desc = "the standard preterite type for [[:Category:Old French verbs ending in -ier|-ier verbs]]",
		additional = "The endings are nearly like [[:Category:Old French verbs with weak-a preterite|that of ''-er'' verbs]], but the third-person plural preterite ends in ''-ierent'' instead of ''-erent''.",
	},
	["weak-i"] = {
		desc = "the standard preterite type for [[:Category:Old French verbs ending in -ir|-ir verbs]]",
		additional = [=[
See also the [[:Category:Old French verbs with weak-i2 preterite|weak-i2 preterite]], the standard preterite type for most ''-re'' verbs.

Endings are as follows:
{|class="wikitable"
!
! ''jo''
! ''tu''
! ''il''
! ''nos''
! ''vos''
! ''il''
|-
! Preterite
| ''-i''
| ''-is''
| ''-i''
| ''-imes''
| ''-istes''
| ''-irent''
|-
! Subjunctive imperfect
| ''-isse''
| ''-isses''
| ''-ist''
| ''-issons''<br>''-issiens''
| ''-issoiz''<br>''-issez''<br>''-issiez''
| ''-issent''
|}
]=],
	},
	["weak-i2"] = {
		desc = "used by some [[:Category:Old French third group verbs|third-group verbs]], especially those ending in [[:Category:Old French verbs ending in -re|-re]], particularly those in ''-dre'' and ''-tre''",
		additional = "The endings are nearly like [[:Category:Old French verbs with weak-i preterite|that of ''-ir'' verbs]], but the third-person plural preterite ends in ''-ierent'' instead of ''-erent''.",
	},
	["weak-u"] = {
		desc = "used by some [[:Category:Old French third group verbs|third-group verbs]]",
		additional = [=[
Endings are as follows:
{|class="wikitable"
!
! ''jo''
! ''tu''
! ''il''
! ''nos''
! ''vos''
! ''il''
|-
! Preterite
| ''-ui''
| ''-us''
| ''-u''
| ''-umes''
| ''-ustes''
| ''-urent''
|-
! Subjunctive imperfect
| ''-usse''
| ''-usses''
| ''-ust''
| ''-ussons''<br>''-ussiens''
| ''-ussoiz''<br>''-ussez''<br>''-ussiez''
| ''-ussent''
|}
]=],
	},
	["strong-i"] = {
		desc = "used by a few [[:Category:Old French third group verbs|third-group verbs]]",
	},
	["strong-u"] = {
		desc = "used by a number of [[:Category:Old French third group verbs|third-group verbs]]",
		additional = [=[
Endings are as follows:
{|class="wikitable"
!
! ''jo''
! ''tu''
! ''il''
! ''nos''
! ''vos''
! ''il''
|-
! Preterite
| ''-ui''
| ''-eüs''
| ''-u''
| ''-eümes''
| ''-eüstes''
| ''-urent''
|-
! Subjunctive imperfect
| ''-eüsse''
| ''-eüsses''
| ''-eüst''
| ''-eüssons''<br>''-eüssiens''
| ''-eüssoiz''<br>''-eüssez''<br>''-eüssiez''
| ''-eüssent''
|}
]=],
	},
	["strong-sd"] = {
		desc = "used by a number of [[:Category:Old French third group verbs|third-group verbs]]",
	},
	["strong-st"] = {
		desc = "used by a number of [[:Category:Old French third group verbs|third-group verbs]]",
	},
	["strong-id"] = {
		desc = "used by a few [[:Category:Old French third group verbs|third-group verbs]]",
	},
	["strong-o"] = {
		desc = "used by a few [[:Category:Old French third group verbs|third-group verbs]]",
	},
}

for pret_type, props in pairs(preterite_types) do
	local weak_strong, ending = pret_type:match("^(.+)%-(.+)$")
	if not weak_strong then
		error("Internal error: Preterite type " .. pret_type .. " cannot be split into weak/strong + ending")
	end
	local breadcrumb = weak_strong .. "-''" .. ending .. "''"
	local displaytitle = "{{{langname}}} verbs with " .. breadcrumb .. " preterite"
	labels["verbs with " .. pret_type .. " preterite"] = {
		description = displaytitle .. ", " .. props.desc .. ".",
		displaytitle = displaytitle,
		additional = props.additional,
		breadcrumb_and_first_sort_key = breadcrumb,
		parents = {"verbs by preterite type"},
	}
end

return {LABELS = labels}