Module:Arguments: Difference between revisions
Jump to navigation
Jump to search
m>Mr. Stradivarius add options.frameOnly and options.parentOnly |
m>Mr. Stradivarius oops, forgot the first parameter to tidyVal |
||
Line 88: | Line 88: | ||
else | else | ||
for i, argTable in ipairs(argTables) do | for i, argTable in ipairs(argTables) do | ||
local argTableVal = tidyVal(argTable[key]) | local argTableVal = tidyVal(key, argTable[key]) | ||
if argTableVal ~= nil then | if argTableVal ~= nil then | ||
metaArgs[key] = argTableVal | metaArgs[key] = argTableVal | ||
Line 119: | Line 119: | ||
return ipairs(metaArgs) | return ipairs(metaArgs) | ||
end | end | ||
return args | return args | ||
end | end | ||
return arguments | return arguments |