Anonymous user
Module:Check for unknown parameters: Difference between revisions
Module:Check for unknown parameters (view source)
Revision as of 17:41, 23 March 2014
, 23 March 2014no edit summary
en>Frietjes No edit summary |
en>Frietjes No edit summary |
||
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 | ||
if (knownargs[k] == nil) then | if (knownargs[k] == nil and type(k) == 'string') then | ||
local r = mw.ustring.gsub(unknown, '_VALUE_', k) | local r = mw.ustring.gsub(unknown, '_VALUE_', k) | ||
table.insert(res, r) | table.insert(res, r) |