Module:taln-headword: Difference between revisions
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") | error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") | ||
local | local iargs = require("Module:parameters").process(frame.args, iparams) | ||
local args = frame:getParent().args | |||
local poscat = iargs[1] | |||
local params = { | local params = { | ||
| Line 27: | Line 29: | ||
} | } | ||
if pos_functions[poscat] then | |||
local posparams = pos_functions[poscat].params | local posparams = pos_functions[poscat].params | ||
if type(posparams) == "function" then | if type(posparams) == "function" then | ||
| Line 60: | Line 62: | ||
tr = args.tr[i], | tr = args.tr[i], | ||
}) | }) | ||
end | end | ||