Content deleted Content added
add some more comments |
Jackmcbarn (talk | contribs) one more optimization |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 62:
local fargs, pargs, luaArgs
if type(frame.args) == 'table' and type(frame.getParent) == 'function' then
if
end▼
▲ if not options.frameOnly then
else
▲ pargs = frame:getParent().args
local title = parent:getTitle():gsub('/sandbox$', '')
end▼
local found = false
if options.parentFirst then▼
if type(options.wrappers) == 'table' then
fargs, pargs = pargs, fargs▼
for _,v in pairs(options.wrappers) do
if v == title then
found = true
break
end
end
elseif options.wrappers == title then
found = true
end
if found then
pargs = parent.args
else
fargs = frame.args
end
▲ end
else
if not options.parentOnly then
fargs = frame.args
▲ end
if not options.frameOnly then
local parent = frame:getParent()
pargs = parent and parent.args or nil
end
▲ if options.parentFirst then
▲ fargs, pargs = pargs, fargs
end
end
else
Line 212 ⟶ 238:
--]]
metaArgs[key] = nil
nilArgs[key] = true
else
metaArgs[key] = val
|