Module:Arguments: Difference between revisions

Fixed
m (1 revision)
 
(Fixed)
Line 92: Line 92:
found = true
found = true
end
end
if found then
-- We test for false specifically here so that nil (the default) acts like true.
if found or options.frameOnly == false then
pargs = parent.args
pargs = parent.args
end
else
if not found or options.parentOnly == false then
fargs = frame.args
fargs = frame.args
end
end
Line 110: Line 107:
pargs = parent and parent.args or nil
pargs = parent and parent.args or nil
end
end
end
if options.parentFirst then
if options.parentFirst then
fargs, pargs = pargs, fargs
fargs, pargs = pargs, fargs
end
end
end
else
else
14,061

edits