45,660
edits
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: # | table.insert(ret, "|- \n! style=\"font-style: italic; background-color: #dcffed;\" | " .. case .. "\n") | ||
table.insert(ret, "| style=\"background-color: # | 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: # | table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. show_form(pass.forms[case_short .. "_pl"]) .. "\n") | ||
table.insert(ret, "| style=\"background-color: # | table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. show_form(pass.forms[case_short .. "_pa"]) .. "\n") | ||
table.insert(ret, "| style=\"background-color: # | 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: #acf4cf" | | |||
! style="font-style: italic; background-color: # | ! style="font-style: italic; background-color: #acf4cf" | Singular]=] .. (no_plural and "\n" or [=[ | ||
! style="font-style: italic; background-color: # | ! style="font-style: italic; background-color: #acf4cf" | Plural | ||
! style="font-style: italic; background-color: # | ! style="font-style: italic; background-color: #acf4cf" | Paucal | ||
! style="font-style: italic; background-color: # | ! style="font-style: italic; background-color: #acf4cf" | Collective | ||
]=]) .. make_cases(pass) .. [=[ | ]=]) .. make_cases(pass) .. [=[ | ||
|}]=] | |}]=] |