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 sub({"sg", "pl"}) do
for _, number in ipairs({"sg", "pl"}) 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 .. "_" .. number])) .. "\n")
end
end