模板:Hook/doc
外观
< 模板:Hook
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:Hook. It contains usage information, categories and other content that is not part of the original 模板 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.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Hook name | 1 | Name of the hook to link to. | 字符串 | 必需 |
| Link text | 2 | The text that is displayed as the link to the hook's documentation page. | 字符串 | 可选 |
| Extension name | extension | If the hook is provided by an extension, provide that extension's name here. | 字符串 | 可选 |
Example
{{hook|UserLinkRendererUserLinkPostRender}} → UserLinkRendererUserLinkPostRender