Manual:Global object variables/zh

Hundreds of globals are initialized on startup by MediaWiki. The majority of these global variables are configuration settings that are set in and. (See 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.

全域变量

 * - MediaWiki object, the main base class for the MediaWiki software. Initializes the  and   objects, and executes the URL actions.
 * - Article object corresponding to .  and
 * - Language object associated with the wiki being viewed.
 * - Language object selected by user preferences.
 * - LoadBalancer object, manages database connections.
 * - Message cache to manage interface messages.
 * - OutputPage object for HTTP response.
 * - Parser object. Parser extensions register their hooks here.
 * - WebRequest object, to get request data.
 * - Title object created from the request URL.  This variable should be avoided when possible, more sane title objects are usually available.
 * - User object for the user associated with the current request.