Module:Sandbox/BrandonXLF/1: Difference between revisions

Content deleted Content added
This should work
No edit summary
Line 1:
function main (args1, args2frame, switch)
local args1 = frame:getParent().args
local args2 = frame.args
local template = args2['_']
args2._ = nil
Line 12 ⟶ 14:
end
return frame:expandTemplate{title = template, args = args2}
end
 
function gen (switch)
return function (frame)
return main(frame:getParent().args, frame.args, switch)
end
end
 
return {
default = genfunction (falseframe) return main(frame) end,
force = genfunction (frame) return main(frame, true) end
}