Jump to content

Module:Check for unknown parameters: Difference between revisions

test
m>Frietjes
(first stab at a generic arg checker)
 
m>Frietjes
(test)
Line 26: Line 26:
-- loop over the parent args, and make sure they are on the list
-- loop over the parent args, and make sure they are on the list
for k,v in pairs(pargs) do
for k,v in pairs(pargs) do
-- mw.ustring.gsub(unknown, '_VALUE_', tostring(k))
if (knownargs[k] == nil) then
if (knownargs[k] == nil) then
table.insert(res, mw.ustring.gsub(unknown, '_VALUE_', tostring(k)))
table.insert(res, k)
end
end
end
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.