Module:Sandbox/User:The Gaffer/Modules/Infobox Switch: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 68: Line 68:
end
end


-- Public function to be called by templates
p.infobox_switch = function(frame)
p.infobox_switch = function(frame)
local html_output = p._infobox_switch(frame:getParent().args)
local html_output = p._infobox_switch(frame:getParent().args)
return frame:preprocess(html_output)
return mw.text.unstrip(html_output)
end
end