public static function onMyHook( $x, $y ) { ... }Attach hook:
$wgHooks['MyHook'][] = 'MyExtensionHooks::onMyHook';Called from: File(s):
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:MyHook extensions.
{{ExtensionHook |name = MyHook |version = |gerrit = |removed = |summary = |args = $x, $y |extension = |source = |sourcefunction = |sourceclass = |newvarname = |newvarlink = |nocatdesc = }}Usage notes
yes
, it will not show up the category description.
A card which describes the information of a hook registered by an extension.
Template parameters[Edit template data]
This template prefers block formatting of parameters.
Parameter Description Type Status Template modetemplatemode
no description
name
The name of the hook. This is usually the same name as the sub-page.
rev
SVN revision in which this hook was first introduced. If this parameter is given, it will link to the appropriate CodeReview page.
gerrit
Gerrit change number in which this hook was first introduced. If this parameter is given, it will link to the appropriate Gerrit changeset page.
version
The version of MediaWiki this hook was first introduced in.
deprecated
If the hook has been deprecated, the version of MediaWiki that it was deprecated in.
gerritdeprecated
no description
removed
If the hook has been removed, the version of MediaWiki that it was removed in.
gerritremoved
no description
newvarname
If the hook is either deprecated or removed, name the feature that replaces this hook, if there is any replacement.
newvarlink
If the hook is either deprecated or removed, link to the feature that replaces this hook, if there is any replacement.
summary
A short description of the hook's purpose. More detailed descriptions are desirable, and should be added to the main page content.
args
The arguments that are defined by the hook signature.
extension
Extension name where the hook is called; for when the source is not in the MediaWiki core code repository.
skin
Skin name where the hook is called; alternatively, set for the 'extrension' variable.
source
Location (file name) which calls this hook in the code.
source2
Location (file name) which calls this hook in the code, if another source exists
source3
Location (file name) which calls this hook in the code, if another source exists
source4
Location (file name) which calls this hook in the code, if another source exists
source5
Location (file name) which calls this hook in the code, if another source exists
source6
Location (file name) which calls this hook in the code, if another source exists
source7
Location (file name) which calls this hook in the code, if another source exists
source8
Location (file name) which calls this hook in the code, if another source exists
source9
Location (file name) which calls this hook in the code, if another source exists
source10
Location (file name) which calls this hook in the code, if another source exists
sourceclass
The fully qualified class name (FQCN) which calls this hook.
sourcefunction
Name of the function which calls this hook
sourcefunction2
Name of the function which calls this hook, if another functions call this hook
nocatdesc
Allows to hide the category hook description if the hook was removed completely from MediaWiki version.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4