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

Created page with "local labels = {} return {LABELS = labels}"
 
No edit summary
Line 1: Line 1:
local labels = {}
local labels = {}
local noun_declensions = {
first = {"1", "a"},
second = {"2", "y"},
third = {"3", "o"},
fourth = {"4", "e"},
fifth = {"5", "i"},
sixth = {"6", ""},
}
for _, pos in ipairs{"nouns", "proper nouns"} do
for _, gender in ipairs{"lunar", "terrestrial", "solar", "aquatic"} do
for decl, declinfo in pairs(noun_declensions) do
local num, vowel = table.unpack(declinfo)
labels[decl .. "-declension " .. pos] = {
description = "{{{langname}}} " .. pos .. " that belong to the " .. decl ..
(num ~= "6" and " (or ''" .. vowel .. "''-themed)" or "") .. "declension class.",
parents = {{name = pos .. " by inflection type", sort = num}},
breadcrumb = decltext,
}
labels[gender .. pos] = {
description = "{{{langname}}} " .. pos .. " proper nouns that belong to the " .. gender .. " gender or class.",
parents = {{name = pos .. " by gender", sort = gender}},
breadcrumb = gender,
}
end
end
end


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