Jump to content

Module:Arguments: Difference between revisions

169 bytes added ,  10 years ago
allow using both the frame and parent frame arguments with the wrappers option if specifically requested, per protected edit request by User:Jackmcbarn
No edit summary
m>Mr. Stradivarius
(allow using both the frame and parent frame arguments with the wrappers option if specifically requested, per protected edit request by User:Jackmcbarn)
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
else
end
if not found or options.parentOnly == false then
fargs = frame.args
fargs = frame.args
end
end
Line 107: Line 110:
pargs = parent and parent.args or nil
pargs = parent and parent.args or nil
end
end
if options.parentFirst then
end
fargs, pargs = pargs, fargs
if options.parentFirst then
end
fargs, pargs = pargs, fargs
end
end
else
else
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.