Template:Hook/doc: Difference between revisions
Appearance
Add example, section names and description of the required parameter. |
m 1 revision imported: Initial Setup |
(No difference)
| |
Latest revision as of 14:12, 6 April 2026
| This is a documentation subpage for Template:Hook. It contains usage information, categories and other content that is not part of the original Template page. |
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Hook
Creates an internal link to a hook's documentation page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Hook name | 1 | Name of the hook to link to. | String | required |
| Link text | 2 | The text that is displayed as the link to the hook's documentation page. | String | optional |
| Extension name | extension | If the hook is provided by an extension, provide that extension's name here. | String | optional |
Example
{{hook|UserLinkRendererUserLinkPostRender}} → UserLinkRendererUserLinkPostRender