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


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 = {}



-----------------------------------------------------------------------------
--                                                                         --
--                                  VERBS                                  --
--                                                                         --
-----------------------------------------------------------------------------


local conjugations = {
	["ar"] = "{{{langname}}} first conjugation verbs, derived from Latin [[:Category:Latin first conjugation verbs|first conjugation (-āre) verbs]].",
	["er"] = "{{{langname}}} second conjugation verbs, derived from Latin [[:Category:Latin second conjugation verbs|second conjugation (-ēre)]] or [[:Category:Latin third conjugation verbs|third conjugation (-ere)]] verbs.",
	["ir"] = "{{{langname}}} third conjugation verbs, derived from Latin [[:Category:Latin third conjugation verbs|third conjugation (-ere)]] or [[:Category:Latin fourth conjugation verbs|fourth conjugation (-īre)]] verbs.",
}

labels["依變位分類的動詞"] = {
	description = "{{{langname}}} verbs categorized by conjugation.",
	parents = {"依屈折分類的動詞"},
}

for conj, conjdesc in pairs(conjugations) do
	labels["以-" .. conj .. "結尾的動詞"] = {
		description = conjdesc,
		displaytitle = "以 {{m|es||-" .. conj .. "}} 結尾的{{{langname}}}動詞",
		parents = {
			{name = "依變位分類的動詞", sort = conj},
		},
		breadcrumb = "{{m|es||-" .. conj .. "}}",
	}
end

labels["依元音交替分類的動詞"] = {
	description = "{{{langname}}} verbs categorized by type of vowel alternation.",
	parents = {"依屈折分類的動詞"},
}

labels["依輔音交替分類的動詞"] = {
	description = "{{{langname}}} verbs categorized by type of consonant alternation.",
	parents = {"依屈折分類的動詞"},
}

-- Add labels for e.g. [[Category:Spanish verbs with e-ie alternation]].
local vowel_alternations = {
	["e-i"] = {
		stressed = {"e", "i"},
	},
	["e-í"] = {
		stressed = {"e", "í"},
	},
	["e-ie"] = {
		stressed = {"e", "ie"},
	},
	["e-ie-i"] = {
		stressed = {"e", "ie"},
		raising = "i",
	},
	["e-ye"] = {
		stressed = {"e", "ye"},
	},
	["e-ye-i"] = {
		stressed = {"e", "ye"},
		raising = "i",
	},
	["i-í"] = {
		stressed = {"i", "í"},
	},
	["i-ie"] = {
		stressed = {"i", "ie"},
	},
	["o-hue"] = {
		stressed = {"u", "hue"},
	},
	["o-ue"] = {
		stressed = {"o", "ue"},
	},
	["o-ue-u"] = {
		stressed = {"o", "ue"},
		raising = "u",
	},
	["u-ú"] = {
		stressed = {"u", "ú"},
	},
	["u-ue"] = {
		stressed = {"u", "ue"},
	},
}

for alt, obj in pairs(vowel_alternations) do
	local from, to = unpack(obj.stressed)
	local desc = "{{{langname}}} verbs whose root vowel changes from ''" .. from .. "'' to ''" .. to .. "'' when stressed"
	if obj.raising then
		desc = desc .. " and raises to ''" .. obj.raising .. "'' in certain other forms"
	end
	desc = desc .. "."
	labels["帶" .. alt .. "交替的動詞"] = {
		description = desc,
		displaytitle = "帶 {{m|es||" .. alt .. "}} 交替的{{{langname}}}動詞",
		parents = {{name = "依元音交替分類的動詞", sort = alt}},
		breadcrumb = "{{m|es||" .. alt .. "}}",
	}
end


-- Add labels for e.g. [[Category:Spanish verbs with c-qu alternation]].
local consonant_alternations = {
	["c-ç"] = {"c", "ç"},
	["c-qu"] = {"qu", "c"},
	["c-z"] = {"c", "z"},
	["c-zc"] = {"c", "zc"},
	["g-gu"] = {"gu", "g"},
	["g-j"] = {"g", "j"},
	["gu-gü"] = {"gü", "gu"},
}

for alt, frontback in pairs(consonant_alternations) do
	local desc
	local front, back = unpack(frontback)
	desc = "{{{langname}}} verbs whose final consonant alternates between ''" .. front .. "'' before front vowels (''e'', ''i'') " ..
		"and ''" .. back .. "'' before back vowels (''a'', ''o'', ''u'')."
	labels["帶" .. alt .. "交替的動詞"] = {
		description = desc,
		displaytitle = "帶 {{m|es||" .. alt .. "}} 交替的{{{langname}}}動詞",
		parents = {{name = "依輔音交替分類的動詞", sort = alt}},
		breadcrumb = "{{m|es||" .. alt .. "}}",
	}
end

labels["帶硬音-軟音交替的動詞"] = {
	description = "{{{langname}}} verbs whose final consonant does not change in spelling but alternates in sound between hard and soft ''c''.",
	parents = {{name = "依輔音交替分類的動詞", sort = "hard-soft"}},
	breadcrumb = "硬音-軟音",
}

labels["僅第三人稱動詞"] = {
	description = "{{{langname}}} verbs with forms that exist only in the third person, and have no imperatives.",
	parents = {{name = "不完全變化動詞"}},
	breadcrumb = "僅第三人稱",
}

return {LABELS = labels}