Module:mg-noun: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 37: Line 37:
local word = NAMESPACE == "Template" and "mazer" or parent_args["word"] or PAGENAME
local word = NAMESPACE == "Template" and "mazer" or parent_args["word"] or PAGENAME
local args = {}
local args = {}
local decl_type = parent_args[2] or parent_args["decl"] or detect_decl(word)
local decl_type = NAMESPACE == "Template" and "r" or parent_args[2] or parent_args["decl"] or detect_decl(word)
if g ~= "m" and g ~= "f" and g ~= "?" then error("Unknown gender: it must be either ‘m’ or ‘f’") end
if g ~= "m" and g ~= "f" and g ~= "?" then error("Unknown gender: it must be either ‘m’ or ‘f’") end