FANDOM


local p = {}
 
local escapes = {
	['['] = '[',
	[']'] = ']',
	['{'] = '{',
	['|'] = '|',
	['}'] = '}',
}
 
function p.wikiescapes(s)
	s = mw.text.split(s,'')
	local ret = {}
	for _, v in ipairs(s) do
		table.insert(ret,escapes[v] or v)
	end
 
	return table.concat(ret)
end
 
return p
Community content is available under CC-BY-SA unless otherwise noted.