|
MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...

Public Member Functions | |
| onFormatAutocomments (&$comment, $pre, $auto, $post, $title, $local, $wikiId) | |
| This hook is called when an autocomment is formatted by the Linker. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "FormatAutocomments" to register handlers implementing this interface.
Definition at line 14 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.