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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29215, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27215 - Documentation not clear about the alias mw
Documentation not clear about the alias mw
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
All All
: Normal trivial (vote)
: ---
Assigned To: Trevor Parscal
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: ---


Description Michael M. 2011-02-07 08:36:10 UTC
The documentation on 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.


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