47,637
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
local m_utils = require("Module:utilities") | local m_utils = require("Module:utilities") | ||
local | local m_d = 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 | if not m_d[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, | args = require("Module:parameters").process(parent_args, m_d[decl_type].params, true) | ||
if numbers then | if numbers then | ||
Line 69: | Line 69: | ||
-- Generate the forms | -- Generate the forms | ||
if | if m_d[word] then | ||
m_d[word](parent_args, data) | |||
else | else | ||
m_d[decl_type](args, data) | |||
end | end | ||