ResourceLoader/Legacy JavaScript

This page documents deprecated identifiers that will be removed from mediawiki eventually (see bug 33836) and there replacements as can be found in the "Future" columns below. All replacements and some new modules are available as-is since 1.17. Please use the modern replacements for new code and rewrite old code immediately. If you encounter no replacement and believe there should be one, please |Let us know! Additionally, XML retrieved by invoking GET and POST methods on index.php is incompatible with HTML 5, which is the default as of 1.16 (but not on WMF yet). You should update code to use api.php, JSON format and jQuery.ajax immediately.

Please note the current implementation in svn may differ from the current release and what might eventually be included with mediawiki. Any code relying on details attained from svn may break.

Toggle grep script There is a plain text list available of all identifiers with indicated replacements on this page that is suitable for automated searching of source code using Unix style commands such as: grep -f deprecated.ids *.js

where  is a text file created from the list page. Make sure to not have a blank line at the end of the file. Note that due to some variables potentially being part of another (non-deprecated or custom) method, using 'grep' is not recommended for automated reviews (for example addPortletLink and mw.util.addPortletLink, and 'ta' and 'var = takeMyCustomVariable').

edit.js
The toolbar interfaces will likely migrate into an extension. The default bundle would include the Extension:WikiEditor, which already has an advanced API that replaces all of this.