Module:qhv-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 100: Line 100:
[1] = {default = detect_gender(PAGENAME)},
[1] = {default = detect_gender(PAGENAME)},
["nopl"] = {},
["nopl"] = {},
["noinf"] = {},
["gen"] = {},
["gen"] = {},
["pl"] = {},
["pl"] = {},
Line 108: Line 109:
data.heads = {args["head"]}
data.heads = {args["head"]}
table.insert(data.genders, args[1])
if not args["noinf"] then
table.insert(data.categories, "High Valyrian " .. gender_names[args[1]] .. " " .. data.pos_category)
table.insert(data.genders, args[1])
table.insert(data.categories, "High Valyrian " .. gender_names[args[1]] .. " " .. data.pos_category)
args["gen"] = generate_gen_sg()
args["gen"] = generate_gen_sg()
for i, form in ipairs(args["gen"]) do
for i, form in ipairs(args["gen"]) do
args["gen"][i] = {term = form}
args["gen"][i] = {term = form}
end
args["gen"].label = "genitive"
table.insert(data.inflections, args["gen"])
end
end
args["gen"].label = "genitive"
if data.pos_category == "nouns" and not args["noinf"] then
table.insert(data.inflections, args["gen"])
if data.pos_category == "nouns" then
if not args["nopl"] then
if not args["nopl"] then
args["pl"] = generate_nom_pl()
args["pl"] = generate_nom_pl()

Navigation menu