Module:qhv-adj: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 129: Line 129:
for _, case in ipairs(cases) do
for _, case in ipairs(cases) do
local case_short = sub(case, 1, 3)
local case_short = sub(case, 1, 3)
table.insert(ret, "|- \n! style=\"background-color: #dcffed;\ |" .. case .. "\n")
table.insert(ret, "|- \n! ! style=\"background-color: #FFB976;\"|" .. case .. "\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. link(show_form(data.forms[case_short .. "_sg"])) .. "\n")
for _, gender in ipairs(genders) do
if data.forms[case_short .. "_pl"] or data.forms[case_short .. "_pa"] or data.forms[case_short .. "_co"] then
local g_short = sub(gender, 1, 1)
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. link(show_form(data.forms[case_short .. "_pl"])) .. "\n")
for _, number in ipairs({"sg", "pl"}) do
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. link(show_form(data.forms[case_short .. "_pa"])) .. "\n")
table.insert(ret, "| " .. link(show_form(data.forms[case_short .. "_" .. g_short .. "_" .. number])) .. "\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. link(show_form(data.forms[case_short .. "_co"])) .. "\n")
end
end
end
end
end