Module:rad-stem/templates: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 555: Line 555:
add("<small>")
add("<small>")
if table_type == "impers" then -- impersonal table
local cite = ""
if (type(pp.inf) == "table") then cite = pp['inf'][1]['word'] else cite = pp.inf end
add("<table class=\"mw-collapsible mw-collapsed wikitable inflection table\" width=70% style=\"text-align: center\">")
tr()
th("Conjugation of ''" .. cite .. "'' (impersonal) &nbsp;", 1, 5)
_tr()
th("nonfinite forms", 1, 5)
_tr()
th("infinitive", 1, 3)
td(get_forms(pp.inf), 1, 2)
_tr()
th("connegative", 1, 3)
td(get_forms(pp.inf,"a","([^a])uta$","%1ûta"), 1, 2)
_tr()
th("supine", 1, 3)
td(get_forms(pp.inf,"úr", "([^a])utúr$","%1ûtúr"), 1, 2)
_tr()
th("adverbial participle", 2, 2)
th("present")
td(get_forms(pp.prespart,"vú"), 1, 2)
_tr()
th("past")
td(get_forms(pp.pspart,"l"), 1, 2)
_tr()
th("finite forms", 3, 3)
th("singular", 1, 2)
_tr()
th("third")
th("depersonal")
_tr()
th("∅")
th("''" .. rad_link("gjeș") .. " …''")
_tr()
th("simple", 6, 1)
th("indicative", 2, 1)
th("non-past")
if pp['3s'] == (pp.depers or pp['2s']) then
td(get_forms(pp['3s']), 1, 2)
else
td(get_forms(pp['3s']))
td(get_forms(pp.depers or pp['2s'], "", "nv$", "nu"))
end
_tr()
th("past")
if pp.epst then
td(get_forms(pp.epst,"ș"))
td(get_forms(pp.epst))
else
td(get_forms(pp.pst,"eș"))
td(get_forms(pp.pst,"e"))
end
_tr()
th("subjunctive",2,1)
th("non-past")
td(get_forms(pp.a,"ș"))
td(get_forms(pp.a))
_tr()
th("past")
td(get_forms(pp.pst,"aiș", "aaiș$", "áeș"))
td(get_forms(pp.pst,"ai", "aai$", "áe"))
_tr()
th("optative",2,1)
th("non-past")
td(get_forms(pp['2s'],"úș"))
td(get_forms(pp['2s'],"ú"))
_tr()
th("past")
if pp.epst then
td(get_forms(pp.epst,"veș"))
td(get_forms(pp.epst,"ve"))
else
td(get_forms(pp.pst,"eveș"))
td(get_forms(pp.pst,"eve"))
end
_tr()
th("habitual",6,1)
th("indicative",2,1)
th("non-past")
td(get_forms(pp.r,"iș"))
td(get_forms(pp.r,"i"))
_tr()
th("past")
if pp.epst then
td(get_forms(pp.epst,"riș"))
td(get_forms(pp.epst,"ri"))
else
td(get_forms(pp.pst,"eriș"))
td(get_forms(pp.pst,"eri"))
end
_tr()
th("subjunctive",2,1)
th("non-past")
td(get_forms(pp.a,"riș"))
td(get_forms(pp.a,"ri"))
_tr()
th("past")
td(get_forms(pp.pst,"airiș", "aairiș$", "áeriș"))
td(get_forms(pp.pst,"airi", "aairi$", "áeri"))
_tr()
th("optative",2,1)
th("non-past")
td(get_forms(pp['2s'],"úriș"))
td(get_forms(pp['2s'],"úri"))
_tr()
th("past")
if pp.epst then
td(get_forms(pp.epst,"veriș"))
td(get_forms(pp.epst,"veri"))
else
td(get_forms(pp.pst,"everiș"))
td(get_forms(pp.pst,"everi"))
end
tr_()
add("</table>")
add("<table class=\"mw-collapsible mw-collapsed wikitable inflection table\" width=70% style=\"text-align: center\">")
tr()
th("Compound forms of ''" .. cite .. "'' (impersonal) &nbsp;", 1, 5)
_tr()
th("", 3, 3)
th("singular", 1, 2)
_tr()
th("third")
th("depersonal")
_tr()
th("∅")
th("''" .. rad_link("gjeș") .. " …''")
_tr()
th("continuous",7,1)
th("infinitive",1,2)
td(get_forms(pp.prespart,"vú","vat",true),1,2)
_tr()
th("indicative",2,1)
th("non-past")
td(get_forms(pp.prespart,"vú","vaș",true))
td(get_forms(pp.prespart,"vú",_,true))
_tr()
th("past")
td(get_forms(pp.prespart,"vú","hâleș",true))
td(get_forms(pp.prespart,"vú","hâle",true))
_tr()
th("subjunctive",2,1)
th("non-past")
td(get_forms(pp.prespart,"vú","vagaș",true))
td(get_forms(pp.prespart,"vú","vaga",true))
_tr()
th("past")
td(get_forms(pp.prespart,"vú","hâlaiș",true))
td(get_forms(pp.prespart,"vú","hâlai",true))
_tr()
th("optative",2,1)
th("non-past")
td(get_forms(pp.prespart,"vú","vagúș",true))
td(get_forms(pp.prespart,"vú","vagú",true))
_tr()
th("past")
td(get_forms(pp.prespart,"vú","hâleveș",true))
td(get_forms(pp.prespart,"vú","hâleve",true))
_tr()
th("perfective",7,1)
th("infinitive",1,2)
td(get_forms(pp.pspart,"l","-at",true),1,2)
_tr()
th("indicative",2,1)
th("perfect")
td(get_forms(pp.pspart,"l","-aș",true))
td(get_forms(pp.pspart,"l", _,true))
_tr()
th("pluperfect")
td(get_forms(pp.pspart,"l","-âleș",true))
td(get_forms(pp.pspart,"l","-âle",true))
_tr()
th("subjunctive",2,1)
th("perfect")
td(get_forms(pp.pspart,"l","-agaș",true))
td(get_forms(pp.pspart,"l","-aga",true))
_tr()
th("pluperfect")
td(get_forms(pp.pspart,"l","-âlaiș",true))
td(get_forms(pp.pspart,"l","-âlai",true))
_tr()
th("optative",2,1)
th("perfect")
td(get_forms(pp.pspart,"l","-agúș",true))
td(get_forms(pp.pspart,"l","-agú",true))
_tr()
th("pluperfect")
td(get_forms(pp.pspart,"l","-âleveș",true))
td(get_forms(pp.pspart,"l","-âleve",true))
_tr()
th("Negative compound forms of ''" .. cite .. "'' (impersonal)",1,5)
_tr()
th("continuous",7,1)
th("infinitive",1,2)
td(get_forms(pp.prespart,"vú","hjeat",true),1,2)
_tr()
th("indicative",2,1)
th("non-past")
td(get_forms(pp.prespart,"vú","hjeaș",true))
td(get_forms(pp.prespart,"vú","hje",true))
_tr()
th("past")
td(get_forms(pp.prespart,"vú","húeș",true))
td(get_forms(pp.prespart,"vú","húe",true))
_tr()
th("subjunctive",2,1)
th("non-past")
td(get_forms(pp.prespart,"vú","hjeàș",true))
td(get_forms(pp.prespart,"vú","hjeà",true))
_tr()
th("past")
td(get_forms(pp.prespart,"vú","húaiș",true))
td(get_forms(pp.prespart,"vú","húai",true))
_tr()
th("optative",2,1)
th("non-past")
td(get_forms(pp.prespart,"vú","hjeúș",true))
td(get_forms(pp.prespart,"vú","hjeú",true))
_tr()
th("past")
td(get_forms(pp.prespart,"vú","húeveș",true))
td(get_forms(pp.prespart,"vú","húeve",true))
_tr()
th("perfective",7,1)
th("infinitive",1,2)
td(get_forms(pp.pspart,"l","hjeat",true),1,2)
_tr()
th("indicative",2,1)
th("perfect")
td(get_forms(pp.pspart,"l","hjeaș",true))
td(get_forms(pp.pspart,"l", "hje",true))
_tr()
th("pluperfect")
td(get_forms(pp.pspart,"l","-úeș",true))
td(get_forms(pp.pspart,"l","-úe",true))
_tr()
th("subjunctive",2,1)
th("perfect")
td(get_forms(pp.pspart,"l","hjeàș",true))
td(get_forms(pp.pspart,"l","hjeà",true))
_tr()
th("pluperfect")
td(get_forms(pp.pspart,"l","-úaiș",true))
td(get_forms(pp.pspart,"l","-úai",true))
_tr()
th("optative",2,1)
th("perfect")
td(get_forms(pp.pspart,"l","hjeúș",true))
td(get_forms(pp.pspart,"l","hjeú",true))
_tr()
th("pluperfect")
td(get_forms(pp.pspart,"l","-úeveș",true))
td(get_forms(pp.pspart,"l","-úeve",true))
tr_()
add("</table>")
end
if table_type == "intr" or table_type == "tr" then -- active table
if table_type == "intr" or table_type == "tr" then -- active table
local cite = ""
local cite = ""
Line 619: Line 877:
th("''" .. rad_link("lește") .. "''")
th("''" .. rad_link("lește") .. "''")
th("''" .. rad_link("vâs") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("vâs") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("gjei") .. ", " .. rad_link("gjen") .. ", " .. rad_link("gjeș") .. "''")
th("''" .. rad_link("gjei") .. ", " .. rad_link("gjen") .. ", " .. rad_link("gjeș") .. " ''")
th("''" .. rad_link("dzun") .. ", " .. rad_link("sted") .. "''")
th("''" .. rad_link("dzun") .. ", " .. rad_link("sted") .. "''")
th("''" .. rad_link("dzate") .. "''")
th("''" .. rad_link("dzate") .. "''")
th("''" .. rad_link("sjáște") .. "''")
th("''" .. rad_link("sjáște") .. "''")
th("''" .. rad_link("vír") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("vír") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("gjes") .. ", " .. rad_link("gjete") .. ", " .. rad_link("gje") .. ", " .. rad_link("gjen") .. "''")
th("''" .. rad_link("gjes") .. ", " .. rad_link("gjete") .. ", " .. rad_link("gje") .. ", " .. rad_link("gjen") .. " ''")
th("''" .. rad_link("sja") .. ", " .. rad_link("lai") .. "''")
th("''" .. rad_link("sja") .. ", " .. rad_link("lai") .. "''")
_tr()
_tr()
Line 874: Line 1,132:
th("''" .. rad_link("lește") .. "''")
th("''" .. rad_link("lește") .. "''")
th("''" .. rad_link("vâs") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("vâs") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("gjei") .. ", " .. rad_link("gjen") .. ", " .. rad_link("gjeș") .. "''")
th("''" .. rad_link("gjei") .. ", " .. rad_link("gjen") .. ", " .. rad_link("gjeș") .. " ''")
th("''" .. rad_link("dzun") .. ", " .. rad_link("sted") .. "''")
th("''" .. rad_link("dzun") .. ", " .. rad_link("sted") .. "''")
th("''" .. rad_link("dzate") .. "''")
th("''" .. rad_link("dzate") .. "''")
th("''" .. rad_link("sjáște") .. "''")
th("''" .. rad_link("sjáște") .. "''")
th("''" .. rad_link("vír") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("vír") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("gjes") .. ", " .. rad_link("gjete") .. ", " .. rad_link("gje") .. ", " .. rad_link("gjen") .. "''")
th("''" .. rad_link("gjes") .. ", " .. rad_link("gjete") .. ", " .. rad_link("gje") .. ", " .. rad_link("gjen") .. " ''")
th("''" .. rad_link("sja") .. ", " .. rad_link("lai") .. "''")
th("''" .. rad_link("sja") .. ", " .. rad_link("lai") .. "''")
_tr()
_tr()
Line 1,238: Line 1,496:
th("''" .. rad_link("lește") .. "''")
th("''" .. rad_link("lește") .. "''")
th("''" .. rad_link("vâs") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("vâs") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("gjei") .. ", " .. rad_link("gjen") .. ", " .. rad_link("gjeș") .. "''")
th("''" .. rad_link("gjei") .. ", " .. rad_link("gjen") .. ", " .. rad_link("gjeș") .. " ''")
th("''" .. rad_link("dzun") .. ", " .. rad_link("sted") .. "''")
th("''" .. rad_link("dzun") .. ", " .. rad_link("sted") .. "''")
th("''" .. rad_link("dzate") .. "''")
th("''" .. rad_link("dzate") .. "''")
th("''" .. rad_link("sjáște") .. "''")
th("''" .. rad_link("sjáște") .. "''")
th("''" .. rad_link("vír") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("vír") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("gjes") .. ", " .. rad_link("gjete") .. ", " .. rad_link("gje") .. ", " .. rad_link("gjen") .. "''")
th("''" .. rad_link("gjes") .. ", " .. rad_link("gjete") .. ", " .. rad_link("gje") .. ", " .. rad_link("gjen") .. " ''")
th("''" .. rad_link("sja") .. ", " .. rad_link("lai") .. "''")
th("''" .. rad_link("sja") .. ", " .. rad_link("lai") .. "''")
_tr()
_tr()
Line 1,430: Line 1,688:
th("''" .. rad_link("lește") .. "''")
th("''" .. rad_link("lește") .. "''")
th("''" .. rad_link("vâs") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("vâs") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("gjei") .. ", " .. rad_link("gjen") .. ", " .. rad_link("gjeș") .. "''")
th("''" .. rad_link("gjei") .. ", " .. rad_link("gjen") .. ", " .. rad_link("gjeș") .. " ''")
th("''" .. rad_link("dzun") .. ", " .. rad_link("sted") .. "''")
th("''" .. rad_link("dzun") .. ", " .. rad_link("sted") .. "''")
th("''" .. rad_link("dzate") .. "''")
th("''" .. rad_link("dzate") .. "''")
th("''" .. rad_link("sjáște") .. "''")
th("''" .. rad_link("sjáște") .. "''")
th("''" .. rad_link("vír") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("vír") .. ", " .. rad_link("vara") .. "''")
th("''" .. rad_link("gjes") .. ", " .. rad_link("gjete") .. ", " .. rad_link("gje") .. ", " .. rad_link("gjen") .. "''")
th("''" .. rad_link("gjes") .. ", " .. rad_link("gjete") .. ", " .. rad_link("gje") .. ", " .. rad_link("gjen") .. " ''")
th("''" .. rad_link("sja") .. ", " .. rad_link("lai") .. "''")
th("''" .. rad_link("sja") .. ", " .. rad_link("lai") .. "''")
_tr()
_tr()
Line 1,743: Line 2,001:
for i, j in pairs(pp) do
for i, j in pairs(pp) do
if not (table_type == "intr" and i == "rpst") and i~= "vstem" and i~= "t" and i~="pre" then
local nonforms = {["vstem"] = true, ["t"] = true, ["pre"] = true}
if not ((table_type == "intr" or table_type == "impers") and i == "rpst") and not nonforms[i] and not ((i == "apst" or i == "rpst" or i == "pl" or i == "vnoun" or i == "1s") and table_type == "impers") then
if type(j) == "string" then
if type(j) == "string" then
table.insert(review, "* <code>" .. string.upper(i) .. "</code>: '''" .. j .. "'''" .. endings[i])
table.insert(review, "* <code>" .. string.upper(i) .. "</code>: '''" .. j .. "'''" .. endings[i])
Line 1,756: Line 2,015:
end
end
if pp.pl == nil then
if pp.pl == nil and table_type ~= "impers" then
if type(pp['2s']) == "table" then
if type(pp['2s']) == "table" then
for i,j in ipairs(pp['2s']) do
for i,j in ipairs(pp['2s']) do
Line 1,778: Line 2,037:
end
end
end
end
if pp.imp == nil then
if pp.imp == nil and table_type ~= "impers" then
if type(pp.a) == "table" then
if type(pp.a) == "table" then
if pp.vstem then
if pp.vstem then

Navigation menu