Modul:Arguments: Unterschied zwischen den Versionen
allow using both the frame and parent frame arguments with the wrappers option if specifically requested, per protected edit request by User:Jackmcbarn
(add a "wrappers" option and fix bug when frame:getParent() returns nil, per protected edit request by User:Jackmcbarn) |
(allow using both the frame and parent frame arguments with the wrappers option if specifically requested, per protected edit request by User:Jackmcbarn) |
||
| Zeile 92: | Zeile 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 | |||
if not found or options.parentOnly == false then | |||
fargs = frame.args | fargs = frame.args | ||
end | end | ||
| Zeile 107: | Zeile 110: | ||
pargs = parent and parent.args or nil | pargs = parent and parent.args or nil | ||
end | end | ||
end | |||
if options.parentFirst then | |||
fargs, pargs = pargs, fargs | |||
end | end | ||
else | else | ||