Open main menu

Manual:$wgParser


Other languages:
English • ‎español • ‎polski • ‎português do Brasil • ‎čeština • ‎日本語

DescriptionEdit

The Parser object is responsible for parsing the tags and wikitext contained in wiki pages. Parser extensions hooks are also registered in the Parser object.

Mode of OperationEdit

$wgParser is called in includes/Setup.php with the following code:

$wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) );

StubObject is defined in includes/StubObject.php.

wgParserConf is defined in includes/DefaultSettings.php with the following code:

$wgParserConf = array('class' => 'Parser',);