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

Created page with "local labels = {} return {LABELS = labels}"
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
local labels = {}
local labels = {}
for _, pos in ipairs{"nouns", "adjectives"} do
for _, decl in ipairs{"i", "n", "r", "s", "o", "ē", "consonant"} do
local decltext = decl .. "-stem"
labels[decltext .. " " .. pos] = {
description = "{{{langname}}} " .. pos .. " whose stem ends in " .. (decl == "consonant" and "a consonant" or "''-" .. decl .. "''") .. ".",
parents = {{name = pos .. " by inflection type", sort = declnum}},
breadcrumb = decl,
}
end
end
labels["verbs by conjugation"] = {
description = "{{{langname}}} verbs categorized by conjugation.",
parents = {"verbs by inflection type"},
}
for i, conj in ipairs{"first", "second", "third", "fourth"} do
labels[conj .. " conjugation verbs"] = {
description = "{{{langname}}} verbs of the " .. conj .. " conjugation.",
parents = {
{name = "verbs by conjugation", sort = conj},
},
breadcrumb = tostring(i),
}
end


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