Returns arg1 with all instances of arg2 replaced with arg3.
Example
{{#invoke:cmap|cmap|needle in haystack|needle|hay}}
- needle in haystack
local p = {} --p stands for package
function p.cmap(frame)
if frame.args[1] then
return frame.args[1]
end
return ''
end
return p