This site is no longer actively maintained. It exists for historical purposes as an example of Phabricator integration and Lua scripting.

Module:Utilities

From cpt
Revision as of 10:37, 1 August 2019 by Ccicalese (talk | contribs) (Created page with "local p = {} function p.cleanse(frame) local s = frame.args[1] s = string.gsub( s, '{', '{' ) s = string.gsub( s, '}', '}' ) s = string.gsub( s, '%[', '[' )...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Utilities/doc

local p = {}

function p.cleanse(frame)
	local s = frame.args[1]
	s = string.gsub( s, '{', '{' )
	s = string.gsub( s, '}', '}' )
	s = string.gsub( s, '%[', '[' )
	s = string.gsub( s, '%]', ']' )
	s = string.gsub( s, '|', '|' )
	return s
end

return p