Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/AfterParserFetchFileAndTitle

From mediawiki.org
<Manual:Hooks
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.

Details

[edit]
  • $parser - TheParser object
  • $imageGallery - the gallery object (an ImageGalleryBase subclass)
  • &$html - the HTML code of the gallery
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/AfterParserFetchFileAndTitle&oldid=4442169"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp