Module:qhv-verb: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 139: Line 139:
for _, mood in ipairs(moods) do
for _, mood in ipairs(moods) do
if mood[1] == "imp" then tenses = {{"prs", "present"}, {"aor", "aorist"}, {"fut", "future"}} end
table.insert(ret, "|-\n! rowspan='8' style='background: #7AB350; width: 7em' | " .. mood[2] .. "\n")
table.insert(ret, "|-\n! rowspan='8' style='background: #7AB350; width: 7em' | " .. mood[2] .. "\n")
for _, tense in ipairs(tenses) do
for _, tense in ipairs(tenses) do
Line 146: Line 145:
for i=1, 3 do
for i=1, 3 do
table.insert(ret, "| " .. link(show_form(data.forms[(match(mode, "%s(.*)$") == "active" and "act" or "pas") .. "_" .. mood[1] .. "_" .. tense[1] .. "_" .. tostring(i) .. number])) .. "\n")
table.insert(ret, "| " .. link(show_form(data.forms[(match(mode, "%s(.*)$") == "active" and "act" or "pas") .. "_" .. mood[1] .. "_" .. tense[1] .. "_" .. tostring(i) .. number])) .. "\n")
if (tense[1] == "hab") and (i == 3) and (number == "pl") and (mood[1] ~= "imp") then table.insert(ret, "|-\n! style='background:#808080; height:.2em' colspan='9' |\n") end
if (tense[1] == "hab") and (i == 3) and (number == "pl") then table.insert(ret, "|-\n! style='background:#808080; height:.2em' colspan='9' |\n") end
end
end
end
end
Line 185: Line 184:
|-
|-
]=] .. make_cases(data, "finite active") .. [=[
]=] .. make_cases(data, "finite active") .. [=[
|-
! rowspan="7" style="background: #7AB350; width: 7em" | imperative
! style="background: #ADE981; width: 7em" | present
| rowspan="3" | —
| ]=] .. link(show_form(data.forms["act_imp_prs_2sg"])) .. [=[
| rowspan="3" colspan="2" | —
| ]=] .. link(show_form(data.forms["act_imp_prs_2pl"])) .. [=[
| rowspan="3" | —
|-
! style="background: #ADE981; width: 7em" | aorist
| rowspan="3" | —
| ]=] .. link(show_form(data.forms["act_imp_aor_2sg"])) .. [=[
| rowspan="3" colspan="2" | —
| ]=] .. link(show_form(data.forms["act_imp_aor_2pl"])) .. [=[
| rowspan="3" | —
|-
! style="background: #ADE981; width: 7em" | future
| rowspan="3" | —
| ]=] .. link(show_form(data.forms["act_imp_fut_2sg"])) .. [=[
| rowspan="3" colspan="2" | —
| ]=] .. link(show_form(data.forms["act_imp_fut_2pl"])) .. [=[
| rowspan="3" | —
|-
|-
|}<ul style="margin-left:0px;"></ul>
|}<ul style="margin-left:0px;"></ul>