Module:qhv-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 120: Line 120:
if not args["noinf"] then
if not args["noinf"] then
if args["gen"] then
if args["gen"] then
table.insert(data.inflections, args["gen"])
args["gen"] = args["gen"]
else
else
args["gen"] = table.insert(data.inflections, generate_gen_sg(args[2]))
args["gen"] = generate_gen_sg(args[2])
end
end
Line 130: Line 130:
args["gen"].label = "genitive"
args["gen"].label = "genitive"
table.insert(data.inflections, args["gen"])
end
end
Line 135: Line 136:
if not args["nopl"] then
if not args["nopl"] then
if args["pl"] then
if args["pl"] then
table.insert(data.inflections, args["pl"])
args["pl"] = args["pl"]
else
else
args["pl"] = table.insert(data.inflections, generate_nom_pl(args[2]))
args["pl"] = generate_nom_pl(args[2])
end
end
Line 145: Line 146:
args["pl"].label = "plural"
args["pl"].label = "plural"
table.insert(data.categories, args["pl"])
end
end
end
end

Navigation menu