45,660
edits
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
local m_utils = require("Module:utilities") | local m_utils = require("Module:utilities") | ||
local | local alldata = require('Module:qhv-noun/data') | ||
local export = {} | local export = {} | ||
Line 52: | Line 52: | ||
local args = {} | local args = {} | ||
if not | if not alldata[word] then | ||
if frame.args.decl then | if frame.args.decl then | ||
decl_type = frame.args.decl | decl_type = frame.args.decl | ||
Line 68: | Line 68: | ||
end | end | ||
args = require("Module:parameters").process(parent_args, | args = require("Module:parameters").process(parent_args, alldata[decl_type].params, true) | ||
if stems then | if stems then | ||
Line 82: | Line 82: | ||
-- Generate the forms | -- Generate the forms | ||
if | if alldata[word] then | ||
alldata[word](parent_args, pass) | |||
else | else | ||
alldata[decl_type](args, pass) | |||
end | end | ||