Difference between revisions of "Template:Extension/HookInUse"

added ability to link to either core or custom hooks
>Egfrank~mediawikiwiki
(wrapped in <includeonly> tags)
>Egfrank~mediawikiwiki
(added ability to link to either core or custom hooks)
Line 1: Line 1:
<includeonly>{{SeeHook|{{{1}}}}}{{#ifeq:{{{templatemode|}}}|nocats||[[Category:{{{1}}} extensions]]}}</includeonly>
<includeonly>
{{#if:{{#titleparts:{{{1|}}}|1|2}}
|{{SeeCustomHook|{{#titleparts:{{{1}}}|1|1}}|{{#titleparts:{{{1}}}|1|2}}}}
|{{SeeHook|{{{1}}}}}
}}
{{#ifeq:{{{templatemode|}}}|nocats|
|[[Category:{{#if:{{#titleparts:{{{1|}}}|1|2}}|{{#titleparts:{{{1}}}|1|2}}}}|{{{1}}}}} extensions]]}}
</includeonly>