Module:qhv-adj: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 131: Line 131:
for _, gender in ipairs(genders) do
for _, gender in ipairs(genders) do
local g_short = sub(gender, 1, 1)
local g_short = sub(gender, 1, 1)
for _, number in ipairs({"sg", "pl"}) do
for i=1, (data.decl_type == "I" and 4 or 2) do
table.insert(ret, "| " .. link(show_form(data.forms[(pre and "" or "post_") .. case_short .. "_" .. g_short .. "_" .. number])) .. "\n")
table.insert(ret, "| " .. link(show_form(data.forms[(pre and "" or "post_") .. case_short .. "_" .. g_short .. "_sg"])) .. "\n")
table.insert(ret, "| " .. link(show_form(data.forms[(pre and "" or "post_") .. case_short .. "_" .. g_short .. "_pl"])) .. "\n")
end
end
end
end