Module:qay-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 35: Line 35:
local word = NAMESPACE == "Template" and "bahis" or parent_args["word"] or PAGENAME
local word = NAMESPACE == "Template" and "bahis" or parent_args["word"] or PAGENAME
local args = {}
local args = {}
local decl_type = NAMESPACE == "Template" and "in_c" --or sub(genders[parent_args[1]],1,2) .. "_" .. detect_decl(word) or parent_args["decl"]  
local decl_type = NAMESPACE == "Template" and "in_c" or sub(genders[parent_args[1]],1,2) .. "_" .. detect_decl(word) or parent_args["decl"]  
if not genders[g] then error("Unknown gender.") end
if not genders[g] then error("Unknown gender.") end