Difference between revisions of "Template:Extension/doc"

Jump to navigation Jump to search
→‎Content parameters: hook parameter documentation - clarification
>Egfrank~mediawikiwiki
>Egfrank~mediawikiwiki
(→‎Content parameters: hook parameter documentation - clarification)
Line 112: Line 112:
Entering values in this field is a good way to get exposure for your extension and help other developers.  Each documented hook will automatically add the extension to a category listing extensions that use that hook.  This category is autolinked to each hook article so that programmers can easily find examples of extensions that use a particular hook.
Entering values in this field is a good way to get exposure for your extension and help other developers.  Each documented hook will automatically add the extension to a category listing extensions that use that hook.  This category is autolinked to each hook article so that programmers can easily find examples of extensions that use a particular hook.


For built-in hooks:
* use the hook name alone.  Please see [[Manual:Hooks]] for values (but omit introductory '/').


Please see [[Manual:Hooks]] and [[Extension hook registry]] for a list of valid values.  For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on.
For custom hooks defined by extensions:
* use ''extensionName''/''hookName''.  For a partial list of custom hooks, see [[Extension hook registry]].   
 
For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on.
|-
|-
| '''username''' || The author's username on MediaWiki.org (if they have one). May be omitted, but if present it will be used to link to the author's user & user_talk page.
| '''username''' || The author's username on MediaWiki.org (if they have one). May be omitted, but if present it will be used to link to the author's user & user_talk page.

Navigation menu