Module:qhv-headword: Difference between revisions

No edit summary
No edit summary
Line 58: Line 58:
-- This is the only function that can be invoked from a template.
-- This is the only function that can be invoked from a template.
function export.show(frame)
function export.show(frame)
local args = frame:getParent().args
local frame_args = frame.args
local parent_args = frame:getParent().args
PAGENAME = mw.title.getCurrentTitle().text
PAGENAME = mw.title.getCurrentTitle().text
Line 89: Line 90:
local args = require("Module:parameters").process(args, params)
local args = require("Module:parameters").process(args, params)
local decl_type = require("Module:qhv-noun").detect_decl(table.concat(data.heads), args["number"], args["class"])
local decl_args = require("Module:parameters").process(parent_args, m_data[decl_type].params, true)
data.heads = {args["head"]}
data.heads = {args["head"]}
local decl_type = require("Module:qhv-noun").detect_decl(table.concat(data.heads), args["number"], args["class"])
-- Gender
-- Gender