Module:qhv-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 75: Line 75:
end
end
end
end
local pass = {forms = {}, categories = {}}
pass.head = parent_args["head"] or nil
-- Generate the forms
-- Generate the forms
if alldata[word] then
if alldata[word] then
return alldata[word](arguments).forms[arguments[2] .. "-" .. arguments[3]]
return alldata[word](arguments, pass).forms[arguments[2] .. "-" .. arguments[3]]
else
else
return alldata[decl_type](args).forms[arguments[2] .. "-" .. arguments[3]]
return alldata[decl_type](args, pass).forms[arguments[2] .. "-" .. arguments[3]]
end
end
end
end