Module:Echo

local exports = {};

local error = "Please escape  and   when not used in template calls, module invocations, or parser functions."

function exports.echo(frame) local out = ""; local flag1 = false; local flag2 = false; for key, value in pairs(frame.args) do       if flag2 then return frame:expandTemplate({title="error", args={error}}); end if type(key) == "number" then out = out .. value .. "|";           flag1 = true; else if flag1 then return frame:expandTemplate({title="error", args={error}}); end out = out .. key .. "=" .. value .. "|";           flag2 = true; end end return out:sub(1, #out - 5); end

return exports;