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!

Please note the current implementation in SVN may differ from the latest stable release and what might eventually be included with mediawiki. Any code relying on details obtained 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.