Module:siwa-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 47: Line 47:
genders = {},
genders = {},
pos_category = poscat,
pos_category = poscat,
categories = {"Siwa " .. (parent_args["proper"] and "proper nouns" or poscat)}
categories = {"Siwa " .. poscat}
}
}
Line 64: Line 64:
["head"] = {default = PAGENAME},
["head"] = {default = PAGENAME},
["decl"] = {},
["decl"] = {},
["p"] = {type = "boolean"},
}
}
Line 75: Line 76:
data.inflections[1].label = "marked"
data.inflections[1].label = "marked"
if args.decl then table.insert(data.categories, "Siwa " .. args.decl .. "-declension nouns") end
if args.decl then table.insert(data.categories, "Siwa " .. args.decl .. "-declension " .. (args.p and "proper nouns" or "nouns")) end
if args.p then
table.remove(data.categories, 1)
table.insert(data.categories, "Siwa proper nouns")
end
end
end


Navigation menu