Manual:Global object variables

Hundreds of globals are initialized on startup by MediaWiki.

The majority of these global variables are configuration settings that are set in  and .

(See config>Special:MyLanguage/Manual:Configuration settings|Manual:Configuration settings for documentation on these variables.)

There is no comprehensive documentation for the remaining few hundred globals, however, some of the most important ones are listed below.

They are typically initialized either in  or in .

Global variables
Initializes the   and   objects, and executes the URL actions.
 *  - MediaWiki object, the main base class for the MediaWiki software.


 * </> - Article object corresponding to <tvar|Title> </>.


 * <tvar|ContLang></> - Language object associated with the wiki being viewed.


 * <tvar|Lang></> - Language object selected by user preferences.


 * <tvar|LoadBalancer></> - LoadBalancer object, manages database connections.


 * <tvar|MessageCache></> - Message cache to manage interface messages.


 * <tvar|Out></> - OutputPage object for HTTP response.


 * <tvar|Parser></> - Parser object. Parser extensions register their hooks here.


 * <tvar|Request></> - WebRequest object, to get request data.

This variable should be avoided when possible, more sane title objects are usually available.
 * <tvar|Title></> - Title object created from the request URL.


 * <tvar|User></> - User object for the user associated with the current request.