Module:qhv-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:


local m_utils = require("Module:utilities")
local m_utils = require("Module:utilities")
local m_data = require('Module:qhv-noun/data')
local alldata = require('Module:qhv-noun/data')


local export = {}
local export = {}
Line 52: Line 52:
local args = {}
local args = {}


if not m_data[word] then
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, m_data[decl_type].params, true)
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 m_data[word] then
if alldata[word] then
m_data[word](parent_args, pass)
alldata[word](parent_args, pass)
else
else
m_data[decl_type](args, pass)
alldata[decl_type](args, pass)
end
end