45,660
edits
No edit summary |
No edit summary |
||
Line 127: | Line 127: | ||
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! | table.insert(ret, "|- \n! style=\"font-style: italic; background-color: #40E0D0;\" | " .. case .. "\n") | ||
table.insert(ret, "| | 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 | ||
table.insert(ret, "| | table.insert(ret, "| style=\"background-color: #F8F8FF;\" | " .. show_form(pass.forms[case_short .. "_pl"]) .. "\n") | ||
table.insert(ret, "| | table.insert(ret, "| style=\"background-color: #F8F8FF;\" | " .. show_form(pass.forms[case_short .. "_pa"]) .. "\n") | ||
table.insert(ret, "| | table.insert(ret, "| style=\"background-color: #F8F8FF;\" | " .. show_form(pass.forms[case_short .. "_co"]) .. "\n") | ||
end | end | ||
end | end | ||
Line 142: | Line 142: | ||
local wikicode = [=[ | local wikicode = [=[ | ||
{| class="prettytable mw-collapsible | {| class="prettytable mw-collapsible" | ||
|- | |- | ||
! | ! style="font-style: italic; background-color: #549EA0;" | Case | ||
! | ! style="font-style: italic; background-color: #549EA0;" | Singular]=] .. (no_plural and "\n" or [=[ | ||
! | ! style="font-style: italic; background-color: #549EA0;" | Plural | ||
! | ! style="font-style: italic; background-color: #549EA0;" | Paucal | ||
! | ! style="font-style: italic; background-color: #549EA0;" | Collective | ||
]=]) .. make_cases(pass) .. [=[ | ]=]) .. make_cases(pass) .. [=[ | ||
|}]=] | |}]=] |