Template:SeeCustomHook

[[Special:MyLanguage/Extension:{{{1}}}|{{{1}}}]]

Template documentation

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 segment of hookname.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

SeeCustomHook

Category:Templates using TemplateData

Reduce typing and errors when linking to documentation for custom hooks.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hook Page1

The page name of the hook in the “Extension:” namespace

Page namerequired
Label2

The link label. If missing, defaults to the second segment of the hook name.

Default
{{#titleparts:{{{1}}}|1|2/3}}
Lineoptional
Category:Internal link templates#SeeCustomHook Category:Hook templates
Category:Hook templates Category:Internal link templates Category:Pages using the JsonConfig extension Category:Templates using TemplateData