Difference between revisions of "Template:Extension"

From WPRDC Wiki
Jump to navigation Jump to search
>Ammarpad
(→‎top: move this to top; it shouldn't be hidden at the bottom)
>Wladek92
(adding < translate > sections)
Line 589: Line 589:
<translate>
<translate>
<!--T:170-->
<!--T:170-->
* [[:Category:User interface extensions{{#translation:}}|'''''interface''''']] - catchall for uncategorized user interface extensions.
* <tvar|interface>[[:Category:User interface extensions{{#translation:}}|'''''interface''''']]</> - catchall for uncategorized user interface extensions.
** ''[[:Category:Media handling extensions{{#translation:}}|media]]'' - extensions that permit the embedding of multimedia content on wiki pages by registering a file extension with {{ll|Manual:$wgMediaHandlers|$wgMediaHandlers}}.
** <tvar|media>''[[:Category:Media handling extensions{{#translation:}}|media]]''</> - extensions that permit the embedding of multimedia content on wiki pages by registering a file extension with <tvar|wgMediaHandlers>{{ll|Manual:$wgMediaHandlers|$wgMediaHandlers}}</>.
** ''[[:Category:Personalization extensions{{#translation:}}|mywiki]]'' - extensions that provide infrastructure so that users may personalize their MediaWiki experience and/or assist in the management of that infrastructure
** <tvar|mywiki>''[[:Category:Personalization extensions{{#translation:}}|mywiki]]''</> - extensions that provide infrastructure so that users may personalize their MediaWiki experience and/or assist in the management of that infrastructure
** [[:Category:Notification extensions{{#translation:}}|''notify'']] - extensions that email users, broadcast messages and provide other forms of community notification
** <tvar|notify>[[:Category:Notification extensions{{#translation:}}|''notify'']]</> - extensions that email users, broadcast messages and provide other forms of community notification
** ''[[:Category:Page action extensions{{#translation:}}|''page action'']]'' - extensions that enhance or modify [[Special:MyLanguage/Manual:Page action|page action]]s. This includes anything that implements an action that reads, writes, searches for, creates, renames, deletes, redirects or discusses a page. It does not include rights (use ''user rights'') or logs (use ''user activity'').
** <tvar|catpageaction>''[[:Category:Page action extensions{{#translation:}}|''page action'']]''</> - extensions that enhance or modify <tvar|pageaction>{{ll|Manual:Page action|page action}}</>s. This includes anything that implements an action that reads, writes, searches for, creates, renames, deletes, redirects or discusses a page. It does not include rights (use <tvar|userrights>''user rights''</>) or logs (use <tvar|useractivity>''user activity''</>).
** [[:Category:Search extensions{{#translation:}}|''search'']] - extensions that search through and select articles for users.
** <tvar|search>[[:Category:Search extensions{{#translation:}}|''search'']]</> - extensions that search through and select articles for users.
** [[:Category:Skin extensions{{#translation:}}|''skin'']] - extensions adding [[w:CSS|CSS]] or [[w:JavaScript|JavaScript]], or implementing hook functions to change the look and feel of MediaWiki via the skins framework.
** <tvar|skin>[[:Category:Skin extensions{{#translation:}}|''skin'']]</> - extensions adding <tvar|css>[[w:CSS|CSS]]</> or <tvar|JavaScript>[[w:JavaScript|JavaScript]]</>, or implementing hook functions to change the look and feel of MediaWiki via the skins framework.
** [[:Category:Ajax extensions{{#translation:}}|''ajax'']] - extensions that use [[w:Ajax|Ajax]] programming techniques.
** <tvar|catajax>[[:Category:Ajax extensions{{#translation:}}|''ajax'']]</> - extensions that use <tvar|ajax>[[w:Ajax|Ajax]]</> programming techniques.
** [[:Category:Special page extensions{{#translation:}}|''special'']] - extensions that subclass the {{Class doclink|SpecialPage}} class, use one of its hooks, or patch one or more functions in {{Git file|file=includes/specialpage/SpecialPage.php|text=SpecialPage.php}}. See [[Special:MyLanguage/Manual:Special pages]] for more information.</translate>
** <tvar|special>[[:Category:Special page extensions{{#translation:}}|''special'']]</> - extensions that subclass the <tvar|specialpage>{{Class doclink|SpecialPage}}</> class, use one of its hooks, or patch one or more functions in <tvar|filephp>{{Git file|file=includes/specialpage/SpecialPage.php|text=SpecialPage.php}}</>. See <tvar|manual>{{ll|Manual:Special pages|Special pages}}</> for more information.</translate>
<translate>
<translate>
<!--T:171-->
<!--T:171-->
* '''other'''
* '''other'''
** [[:Category:API extensions{{#translation:}}|''api'']] - extensions that add a new API module or extend a core API module.
** <tvar|api>[[:Category:API extensions{{#translation:}}|''api'']]</> - extensions that add a new API module or extend a core API module.
** [[:Category:Hook extensions{{#translation:}}|''hook'']] - Hook extension - defines a <em>new</em> hook - see hook1, etc. below if you want to define hooks <em>used</em> by your extension
** <tvar|hook>[[:Category:Hook extensions{{#translation:}}|''hook'']]</> - Hook extension - defines a <em>new</em> hook - see hook1, etc. below if you want to define hooks <em>used</em> by your extension
** [[:Category:Database extensions{{#translation:}}|''database'']] - adds tables and/or fields to the database backing a MediaWiki installation
** <tvar|database>[[:Category:Database extensions{{#translation:}}|''database'']]</> - adds tables and/or fields to the database backing a MediaWiki installation
** [[:Category:Data extraction extensions{{#translation:}}|''data extraction'']] - Data extraction
** <tvar|dataextraction>[[:Category:Data extraction extensions{{#translation:}}|''data extraction'']]</> - Data extraction
** [[:Category:File repository extensions{{#translation:}}|''filerepo'']] - extension that adds new file repository types as file backend
** <tvar|filerepo>[[:Category:File repository extensions{{#translation:}}|''filerepo'']]</> - extension that adds new file repository types as file backend
** [[:Category:Extension examples{{#translation:}}|''example'']] - Not a real extension, but an example of how to write one
** <tvar|example>[[:Category:Extension examples{{#translation:}}|''example'']]</> - Not a real extension, but an example of how to write one


<!--T:172-->
<!--T:172-->
Any other value for 'type' is invalid, and will cause the extension to be placed in [[:Category:Extensions with invalid or missing type{{#translation:}}]].
Any other value for 'type' is invalid, and will cause the extension to be placed in <tvar|typemissingcat>[[:Category:Extensions with invalid or missing type{{#translation:}}]]</>.


<!--T:173-->
<!--T:173-->
Note: Many extensions have more than one type, if this applies to yours, replace <code><nowiki>|type=</nowiki></code> with <code><nowiki>|type1=|type2=|type3=...</nowiki></code>. You may define up to six types for an extension.</translate></td>
Note: Many extensions have more than one type, if this applies to yours, replace <tvar|type><code><nowiki>|type=</nowiki></code></> with <tvar|value><code><nowiki>|type1=|type2=|type3=...</nowiki></code></>. You may define up to six types for an extension.</translate></td>
</tr>
</tr>
<tr>
<tr>
<td><span id="hook">'''hook1'''</span><br/>''hook2''<br/>''hook3''<br/>''hook4''<br/>...<br/>''hook90''</td>
<td><span id="hook">'''hook1'''</span><br/>''hook2''<br/>''hook3''<br/>''hook4''<br/>...<br/>''hook90''</td>
<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>
Entering values in this field is a good way to get exposure for your extension and help other developers. Each documented hook will automatically add the extension to a category listing extensions that use that hook. This category is autolinked to each hook article so that programmers can easily find examples of extensions that use a particular hook.
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.


For built-in hooks:
For built-in hooks:
* use the hook name alone. Please see [[Special:MyLanguage/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 '/').


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


For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on.</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">'''name of each hook provided by the extension'''
<td valign="top"><translate>'''name of each hook provided by the extension'''  


You might also want to add the hooks to [[Extension hook registry]].</td>
You might also want to add the hooks to <tvar|exthooks>[[Extension hook registry]]</>.</translate></td>
</tr>
</tr>
<tr>
<tr>

Revision as of 20:17, 16 November 2019

<languages/> Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.[[Category:Template documentation pages{{#translation:}}]] Maintenance: vulnerabilities, archived

[[Category:Info templates{{#translation:}}|Extension]] [[Category:Extension creation{{#translation:}}]] [[Category:Categorizing templates{{#translation:}}|Extension]] [[Category:Extension templates{{#translation:}}]]