Module:Deprecated

return { module = function(module_export, module_name) if module_name then warningMessage = "Warning: "..module_name.." has been deprecated!" else warningMessage = "Warning: A deperecated module function was called." end for k,v in pairs(module_export) do			if type(v) == "function" then module_export[k] = function(...) mw.log(debug.traceback(warningMessage,2)) mw.addWarning(warningMessage) local ret = v(unpack({...}))

if (type(ret) == "table") and ret.wikitext then -- If the return value is a mw.html node. This is the closest to a guarantee that a function is called to make wikitext. ret:wikitext("") end

return ret end end end return module_export end }