Template:SeeCustomHook/doc: Difference between revisions
From Bonkipedia
[[mw:]]>Nemo bis m (→Purpose: Used by {{tl|Extension/HookInUse}}.) |
ManfredoDo (talk | contribs) m (1 revision imported: Workaround and Utility Templates) |
(No difference)
|
Latest revision as of 17:53, 12 November 2022
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. |
Purpose
Reduce typing and errors when linking to documentation for custom hooks. Used by {{Extension/HookInUse}}.
Examples
- 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
{{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 secoment of hookname.