Module:IsArg

local exports = {};

function exports.isarg(frame) local match = frame.args[1]:match(""); if match then out = frame:expandTemplate({title="error", args={"Argument '" .. match .. "' not defined"}}); if mw.isSubstin then return "echo"; end return out; end return frame.args[1]; end

return exports;