Module:qhv-adj: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6: Line 6:


local m_utils = require("Module:utilities")
local m_utils = require("Module:utilities")
local m_d = require('Module:qhv-adj/data')
local m_data = require('Module:qhv-adj/data')
local PAGENAME = mw.title.getCurrentTitle().text
local PAGENAME = mw.title.getCurrentTitle().text
local NAMESPACE = mw.title.getCurrentTitle().nsText
local NAMESPACE = mw.title.getCurrentTitle().nsText
Line 39: Line 39:
local args = {}
local args = {}


if not m_d[word] then
if not m_data[word] then
if frame.args.decl then
if frame.args.decl then
decl_type = frame.args.decl
decl_type = frame.args.decl
Line 55: Line 55:
end
end
args = require("Module:parameters").process(parent_args, m_d[decl_type].params, true)
args = require("Module:parameters").process(parent_args, m_data[decl_type].params, true)
if numbers then
if numbers then
Line 69: Line 69:
-- Generate the forms
-- Generate the forms
if m_d[word] then
if m_data[word] then
m_d[word](parent_args, data)
m_data[word](parent_args, data)
else
else
m_d[decl_type](args, data)
m_data[decl_type](args, data)
end
end