Module:qhv-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 126: Line 126:
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=\"font-style: italic; background-color: #40E0D0;\" | " .. case .. "\n")
table.insert(ret, "|- \n! style=\"font-style: italic; background-color: #DDF8FF;\" | " .. case .. "\n")
table.insert(ret, "| style=\"background-color: #F8F8FF;\" | " .. show_form(pass.forms[case_short .. "_sg"]) .. "\n")
table.insert(ret, "| style=\"background-color: #F8F8FF;\" | " .. show_form(pass.forms[case_short .. "_sg"]) .. "\n")
if pass.forms[case_short .. "_pl"] or pass.forms[case_short .. "_pa"] or pass.forms[case_short .. "_co"] then
if pass.forms[case_short .. "_pl"] or pass.forms[case_short .. "_pa"] or pass.forms[case_short .. "_co"] then
Line 143: Line 143:
{| class="prettytable mw-collapsible"
{| class="prettytable mw-collapsible"
! Declension of ]=] .. PAGENAME .. [=[\n
! Declension of ]=] .. PAGENAME .. [=[\n
! style="font-style: italic; background-color: #549EA0;" | Case
! style="font-style: italic; background-color: #00E8FF;" | Case
! style="font-style: italic; background-color: #549EA0;" | Singular]=] .. (no_plural and "\n" or [=[
! style="font-style: italic; background-color: #DDF8FF;" | Singular]=] .. (no_plural and "\n" or [=[


! style="font-style: italic; background-color: #549EA0;" | Plural
! style="font-style: italic; background-color: #DDF8FF;" | Plural
! style="font-style: italic; background-color: #549EA0;" | Paucal
! style="font-style: italic; background-color: #DDF8FF;" | Paucal
! style="font-style: italic; background-color: #549EA0;" | Collective
! style="font-style: italic; background-color: #DDF8FF;" | Collective
]=]) .. make_cases(pass) .. [=[
]=]) .. make_cases(pass) .. [=[
|}]=]
|}]=]