MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onFormatAutocomments (&$comment, $pre, $auto, $post, $title, $local, $wikiId) | |
This hook is called when an autocomment is formatted by the Linker. | |
Stable to implement.
Definition at line 11 of file FormatAutocommentsHook.php.
MediaWiki\Hook\FormatAutocommentsHook::onFormatAutocomments | ( | & | $comment, |
$pre, | |||
$auto, | |||
$post, | |||
$title, | |||
$local, | |||
$wikiId | |||
) |
This hook is called when an autocomment is formatted by the Linker.
string | null | &$comment | Reference to the accumulated comment. Initially null, when set the default code will be skipped. |
bool | $pre | True if there is text before this autocomment |
string | $auto | Extracted part of the parsed comment before the call to the hook |
bool | $post | True if there is text after this autocomment |
Title | null | $title | Optional title object used to links to sections |
bool | $local | Whether section links should refer to local page |
string | null | $wikiId | ID (as used by WikiMap) of the wiki from which the autocomment originated; null for the local wiki. Added in 1.26, should default to null in handler functions, for backwards compatibility. |
Implemented in MediaWiki\HookContainer\HookRunner.