Module:qay-noun: Difference between revisions

no edit summary
(Created page with "local export = {} local m_u = require('Module:utilities') local m_data = require('Module:qay-noun/data') local sub = mw.ustring.sub local find = mw.ustring.find local match...")
 
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 = parent_args[1] .. "_" .. detect_decl(word) or parent_args["decl"]
local decl_type = parent_args[1] .. "_" .. detect_decl(word) or parent_args["decl"] or NAMESPACE == "Template" and "in_c"
if g ~= "in" and g ~= "an" and g ~= "?" then error("Unknown gender: it must be either ‘in’ or ‘an’") end
if g ~= "in" and g ~= "an" and g ~= "?" then error("Unknown gender: it must be either ‘in’ or ‘an’") end