Module:category tree/lang/siwa: Difference between revisions

From Linguifex
Jump to navigation Jump to search
Created page with "local labels = {} return {LABELS = labels}"
 
No edit summary
Line 1: Line 1:
local labels = {}
local labels = {}
for _, pos in ipairs{"nouns", "adjectives"} do
for _, decl in ipairs{"a", "e", "i", "o", "u", "y", "l", "r", "n", "s", "t"} do
labels[decl .. "-declension " .. pos] = {
description = "{{{langname}}} " .. pos .. " that belong to the ''" .. decl .. "'' declension.",
parents = pos .. " by inflection type",
breadcrumb = decl,
displaytitle = "''" .. decl .. "''-declension " .. pos,
}
end
end


return {LABELS = labels}
return {LABELS = labels}

Revision as of 10:12, 16 May 2026


This module handles generating the descriptions and categorization for Siwa category pages of the format "Siwa 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 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 = {}

for _, pos in ipairs{"nouns", "adjectives"} do
	for _, decl in ipairs{"a", "e", "i", "o", "u", "y", "l", "r", "n", "s", "t"} do
		labels[decl .. "-declension " .. pos] = {
			description = "{{{langname}}} " .. pos .. " that belong to the ''" .. decl .. "'' declension.",
			parents = pos .. " by inflection type",
			breadcrumb = decl,
			displaytitle = "''" .. decl .. "''-declension " .. pos, 
		}		
	end
end

return {LABELS = labels}