Anonymous user
Module:Check for unknown parameters: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Module:Check for unknown parameters (view source)
Revision as of 15:26, March 25, 2014
, 10 years agoclobber non-alphanumeric
No edit summary |
(clobber non-alphanumeric) |
||
Line 28:
for k,v in pairs(pargs) do
if (knownargs[k] == nil and type(k) == 'string') then
k = mw.ustring.gsub(k, '[^%w\-_ ]', '?')
local r = mw.ustring.gsub(unknown, '_VALUE_', k)
table.insert(res, r)
|