Module:Sandbox/User:The Gaffer/Modules/Infobox Switch: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
The Gaffer (talk | contribs) (Undo revision 18699 by The Gaffer (talk)) Tag: Undo |
The Gaffer (talk | contribs) No edit summary |
||
Line 70: | Line 70: | ||
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) |
||
-- Wrap the HTML in a parser function call to ensure it is treated as raw HTML |
|||
return frame:callParserFunction('tag', |
return frame:callParserFunction('tag', 'div', { contentmodel = 'html' }) |
||
end |
end |
||