「モジュール:Check for unknown parameters」の版間の差分

削除された内容 追加された内容
警告メッセージを少し変更
en:Module:Check for unknown parameters oldid=934641291 より更新
 
35行目:
end
 
function p.check _check(frameargs, pargs)
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'])
86 ⟶ 88行目:
-- add results to the output tables
if #values > 0 then
if framemw.getCurrentFrame():preprocess( "{{REVISIONID}}" ) == "" then
unknown = preview
end
102 ⟶ 104行目:
 
return table.concat(res)
end
 
function p.check(frame)
local args = frame.args
local pargs = frame:getParent().args
return p._check(args, pargs)
end