Difference between revisions of "Template:Extension"

Jump to navigation Jump to search
104 bytes added ,  20:17, 16 November 2019
Marked this version for translation
>Wladek92
(adding < translate > sections)
>Wladek92
(Marked this version for translation)
Line 618: Line 618:
<td valign="top">'''<translate><!--T:62--> name of each hook used by the extension</translate>'''
<td valign="top">'''<translate><!--T:62--> name of each hook used by the extension</translate>'''
<translate>
<translate>
Entering values in this field is a good way to get exposure for your extension and help other developers.</translate> <translate>Each documented hook will automatically add the extension to a category listing extensions that use that hook.</translate> <translate>This category is autolinked to each hook article so that programmers can easily find examples of extensions that use a particular hook.
<!--T:174-->
Entering values in this field is a good way to get exposure for your extension and help other developers.</translate> <translate><!--T:175--> Each documented hook will automatically add the extension to a category listing extensions that use that hook.</translate> <translate><!--T:176-->
This category is autolinked to each hook article so that programmers can easily find examples of extensions that use a particular hook.


<!--T:177-->
For built-in hooks:
For built-in hooks:
* use the hook name alone. Please see <tvar|manual>{{ll|Manual:Hooks|Manual:Hooks}}</> for values (but omit introductory '/').
* use the hook name alone. Please see <tvar|manual>{{ll|Manual:Hooks|Manual:Hooks}}</> for values (but omit introductory '/').


<!--T:178-->
For custom hooks defined by extensions:
For custom hooks defined by extensions:
* use <tvar|form>''extensionName''/''hookName''</>. For a partial list of custom hooks, see <tvar|exthooks>[[Extension hook registry]]</>.
* use <tvar|form>''extensionName''/''hookName''</>. For a partial list of custom hooks, see <tvar|exthooks>[[Extension hook registry]]</>.


<!--T:179-->
For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on.</translate></td>
For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on.</translate></td>
</tr>
</tr>
<tr>
<tr>
<td><span id="newhook">'''newhook1'''</span><br/>''newhook2''<br/>''newhook3''<br/>''newhook4''<br/>...<br/>''newhook90''</td>
<td><span id="newhook">'''newhook1'''</span><br/>''newhook2''<br/>''newhook3''<br/>''newhook4''<br/>...<br/>''newhook90''</td>
<td valign="top"><translate>'''name of each hook provided by the extension'''  
<td valign="top"><translate><!--T:180-->
'''name of each hook provided by the extension'''  


<!--T:181-->
You might also want to add the hooks to <tvar|exthooks>[[Extension hook registry]]</>.</translate></td>
You might also want to add the hooks to <tvar|exthooks>[[Extension hook registry]]</>.</translate></td>
</tr>
</tr>
Anonymous user

Navigation menu