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=\" | table.insert(ret, "|- \n! style=\"background-color: #dcffed;\" | " .. case .. "\n") | ||
table.insert(ret, "| style=\"background-color: #edfff6;\" | " .. 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 | ||
Line 141: | Line 141: | ||
local wikicode = [=[ | local wikicode = [=[ | ||
{| class="mw-collapsible" style="margin: 1em 1em 1em 0; border-collapse: collapse; text-align: | {| class="mw-collapsible" style="margin: 1em 1em 1em 0; border-collapse: collapse; text-align: left;" style="background: #edfff6; border: 1px solid #d0d0d0; text-align: center;" cellspacing="1" cellpadding="2" | ||
|- | |- | ||
! style="background-image: -webkit-gradient(linear,left top,left bottom,from(#EFEFEF),to(#DFDFDF),color-stop(0.6,#E3E3E3)); background-image: -moz-linear-gradient(top,#EFEFEF,#E3E3E3 60%,#DFDFDF); background-image: -o-linear-gradient(top,#EFEFEF,#E3E3E3 60%,#DFDFDF);" colspan="]=] .. (no_plural and "3" or "6") .. [=[" | Declension of <span lang="qhv">{{{title}}} ({{{decl_type}}})</span> | ! style="background-image: -webkit-gradient(linear,left top,left bottom,from(#EFEFEF),to(#DFDFDF),color-stop(0.6,#E3E3E3)); background-image: -moz-linear-gradient(top,#EFEFEF,#E3E3E3 60%,#DFDFDF); background-image: -o-linear-gradient(top,#EFEFEF,#E3E3E3 60%,#DFDFDF);" colspan="]=] .. (no_plural and "3" or "6") .. [=[" | Declension of <span lang="qhv">{{{title}}} ({{{decl_type}}})</span> |