Module:siwa-headword: Difference between revisions

Undo revision 310570 by Sware (talk)
Tag: Undo
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 117: Line 117:
for n, kind in ipairs(mw.text.split(args[1], "/")) do
for n, kind in ipairs(mw.text.split(args[1], "/")) do
data.inflections[n] = {nil}
data.inflections[n].label = verb_key[kind]
if kind ~= "?" then
if kind ~= "?" then
data.inflections[n] = {nil}
data.inflections[n].label = verb_key[kind]
table.insert(data.categories, "Siwa " .. verb_key[kind] .. " verbs")
table.insert(data.categories, "Siwa " .. verb_key[kind] .. " verbs")
end
end
end
end
if args[2][1] ~= "-" then
args[2].label = "infinitive"
args[2].label = "infinitive"
table.insert(data.inflections, args[2])
table.insert(data.inflections, args[2])
end
if args[3][1] ~= "-" then
args[3].label = "past"
args[3].label = "past"
table.insert(data.inflections, args[3])
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
if args.cat2 then table.insert(data.categories, "Siwa " .. args["cat2"]) end
if args.cat2 then table.insert(data.categories, "Siwa " .. args["cat2"]) end
if args[1] == "?" or args[2] == "?" or args[3] == "?" then table.insert(data.categories, "Contionary stubs") end
data.sort_key = args["sort"] or nil
data.sort_key = args["sort"] or nil