Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 71: | Line 71: | ||
local args = {} | local args = {} | ||
local sv = NAMESPACE == "Template" and "i" or parent_args[2] | local sv = NAMESPACE == "Template" and "i" or parent_args[2] | ||
local decl_type = parent_args["decl"] or detect_decl(word, sv, g) | local decl_type = (parent_args["decl"] == "decl" and detect_decl(word, sv, g)) or parent_args["decl"] or detect_decl(word, sv, g) | ||
if g ~= "i" and g ~= "a" then error("Unknown gender: it must be either ‘i’ or ‘a’") end | if g ~= "i" and g ~= "a" then error("Unknown gender: it must be either ‘i’ or ‘a’") end | ||