Page MenuHomePhabricator

Documentation not clear about the alias mw
Closed, ResolvedPublic

Description

The documentation on mediawiki.org is not clear about the status of the alias mw for mediaWiki. Some examples use mediaWiki, some mw. It should be clearly stated whether mw is the preferred short alias for mediaWiki (like $ is for jQuery) or whether it is a legacy alias (like $j).


Version: unspecified
Severity: trivial
URL: http://www.mediawiki.org/wiki/ResourceLoader/Default_modules#MediaWiki

Details

Reference
bz27215

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:16 PM
bzimport set Reference to bz27215.

I've made two [1] edits [2] which I hope will clear it up.

There are some parts in core that map mediaWiki to mw (although not litterly by var mw = mediaWiki, it's done with anonymous function enclosers), this should no longer be done from now on and will be phased out for now. We supposedly were doing that for some unknown 'what if', but now that it's cleared up there's no point in enclosing them like that. mw == mediaWiki everywhere.

[1] http://www.mediawiki.org/w/index.php?title=ResourceLoader%2FDefault_modules&action=historysubmit&diff=381678&oldid=380155
[2] http://www.mediawiki.org/w/index.php?title=ResourceLoader%2FDefault_modules&action=historysubmit&diff=381683&oldid=381678