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: #dcffed;\" | " .. case .. "\n")
table.insert(ret, "|- \n! style=\"text-align: left; 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="prettytable mw-collapsible" style="text-align: center;" style="background: #edfff6; border: 1px solid #d0d0d0; text-align: center;" cellspacing="1" cellpadding="2"
{| class="mw-collapsible" style="text-align: center;" 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>
|-
|-
! style="font-style: italic; background-color: #acf4cf" |  
! style="background-color: #acf4cf" |  
! style="font-style: italic; background-color: #acf4cf" | Singular]=] .. (no_plural and "\n" or [=[
! style="background-color: #acf4cf" | Singular]=] .. (no_plural and "\n" or [=[


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