Jump to content

Template:Hook/doc: Difference between revisions

From wikiNonStop
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

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hook name1

Name of the hook to link to.

Stringrequired
Link text2

The text that is displayed as the link to the hook's documentation page.

Stringoptional
Extension nameextension

If the hook is provided by an extension, provide that extension's name here.

Stringoptional

Example

{{hook|UserLinkRendererUserLinkPostRender}}UserLinkRendererUserLinkPostRender