45,647
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_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 | 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, | 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 | if m_data[word] then | ||
m_data[word](parent_args, data) | |||
else | else | ||
m_data[decl_type](args, data) | |||
end | end | ||