Module:Check for unknown parameters: Difference between revisions
Content deleted Content added
Johnrdorazio (talk | contribs) m 1 revision imported |
Johnrdorazio (talk | contribs) 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
for _, regexp in ipairs(regexps) do
( showblankpos or isnotempty(v) )▼
if mw.ustring.match(tostring(k), regexp) 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
|