require('strict')local p =
function p.main(frame) local parent = frame:getParent if parent and parent:getTitle:gsub('/sandbox$', )
local code = frame.args['sourceCode'] or error("sourceCode arg not provided") code = mw.text.unstripNoWiki(code) -- Undo nowiki sanitization code = code:gsub("<", "<"):gsub(">", ">") -- Unsanitize < and > -- Remove sourceCode from the arguments local newArgs = for k, v in pairs(frame.args) do if k ~= 'sourceCode' then newArgs[k] = v end end -- Create a new frame without "sourceCode" local newFrame = frame:newChild
return newFrame:preprocess(code)end
return p