| AfterParserFetchFileAndTitle | |
|---|---|
| Available fromversion 1.24.0 (Gerrit change 140256) Alter the HTML code of an image gallery. Called after an image gallery is formed by Parser, just before adding its HTML to parser output. | |
| Define function: | publicstaticfunctiononAfterParserFetchFileAndTitle($parser,$imageGallery,&$html){...} |
| Attach hook: | Inextension.json:{"Hooks":{"AfterParserFetchFileAndTitle":"MediaWiki\\Extension\\MyExtension\\Hooks::onAfterParserFetchFileAndTitle"}} |
| Called from: | File(s):parser/Parser.php Function(s):renderImageGallery |
| Interface: | AfterParserFetchFileAndTitleHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:AfterParserFetchFileAndTitle extensions.