لفرق بين الجوج ڤيرسيونات ديال: "مودول:Check for unknown parameters"

تم حذف المحتوى تمت إضافة المحتوى
ص مراجعتان
لا ملخص تعديل
سطر 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'])
السطر 58 ⟵ 61:
end
if isnotempty(preview) then
preview = '<div class="hatnote" style="color:red"><strong>عنداك:</strong> ' .. preview .. ' (هاد الميساجالرسالة كيبانكتبان غير فالمعاينةف المعاينة).</div>'
elseif preview == nil then
preview = unknown
السطر 86 ⟵ 89:
-- add results to the output tables
if #values > 0 then
if framemw.getCurrentFrame():preprocess( "{{REVISIONID}}" ) == "" then
unknown = preview
end
السطر 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