Module:qhv-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 131: Line 131:
if data.pos_category == "nouns" and not args["noinf"] then
if data.pos_category == "nouns" and not args["noinf"] then
if not args["nopl"] then
if not args["nopl"] then
if args["pl"] then
local plural = args["pl"] and {args["pl"]} or generate_nom_pl(args[2])
args["pl"] = {args["pl"]}
else
args["pl"] = generate_nom_pl(args[2])
end
for i, form in ipairs(args["pl"]) do
for i, form in ipairs(plural) do
args["pl"][i] = {term = form}
plural[i] = {term = form}
end
end
args["pl"].label = "plural"
plural.label = "plural"
table.insert(data.categories, args["pl"])
table.insert(data.categories, plural)
end
end
end
end

Navigation menu