Jump to content

Module:Suppress TemplateStyles

From Wikipedia, the free encyclopedia

local p = {}

function p._suppressTemplateStyles( text )
	local ret = string.gsub( text, '\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127', '' )
	return ret
end

function p.suppressTemplateStyles( frame )
	return p._suppressTemplateStyles( frame.args[1] or frame:getParent().args[1] )
end

-- For the documentation only
function p.formatForDocumentation( frame )
	return frame:extensionTag( 'pre', string.gsub( frame.args[1], '\127', '␡' ) )
end

return p