Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Arguments: Difference between revisions

Content added Content deleted
(use an array to hold argument tables rather than firstArgs and secondArgs variables)
(add options.frameOnly and options.parentOnly)
Line 63: Line 63:
-- which is how we avoid clashes between the frame/parent args and the Lua args.
-- which is how we avoid clashes between the frame/parent args and the Lua args.
local argTables = {}
local argTables = {}
if options.parentFirst then
if options.frameOnly then
table.insert(argTables, fargs)
elseif options.parentOnly then
table.insert(argTables, pargs)
elseif options.parentFirst then
table.insert(argTables, pargs)
table.insert(argTables, pargs)
table.insert(argTables, fargs)
table.insert(argTables, fargs)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.