Manual:Hooks/BeforeParserFetchTemplateAndtitle

From MediaWiki.org
Jump to: navigation, search
BeforeParserFetchTemplateAndtitle
Available from version 1.10.1
Allows an extension to specify a version of a page to get for inclusion in a template?

Define function:
public static function onBeforeParserFetchTemplateAndtitle( $parser, $title, &$skip, &$id ) { ... }

Attach hook:
$wgHooks['BeforeParserFetchTemplateAndtitle'][] = 'MyExtensionHooks::onBeforeParserFetchTemplateAndtitle';
Called from: Parser.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:BeforeParserFetchTemplateAndtitle extensions.

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox