Last modified: 2011-02-08 21:55:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 27215 - Documentation not clear about the alias mw
Documentation not clear about the alias mw
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
unspecified
All All
: Normal trivial (vote)
: ---
Assigned To: Trevor Parscal
http://www.mediawiki.org/wiki/Resourc...
:
Depends on:
Blocks: documentation
  Show dependency treegraph
 
Reported: 2011-02-07 08:36 UTC by Michael M.
Modified: 2011-02-08 21:55 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael M. 2011-02-07 08:36:10 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).
Comment 1 Krinkle 2011-02-07 17:55:22 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links