Difference between revisions of "Template:Extension/doc"
Template:Extension/doc (view source)
Revision as of 14:16, 16 September 2007
, 14:16, 16 September 2007→Content parameters: hook parameter documentation - clarification
>Egfrank~mediawikiwiki m (→The Create extension button: fixed typo) |
>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 '/'). | |||
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. |