Open main menu

Changes

Module:Check for unknown parameters

178 bytes added, 17:25, 7 January 2020
Added entry point for modules per talk page discussion. Report any errors on talk page.
end
function p.check _check(frameargs, pargs) local if type(args ) ~= frame.args local "table" or type(pargs ) ~= frame"table" then -- TODO:getParent().argserror handling return end 
local ignoreblank = isnotempty(args['ignoreblank'])
local showblankpos = isnotempty(args['showblankpositional'])
-- add results to the output tables
if #values > 0 then
if framemw.getCurrentFrame():preprocess( "{{REVISIONID}}" ) == "" then
unknown = preview
end
return table.concat(res)
end
 
function p.check(frame)
local args = frame.args
local pargs = frame:getParent().args
return p._check(args, pargs)
end
return p
Anonymous user