Template:SeeCustomHook

From MediaWiki.org
Jump to: navigation, search
[edit] [purge] Template documentation

[edit] Purpose

Reduce typing and errors when linking to documentation for custom hooks. Used by {{Extension/HookInUse}}.

[edit] 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

[edit] 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.
The above documentation is transcluded from Template:SeeCustomHook/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Toolbox