Module:User:Njardarlogar/editor

local p = {}

error_module = require('Module:error message') errormsg = error_module.main

function p.main(frame, out, in_) if out == nil or in_ == nil then return errormsg('Use the module the following way: ') end args = frame.args title = args[1] text = frame:expandTemplate{title = title} text = text:gsub(out, in_) return text end

return p