Module:Template invocation: Difference between revisions
allow this to work for numbers
m (fix typo in comments) |
(allow this to work for numbers) |
||
Line 93: | Line 93: | ||
ret[#ret + 1] = name | ret[#ret + 1] = name | ||
for k, v in ipairs(invArgs) do | for k, v in ipairs(invArgs) do | ||
if v:find('=', 1, true) then | if type(v) == 'string' and v:find('=', 1, true) then | ||
-- Likely something like 1=foo=bar, we need to do it as a named arg | -- Likely something like 1=foo=bar, we need to do it as a named arg | ||
break | break |