Module:Check for unknown parameters: Difference between revisions

Content deleted Content added
m 1 revision imported
m 1 revision imported
 
(One intermediate revision by one other user not shown)
Line 69:
table.insert(values, clean(k))
end
elseif type(k) == 'number' and knownargs[tostring(k)] == nil then
local knownflag = false
knownargs[tostring(k)] == nil and
for _, regexp in ipairs(regexps) do
( showblankpos or isnotempty(v) )
if mw.ustring.match(tostring(k), regexp) then
then
knownflag = true
table.insert(values, k .. ' = ' .. clean(v))
break
end
end
if not knownflag and ( showblankpos or isnotempty(v) ) then
table.insert(values, k .. ' = ' .. clean(v))
end
end
end