Last modified: 2011-02-08 21:55:57 UTC
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).
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