ResourceLoader/Legacy JavaScript

This page documents deprecated identifiers that will be removed from mediawiki eventually (see ) and their replacements as can be found in the "Replaced by" 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 may differ from the latest stable release and what might eventually be included with mediawiki.

Any code relying on details obtained from Git may break.

 Toggle grep script  Deprecated identifiers in source code files can be found by using Unix style commands such as: grep -n -f deprecated.ids *.js

where  is a text file created from the list page.

Make sure to remove any blank lines at the end of the file.

Note: Automatic replaces are not recommended because some identifier names are potentially part of another (non-deprecated or custom) identifier, for example addPortletLink and mw.util.addPortletLink, or '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.