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.isSubsting then return ""; end return out; end return frame.args[1]; end

return exports;