Difference between revisions of "Template:Extension"

From WPRDC Wiki
Jump to navigation Jump to search
>Shirayuki
(Marked this version for translation)
>Shirayuki
(translation tweaks)
Line 3: Line 3:
</noinclude><includeonly>{{#switch:<translate></translate>
</noinclude><includeonly>{{#switch:<translate></translate>
| =
| =
{{#if: {{{phabricator|{{{bugzilla|}}}}}} | {{ {{TNTN|Ptag}} |{{{phabricator|MediaWiki-extensions-{{{bugzilla|}}}}}}}} }}
{{#if: {{{phabricator|{{{bugzilla|}}}}}} | {{Ptag|{{{phabricator|MediaWiki-extensions-{{{bugzilla|}}}}}}}} }}
<table class="tpl-infobox ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} }}
<table class="tpl-infobox ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} }}
|unmaintained|archive|milestone|unstable|experimental|beta|stable|magic={{{status}}}
|unmaintained|archive|milestone|unstable|experimental|beta|stable|magic={{{status}}}
Line 358: Line 358:
| #default=
| #default=
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Extension|noshift=1}}
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Extension|noshift=1}}
}}</includeonly><noinclude>{{ {{TNTN|Documentation}} |content=
}}</includeonly><noinclude>{{Documentation|content=


<translate>
<translate>
Line 478: Line 478:
-->   
-->   
<table class="wikitable">
<table class="wikitable">
<caption>'''Content parameters'''</caption>
<caption>'''<translate>Content parameters</translate>'''</caption>
<tr>
<tr>
<th>Parameter</th>
<th>Parameter</th>
Line 484: Line 484:
</tr>
</tr>
<tr>
<tr>
<td><span id="name">'''name'''</span></td><td>'''name of the extension'''</td>
<td><span id="name">'''name'''</span></td><td>'''<translate>name of the extension</translate>'''</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="status">'''status'''</span></td><td>'''current release status'''
<td><span id="status">'''status'''</span></td><td>'''<translate>current release status</translate>'''
One of:  
One of:  
* ''[[:Category:Unstable extensions{{#translation:}}|unstable]]'' (broken - do not use this extension)
* ''[[:Category:Unstable extensions{{#translation:}}|unstable]]'' (broken - do not use this extension)
Line 500: Line 500:
</tr>
</tr>
<tr>
<tr>
<td>'''type1'''<br/>''type2''<br/>''type3''<br/>''type4''<br/>''type5''<br/>''type6''<br/></td><td><span id="type">'''implementation type'''</span><!-- id here so at top of documentation -->
<td>'''type1'''<br/>''type2''<br/>''type3''<br/>''type4''<br/>''type5''<br/>''type6''<br/></td><td><span id="type">'''<translate>implementation type</translate>'''</span><!-- id here so at top of documentation -->


The  implementation strategy(s) employed in building this extension. This parameter is used to create categories that help programmers find examples of various MediaWiki specific implementation strategies or patterns. Although the values of this parameter sometimes coincide with the use case or purpose of an extension, that is not reason for this parameter. If the values you have chosen for this parameter do not adequately identify the [[w:Requirements|purpose]] or possible [[w:Use case|use case]]s, we recommend you add additional [[Help:Categories|category links]] as needed.
The  implementation strategy(s) employed in building this extension. This parameter is used to create categories that help programmers find examples of various MediaWiki specific implementation strategies or patterns. Although the values of this parameter sometimes coincide with the use case or purpose of an extension, that is not reason for this parameter. If the values you have chosen for this parameter do not adequately identify the [[w:Requirements|purpose]] or possible [[w:Use case|use case]]s, we recommend you add additional [[Help:Categories|category links]] as needed.
Line 540: Line 540:
<tr>
<tr>
<td><span id="hook">'''hook1'''</span><br/>''hook2''<br/>''hook3''<br/>''hook4''<br/>...<br/>''hook30''</td>
<td><span id="hook">'''hook1'''</span><br/>''hook2''<br/>''hook3''<br/>''hook4''<br/>...<br/>''hook30''</td>
<td valign="top">'''name of each hook used by the extension'''
<td valign="top">'''<translate>name of each hook used by the extension</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. 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.
Line 559: Line 559:
</tr>
</tr>
<tr>
<tr>
<td><span id="username">'''username'''</span></td><td>The author's username on MediaWiki.org (if they have one). May be omitted, but if present it will be used to link to the author's user & user_talk page. It should be provided without namespace and without <nowiki>[[]]</nowiki>s.</td>
<td><span id="username">'''username'''</span></td><td><translate>The author's username on MediaWiki.org (if they have one).</translate> <translate>May be omitted, but if present it will be used to link to the author's user & user_talk page.</translate> <translate>It should be provided without namespace and without <tvar|1><nowiki>[[]]</nowiki></>s.</translate></td>
</tr>
</tr>
<tr>
<tr>
<td><span id="author">author</span></td><td>The extension author's name, if different from their MediaWiki.org username. Free text. If omitted then the 'username' field will be used (if present).</td>
<td><span id="author">author</span></td><td><translate>The extension author's name, if different from their MediaWiki.org username.</translate> <translate>Free text.</translate> <translate>If omitted then the 'username' field will be used (if present).</translate></td>
</tr>
</tr>
<tr>
<tr>
<td><span id="description">'''description'''</span></td><td>'''short description'''</td>
<td><span id="description">'''description'''</span></td><td>'''<translate>short description</translate>'''</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="image">image</span></td><td>screenshot or logo of extension. It should be provided without namespace and without <nowiki>[[]]</nowiki>s.</td>
<td><span id="image">image</span></td><td><translate>screenshot or logo of extension.</translate> <translate>It should be provided without namespace and without <tvar|1><nowiki>[[]]</nowiki></>s.</translate></td>
</tr>
</tr>
<tr>
<tr>

Revision as of 02:40, 17 November 2018

<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:}}]]