Module:Check for unknown parameters: Difference between revisions
m
39 revisions imported from wikipedia:Module:Check_for_unknown_parameters
en>Johnuniq (update from sandbox to sanitize displayed parameters, replacing strip markers with "<tag>...</tag>" per User talk:Johnuniq#Check for unknown parameters) |
Squareblob (talk | contribs) m (39 revisions imported from wikipedia:Module:Check_for_unknown_parameters) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 35:
end
function p.
if type(args) ~= "table" or type(pargs) ~= "table" then
local args = frame.args▼
-- TODO: error handling
local pargs = frame:getParent().args▼
return
end
local ignoreblank = isnotempty(args['ignoreblank'])
local showblankpos = isnotempty(args['showblankpositional'])
Line 86 ⟶ 89:
-- add results to the output tables
if #values > 0 then
if
unknown = preview
end
Line 102 ⟶ 105:
return table.concat(res)
end
function p.check(frame)
▲ local args = frame.args
▲ local pargs = frame:getParent().args
return p._check(args, pargs)
end
|