Template:SeeCustomHook

From Bonkipedia
Revision as of 21:28, 21 August 2016 by [[mw:]]>Shirayuki (Undo revision 2220886 by Shirayuki (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Template documentation


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.