Changes
Jump to navigation
Jump to search
Line 69:
Line 69:
− +
− knownargs[tostring(k)] == nil and+
− +
− then+
− table.insert(values, k .. ' = ' .. clean(v))+
+
+
+
+
+
+
Module:Check for unknown parameters (view source)
Revision as of 20:27, 18 November 2021
, 2 years agoupdate to allow check for unnamed parameters, code by User:Frietjes
table.insert(values, clean(k))
table.insert(values, clean(k))
end
end
elseif type(k) == 'number' and
elseif type(k) == 'number' and knownargs[tostring(k)] == nil then
local knownflag = false
( showblankpos or isnotempty(v) )
for _, regexp in ipairs(regexps) do
if mw.ustring.match(tostring(k), regexp) then
knownflag = true
break
end
end
if not knownflag and ( showblankpos or isnotempty(v) ) then
table.insert(values, k .. ' = ' .. clean(v))
end
end
end
end
end