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: #DDF8FF;\" | " .. case .. "\n")
table.insert(ret, "|- \n! style=\"font-style: italic; background-color: #dcffed;\" | " .. case .. "\n")
table.insert(ret, "| style=\"background-color: #F8F8FF;\" | " .. show_form(pass.forms[case_short .. "_sg"]) .. "\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. 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
table.insert(ret, "| style=\"background-color: #F8F8FF;\" | " .. show_form(pass.forms[case_short .. "_pl"]) .. "\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. show_form(pass.forms[case_short .. "_pl"]) .. "\n")
table.insert(ret, "| style=\"background-color: #F8F8FF;\" | " .. show_form(pass.forms[case_short .. "_pa"]) .. "\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. show_form(pass.forms[case_short .. "_pa"]) .. "\n")
table.insert(ret, "| style=\"background-color: #F8F8FF;\" | " .. show_form(pass.forms[case_short .. "_co"]) .. "\n")
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. show_form(pass.forms[case_short .. "_co"]) .. "\n")
end
end
end
end
Line 141: Line 141:
local wikicode = [=[
local wikicode = [=[
{| class="prettytable mw-collapsible" style="text-align: center;"
{| class="prettytable mw-collapsible" style="text-align: center;" style="background: #edfff6; border: 1px solid #d0d0d0; text-align: center;" cellspacing="1" cellpadding="2"
! style="font-style: italic; background-color: #00E8FF;" style="background:linear-gradient(to top right,#EAECF0 49.5%,#aaa 49.5%,#aaa 50.5%,#EAECF0 50.5%);line-height:1;" | <div style="margin-left:2em;text-align:right;">number&nbsp;&nbsp;&nbsp;</div><div style="margin-right:2em;text-align:left;">&nbsp;&nbsp;&nbsp;case</div>
! style="font-style: italic; background-color: #acf4cf" |
! style="font-style: italic; background-color: #DDF8FF;" | Singular]=] .. (no_plural and "\n" or [=[
! style="font-style: italic; background-color: #acf4cf" | Singular]=] .. (no_plural and "\n" or [=[


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