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 $parser, $title, &$skip, &$id ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"BeforeParserFetchTemplateAndtitle": "MyExtensionHooks::onBeforeParserFetchTemplateAndtitle"
Called from: File(s): parser/Parser.php
Interface: BeforeParserFetchTemplateAndtitleHook.php

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


  • $parser: Parser object
  • $title: Title object
  • &$skip: Defaults to false
  • &$id: Defaults to false, which will cause the most recent revision to be fetched; if set to a revision ID, will fetch that revision instead