< Manual:Hooks 
 
      |  | This feature was removed completely in version 1.32.0 (after being deprecated in 1.22.0). Usages of this hook should either be replaced with ParserLimitReportFormat or ParserLimitReportPrepare instead. | 
| ParserLimitReport | |
|---|---|
| Available from version 1.12.0 Removed in version 1.32.0 called at the end of Parser::parse() when the parser will add a report about size and complexity of the text parsed as a HTML comment | |
| Define function: | public static function onParserLimitReport( $parser, $limitReport ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"ParserLimitReport": "MyExtensionHooks::onParserLimitReport"
	}
}
 | 
| Called from: | File(s): Parser.php Function(s): makeLimitReport | 
| Interface: | ParserLimitReportHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ParserLimitReport extensions.
Details
Used to create the NewPP parser report. Parameters:
- $parser: Parser object
- $limitReport: text that will be included (without comment tags); extensions are expected to append their own lines.
Hints
When adding some limts to a page and show that limit in the limit report, you should also add a limitation warning (Parser::limitationWarn) with a tracking category to get all pages, which reach that limit.
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.