Module:siwa-headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 100: Line 100:
local params = {
local params = {
[1] = {required = true},
[1] = {required = true},
[2] = {list = "inf", required = true},
[2] = {list = "inf"},
[3] = {list = "p", required = true},
[3] = {list = "p"},
[4] = {type = "boolean"},
[4] = {type = "boolean"},
["head"] = {},
["head"] = {},
Line 117: Line 117:
end
end
args[2].label = "infinitive"
if args[2] then
if args[2] ~= "-" then table.insert(data.inflections, args[2]) end
args[2].label = "infinitive"
table.insert(data.inflections, args[2])
args[3].label = "past"
end
table.insert(data.inflections, args[3])
if args[3] then
args[3].label = "past"
table.insert(data.inflections, args[3])
end
if args[4] then table.insert(data.categories, "Siwa irregular verbs") end
if args[4] then table.insert(data.categories, "Siwa irregular verbs") end