10,731
edits
TheNightAvl (talk | contribs) No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
TheNightAvl (talk | contribs) No edit summary |
||
Line 242: | Line 242: | ||
genpl = args['genpl'] or stem_gen.genpl, | genpl = args['genpl'] or stem_gen.genpl, | ||
genpl_short = args['genpl_short'] or stem_gen.genpl_short, | genpl_short = args['genpl_short'] or stem_gen.genpl_short, | ||
anim = args['anim'] or stem_gen.anim, | |||
['type'] = stem_gen['type'], | ['type'] = stem_gen['type'], | ||
} | } | ||
Line 365: | Line 366: | ||
local accdu = get_forms("accdu", stems.dat .. "tid", adj, "erid") | local accdu = get_forms("accdu", stems.dat .. "tid", adj, "erid") | ||
local insdu = get_forms("insdu", stems.dat .. "tíe", adj, "eríe") | local insdu = get_forms("insdu", stems.dat .. "tíe", adj, "eríe") | ||
--adjectives only | |||
local anim_gen = get_forms("anim_gen", stems.anim .. "esk", adj, "esk") | |||
local anim_dat = get_forms("anim_dat", stems.anim .. "en", adj, "en") | |||
local anim_acc = get_forms("anim_acc", stems.anim .. "est", adj, "est") | |||
local anim_ins = get_forms("anim_ins", stems.anim .. "evúr", adj, "evúr") | |||
add("<table class=\"mw-collapsible mw-collapsed wikitable inflection table\" style=\"text-align: center\">") | add("<table class=\"mw-collapsible mw-collapsed wikitable inflection table\" style=\"text-align: center\">") | ||
if table_type == "sgpl" or table_type == "adj" then | if table_type == "sgpl" or table_type == "adj" then | ||
if table_type == "adj" then | if table_type == "adj" then | ||
th("Substantive declension of <i>" .. nom_cite .. "</i> ", 1, | th("Substantive declension of <i>" .. nom_cite .. "</i> ", 1, 5) | ||
else | else | ||
th("Declension of <i>" .. nom_cite .. "</i> (" .. type_name .. ") ", 1, 4) | th("Declension of <i>" .. nom_cite .. "</i> (" .. type_name .. ") ", 1, 4) | ||
Line 375: | Line 382: | ||
tr() | tr() | ||
th("", 1, 2) | if table_type == "adj" then | ||
th("singular") | th("", 2, 2) | ||
th("singular", 1, 2) | |||
th("plural", 2, 1) | |||
_tr() | |||
th("inanimate") | |||
th("animate") | |||
else | |||
th("", 1, 2) | |||
th("singular") | |||
th("plural") | |||
end | |||
_tr() | _tr() | ||
th("nominative", 1, 2) | th("nominative", 1, 2) | ||
if nom == nompl then | if table_type == "adj" then | ||
td(nompl, 2, 3) | |||
elseif nom == nompl then | |||
td(nompl, 2, 2) | td(nompl, 2, 2) | ||
elseif nom == voc then | elseif nom == voc then | ||
Line 391: | Line 409: | ||
_tr() | _tr() | ||
th("vocative", 1, 2) | th("vocative", 1, 2) | ||
if nom ~= nompl and nom ~= voc then td(voc) end | if nom ~= nompl and nom ~= voc and table_type ~= "adj" then td(voc) end | ||
_tr() | _tr() | ||
th("genitive", 2, 1) | th("genitive", 2, 1) | ||
th("long") | th("long") | ||
td(gen, 2, 1) | td(gen, 2, 1) | ||
if table_type == "adj" then td(anim_gen, 2, 1) end | |||
td(genpl) | td(genpl) | ||
_tr() | _tr() | ||
Line 403: | Line 422: | ||
th("dative", 1, 2) | th("dative", 1, 2) | ||
td(dat) | td(dat) | ||
if table_type == "adj" then td(anim_dat) end | |||
td(datpl) | td(datpl) | ||
_tr() | _tr() | ||
th("accusative", 1, 2) | th("accusative", 1, 2) | ||
td(acc) | td(acc) | ||
if table_type == "adj" then td(anim_acc) end | |||
td(accpl) | td(accpl) | ||
_tr() | _tr() | ||
th("instrumental", 1, 2) | th("instrumental", 1, 2) | ||
td(ins) | td(ins) | ||
if table_type == "adj" then td(anim_ins) end | |||
td(inspl) | td(inspl) | ||
tr_() | tr_() |