Module:Template invocation: Difference between revisions

use the local variables we made in p.invocation for the argument type checking
(validate the keys and values in the args table in p.invocation)
(use the local variables we made in p.invocation for the argument type checking)
Line 67:
local typek = type(k)
local typev = type(v)
if type(k)typek ~= 'string' and type(k)typek ~= 'number'
or type(v)typev ~= 'string' and type(v)typev ~= 'number'
then
error("invalid arguments table in parameter #2 of " ..