2,788
edits
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
for _, v in ipairs(arg) do table.insert(inflection, v) end | for _, v in ipairs(arg) do table.insert(inflection, v) end | ||
table.insert(inflections, inflection) | table.insert(inflections, inflection) | ||
end | |||
function export.verb(frame) | |||
local args = m_parameters.process(frame:getParent().args, { | |||
g = {list = true}, | |||
head = {}, | |||
pfv = {list = true}, | |||
impfv = {list = true}, | |||
pass = {list = true}, | |||
["pres-3s"] = {list = true}, | |||
["rem-3s"] = {list = true}, | |||
}) | |||
local inflections = {} | |||
insert_if_any(inflections, args["pfv"], "perfective", true) | |||
insert_if_any(inflections, args["impfv"], "imperfective", true) | |||
insert_if_any(inflections, args["pres-3s"], "3rd person singular present") | |||
insert_if_any(inflections, args["rem-3s"], "3rd person singular remote past") | |||
insert_if_any(inflections, args["pass"], "passive participle") | |||
return m_head.full_head{ | |||
term = mw.title.getCurrentTitle().text, | |||
head = args["head"], | |||
language = lfv, | |||
pos = "verb", | |||
genders = args["g"], | |||
inflections = inflections, | |||
} | |||
end | end | ||