Module:Arguments: Difference between revisions

mirror latest changes on WP - please do not cascade import modules
(apply changes from sandbox - all tests pass)
(mirror latest changes on WP - please do not cascade import modules)
Line 97:
end
end
 
-- We test for false specifically here so that nil (the default) acts like true.
if found or options.frameOnly == false then
Line 122:
luaArgs = frame
end
 
-- Set the order of precedence of the argument tables. If the variables are
-- nil, nothing will be added to the table, which is how we avoid clashes
-- between the frame/parent args and the Lua args.
local argTables = {fargs}
argTables[#argTables + 1] = pargs
Line 272:
return pairs(metaArgs)
end
 
local function inext(t, i)
-- This uses our __index metamethod