Template:SeeCustomHook/doc
Appearance
From mediawiki.org
This is a documentation subpage for Template:SeeCustomHook.
It contains usage information, categories and other content that is not part of the original Template page.
It contains usage information, categories and other content that is not part of the original Template page.
Reduce typing and errors when linking to documentation for custom hooks. Used by {{Extension/HookInUse }}.
Examples
[edit ]- using default label:
- {{SeeCustomHook|MyExtension/MyHook}} --> MyHook
- using default label (extension in user space):
- {{SeeCustomHook|User:Somebody/MyExtension/MyHook}} --> MyHook
- using custom label:
- {{SeeCustomHook|MyExtension/MyHook|here}} --> here
Usage
[edit ]{{SeeCustomHook|extension/hookname [| label]}}
- extension - the name of the extension that created the hook
- hookname - the name of the custom hook
- label - (optional) the link label. If missing, defaults to the second segment of hookname.
TemplateData
[edit ]This is the TemplateData documentation for this template used by VisualEditor and other tools.
SeeCustomHook
Reduce typing and errors when linking to documentation for custom hooks.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Hook Page | 1 | The page name of the hook in the "Extension:" namespace | Page name | required |
| Label | 2 | The link label. If missing, defaults to the second segment of the hook name.
| Line | optional |