-- Simple find-and-replace that can be used on text templates so that there's less of a need for instances of nearly identical text.
-- Usage: {{#invoke:Replace|text|pattern to remove|pattern to insert}}
local p
function p.printList(frame)
    params = frame:getParent().args
    text = params[1]
    string.gsub(text, params[2], params[3])
    return text
return p
Community content is available under CC-BY-SA unless otherwise noted.