Difference between revisions of "Template:HookUsage"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "</translate>" to "")
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages />
 
<languages />
</noinclude>{{#switch:<translate></translate>
+
</noinclude>{{#switch:<translate>
 
| =
 
| =
{{notice|text=<translate><!--T:5--> This category may not be up to date; it may not show all extensions that use this hook.</translate> <translate><!--T:6--> You can view this [<tvar|url>https://codesearch.wmflabs.org/extensions/?q={{{1}}}&i=nope&files=&repos=</> MediaWiki Code search query] to see the most up-to-date version of all extensions that use this hook.</translate>}}
+
{{notice|text=<translate><!--T:5--> This category may not be up to date; it may not show all extensions that use this hook. <translate><!--T:6--> You can view this [<tvar|url>https://codesearch.wmflabs.org/extensions/?q={{{1}}}&i=nope&files=&repos=</> MediaWiki Code search query] to see the most up-to-date version of all extensions that use this hook.}}
  
<translate><!--T:1--> The '''<tvar|pagename>{{{1}}}</>''' category contains articles on extensions that use the <tvar|name>{{#if: {{{extension|}}} | [[Extension:{{{extension}}}/Hooks/{{{1}}}{{#translation:}}|{{{1}}}]]{{enlink|Extension:{{{extension}}}/Hooks/{{{1}}}}} | [[Manual:Hooks/{{{1}}}{{#translation:}}|{{{1}}}]]{{enlink|Manual:Hooks/{{{1}}}}} }}</> hook.</translate><!--
+
<translate><!--T:1--> The '''<tvar|pagename>{{{1}}}</>''' category contains articles on extensions that use the <tvar|name>{{#if: {{{extension|}}} | [[Extension:{{{extension}}}/Hooks/{{{1}}}{{#translation:}}|{{{1}}}]]{{enlink|Extension:{{{extension}}}/Hooks/{{{1}}}}} | [[Manual:Hooks/{{{1}}}{{#translation:}}|{{{1}}}]]{{enlink|Manual:Hooks/{{{1}}}}} }}</> hook.<!--
 
--><includeonly>{{IfNotEn
 
--><includeonly>{{IfNotEn
 
|[[Category:Extensions by hook usage{{#translation:}}]]
 
|[[Category:Extensions by hook usage{{#translation:}}]]
Line 16: Line 16:
 
<translate>
 
<translate>
 
== Usage == <!--T:2-->
 
== Usage == <!--T:2-->
</translate>
+
 
  
 
<templatedata>
 
<templatedata>
Line 29: Line 29:
 
"type": "string",
 
"type": "string",
 
             "label": "Extension",
 
             "label": "Extension",
             "description": "<translate><!--T:3--> Name of the extension that provides this hook (if it's not a core hook).</translate>",
+
             "description": "<translate><!--T:3--> Name of the extension that provides this hook (if it's not a core hook).",
 
             "suggested": true
 
             "suggested": true
 
         }
 
         }
 
},
 
},
 
"format": "inline",
 
"format": "inline",
"description": "<translate><!--T:4--> Provides formatting for categories.</translate>"
+
"description": "<translate><!--T:4--> Provides formatting for categories."
 
}
 
}
 
</templatedata>
 
</templatedata>

Revision as of 04:07, 21 December 2019


The {{{1}}} category contains articles on extensions that use the [[Manual:Hooks/{{{1}}}|{{{1}}}]] hook.

Template documentation

<translate>

Usage

<translate><!--T:4--> Provides formatting for categories.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hook name1

no description

Stringrequired
Extensionextension

<translate><!--T:3--> Name of the extension that provides this hook (if it's not a core hook).

Stringsuggested