<translate> [[<tvar|1>Special:MyLanguage/Phabricator</>|Issue tracker]]:</translate> [[phab:tag/{{{phabricator}}}/|#{{{phabricator}}}]]
Difference between revisions of "Template:Extension/en"
Jump to navigation
Jump to search
>FuzzyBot (Updating to match new version of source page) |
>FuzzyBot (Updating to match new version of source page) |
||
(145 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<languages/> | <languages/> | ||
</noinclude>{{# | </noinclude><!-- | ||
--><templatestyles src="Template:Infobox/styles.css" /><!-- | |||
|unmaintained | --><templatestyles src="Template:Extension/styles.css" /><!-- | ||
--><templatestyles src="Template:Extension/status.css" /><!-- | |||
--><includeonly>{{#switch: | |||
| = | |||
{{#ifeq:{{lc:{{{status}}}}}|unmaintained|{{#ifeq:{{NAMESPACE}}|Extension|{{#invoke:Extension|unmaintained}}}}}} | |||
{{#if: {{{phabricator|{{{bugzilla|}}}}}} | {{Ptag|{{{phabricator|MediaWiki-extensions-{{{bugzilla|}}}}}}}} }} | |||
<table class="infobox infobox-{{dir|{{pagelang}}}} ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} }} | |||
|unmaintained|unstable|experimental|beta|stable={{lc: {{{status}}} }} | |||
|#default=unknown | |#default=unknown | ||
}}" | }}"> | ||
<caption>'''{{ll|Manual:Extensions|2=MediaWiki extensions manual}}'''</caption> | |||
<tr class="infobox-header ext-infobox-header"> | |||
<th colspan="2" style="padding-top: 0.5em;">[[File:{{#ifeq: {{lc: {{{status|}}} }} |unstable | |||
{{ll|Extension status|Release status:}} {{#switch: {{lc: {{{status|unknown}}} }} | |OOjs UI icon alert-invert.svg | ||
|<!--else-->OOjs UI icon advanced{{#ifeq:{{{status}}}|beta||-invert}}.svg | |||
}}|link=Special:MyLanguage/Template:Extension#Content|{{dir|{{pagelang}}|right|left}}|40px]] <span style="font-size: 130%; line-height: 100%;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME:{{translatable}}}}}}</span><br /> | |||
{{ll|Extension status|2=Release status:}} {{#switch: {{lc: {{{status|unknown}}} }} | |||
|unmaintained=unmaintained | |unmaintained=unmaintained | ||
|unstable=unstable | |unstable=unstable | ||
|experimental=experimental | |experimental=experimental | ||
|beta=beta | |beta=beta | ||
|stable=stable | |stable=stable | ||
|#default=unknown | |#default=unknown | ||
}}<!-- | |||
-->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->[[Category:{{#switch: {{lc:{{{status|}}} }} | -->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->[[Category:{{#switch: {{lc:{{{status|}}} }} | ||
|unstable|experimental|stable = {{{status}}} extensions | |unstable|experimental|unmaintained|stable = {{{status}}} extensions | ||
|beta = beta status extensions | |beta = beta status extensions | ||
|unknown = extensions with unknown status | |unknown = extensions with unknown status | ||
|#default = extensions with invalid status | |#default = extensions with invalid status | ||
}}{{translation}}]]}} | }}{{#translation:}}]]}}</th> | ||
</tr> | |||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
<tr> | |||
<td colspan="2" style="text-align: center;">[[File:{{{image}}}|{{{imagesize|300}}}px]]</td> | |||
|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category: | </tr> | ||
|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions without an image]]}}}} | |||
}} | |||
{{#if:{{{type|}}}{{{type1|}}}| | {{#if:{{{type|}}}{{{type1|}}}| | ||
<tr> | |||
{{ | <td style="min-width:7em">'''{{ll|Template:Extension#type|2=Implementation}}'''</td> | ||
<td>{{#invoke:Extension|getTypes | |||
|ajax = [[w:AJAX|Ajax]] | |||
|api = {{ll|API:Action API|2=API}} | |||
|beta feature = {{ll|Beta Features|2=Beta Feature}} | |||
|contenthandler = {{ll|Manual:ContentHandler|ContentHandler}} | |||
|database = {{ll|Manual:Database layout|2=Database}} | |||
|data extraction = Data extraction | |||
|example = Example | |||
|extended syntax = {{ll|Manual:Extending wiki markup|2=Extended syntax}} | |||
|filerepo = File repository | |||
|hook = {{ll|Manual:Hooks|2=Hook}} | |||
|interface = User interface | |||
|link = {{ll|Manual:Extending wiki markup|2=Link markup}} | |||
|media = Media | |||
|mywiki = {{ll|Manual:Personalization|2=MyWiki}} | |||
|notify = Notify | |||
|page action = {{ll|Manual:Parameters to index.php#Actions|2=Page action}} | |||
|parser = {{ll|Manual:Extending wiki markup|2=Parser extension}} | |||
|parser function = {{ll|Manual:Parser functions|2=Parser function}} | |||
|php = PHP | |||
|search = Search | |||
|skin = {{ll|Manual:Skins|2=Skin}} | |||
|special page = {{ll|Manual:Special pages|2=Special page}} | |||
|locale = {{ll|Manual:Localization|2=Locale}} | |||
|tag = {{ll|Manual:Tag extensions|2=Tag}} | |||
|user access = {{ll|Manual:Security|2=User access}} | |||
|user identity = {{ll|Manual:Security|2=User identity}} | |||
|user rights = {{ll|Manual:Security|2=User rights}} | |||
|user activity = {{ll|Manual:Security|2=User activity}} | |||
|variable = {{ll|Manual:Variables|2=Variable}} | |||
}}<!-- | |||
-->|<!--else--><!-- | -->|<!--else--><!-- | ||
-->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- | -->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- | ||
Line 43: | Line 80: | ||
-->{{#invoke:Extension|getType|_missing_}}<!-- | -->{{#invoke:Extension|getType|_missing_}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--> | --></td> | ||
</tr> | |||
}} | }} | ||
{{#if:{{{description|}}}| | {{#if:{{{description|}}}| | ||
<tr> | |||
<td>'''{{ll|Template:Extension#description|2=Description}}'''</td> | |||
<td>{{{description}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{author|}}}{{{username|}}} | | {{#if:{{{author|}}}{{{username|}}} | | ||
<tr> | |||
<td>'''{{ll|Template:Extension#username|2=Author(s)}}'''</td> | |||
<td>{{#if: {{{username|}}} |<!-- | |||
-->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!-- | -->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!-- | ||
nothing | nothing | ||
Line 61: | Line 99: | ||
-->}}<!-- | -->}}<!-- | ||
-->[[User:{{{username}}}|{{{username}}}]]<!-- | -->[[User:{{{username}}}|{{{username}}}]]<!-- | ||
--><sup>[[User talk:{{{username}}}|{{int | --><sup>[[User talk:{{{username}}}|{{int|talkpagelinktext}}]]</sup><!-- | ||
-->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!-- | -->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!-- | ||
nothing | nothing | ||
Line 69: | Line 107: | ||
-->|<!--else--><!-- | -->|<!--else--><!-- | ||
-->{{{author}}}<!-- | -->{{{author}}}<!-- | ||
-->}} | -->}}</td> | ||
</tr> | |||
}} | }} | ||
{{#if:{{{ | {{#if:{{{maintainer|}}} | | ||
<tr> | |||
{{ | <td>'''{{ll|Template:Extension#maintainer|2=Maintainer(s)}}'''</td> | ||
<td>{{#ifexist:User:{{{maintainer}}}|[[User:{{{maintainer}}}]]<sup>[[User talk:{{{maintainer}}}|{{int|talkpagelinktext}}]]</sup>|{{{maintainer}}}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{ | {{#if:{{#invoke:extension|getVersion|{{{latest release version|{{{latest_release_version|{{{version|}}}}}}}}}}}| | ||
<tr> | |||
{{ | <td>'''{{ll|Template:Extension#version|2=Latest version}}'''</td> | ||
<td>{{#invoke:extension|getVersion|{{{latest release version|{{{latest_release_version|{{{version|}}}}}}}}}}}{{#if:{{{latest release date|{{{latest_release_date|{{{update|}}}}}}}}}| ({{{latest release date|{{{latest_release_date|{{{update}}}}}}}}})}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{ | {{#if:{{{latest preview version|{{{latest_preview_version|{{{version_preview|{{{version preview|}}}}}}}}}}}}| | ||
<tr> | |||
{{ | <td>'''{{ll|Template:Extension#version|2=Latest preview version}}'''</td> | ||
{{ | <td>{{{latest preview version|{{{latest_preview_version|{{{version_preview|{{{version preview|}}}}}}}}}}}}{{#if:{{{latest preview date|{{{latest_preview_date|{{{update_preview|{{{update preview|}}}}}}}}}}}}| ({{{latest preview date|{{{latest_preview_date|{{{update_preview|{{{update preview}}}}}}}}}}}})}}</td> | ||
</tr> | |||
}} | }} | ||
{{#if:{{{compatibility policy|}}}| | |||
<tr> | |||
<td>'''{{ll|Compatibility#mediawiki_extensions|2=Compatibility policy}}'''</td> | |||
<td>{{#switch:{{{compatibility policy}}}<!-- | |||
-->|master=Master maintains backward compatibility.{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions with master compatibility policy]]}}}}<!-- | |||
-->|rel=Snapshots releases along with MediaWiki. Master is not backward compatible.{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions with release branches compatibility policy]]}}}}<!-- | |||
-->|ltsrel= Follows the [[Special:MyLanguage/Version lifecycle#Release policy|MediaWiki version lifecycle]]. Master is not backward compatible.{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions with long-term support release branches compatibility policy]]}}}}<!-- | |||
-->|#default=<span class="error">invalid</span>{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions without a compatibility policy]]}}}}<!-- | |||
-->}}</td> | |||
</tr> | |||
|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions without a compatibility policy]]}}}} | |||
}} | |||
<tr> | |||
<td>{{ll|Template:Extension#mediawiki|'''MediaWiki'''}}</td> | |||
<td>{{#invoke:Extension |getMediaWikiRequirement |{{{mediawiki|}}} }}</td> | |||
</tr> | |||
{{#if:{{{php|}}}| | {{#if:{{{php|}}}| | ||
<tr> | |||
<td>{{ll|Template:Extension#php|'''PHP'''}}</td> | |||
<td>{{{php}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{needs-updatephp| | {{#if:{{{needs-updatephp|{{#invoke:Extension|getNeedsUpdates}}}}}| | ||
{{ | <tr> | ||
<td>{{ll|Template:Extension#needs-updatephp|2=<abbr title="'php update.php' needed after installation">'''Database changes'''</abbr>}}</td> | |||
<td>{{#switch:{{{needs-updatephp|{{#invoke:Extension|getNeedsUpdates}}}}}|yes|Yes=Yes|no|No=No|{{{needs-updatephp|{{#invoke:Extension|getNeedsUpdates}}}}}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{composer|}}}| | {{#if:{{{composer|}}}| | ||
<tr> | |||
<td>{{ll|Composer|2=<abbr title="Supports 'Composer' for installation">'''Composer'''</abbr>}}</td> | |||
<td>[https://packagist.org/packages/{{{composer}}} {{{composer}}}] {{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{{composer|}}}|[[Category:Extensions supporting Composer{{#translation:}}]]|}} }}</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{table1|}}}| | {{#if:{{{table1|}}}| | ||
<tr> | |||
<td>'''{{ll|Template:Extension#table1|2=Tables}}'''</td> | |||
-->{{#if:{{{table2|}}}|<br />{{ll|{{ | <td>{{ll|{{translatable}}/{{{table1}}} table|{{{table1}}}}}<!-- | ||
-->{{#if:{{{table3|}}}|<br />{{ll|{{ | -->{{#if:{{{table2|}}}|<br />{{ll|{{translatable}}/{{{table2}}} table|{{{table2}}}}}<!-- -->}}<!-- | ||
-->{{#if:{{{table4|}}}|<br />{{ll|{{ | -->{{#if:{{{table3|}}}|<br />{{ll|{{translatable}}/{{{table3}}} table|{{{table3}}}}}<!-- -->}}<!-- | ||
-->{{#if:{{{table5|}}}|<br />{{ll|{{ | -->{{#if:{{{table4|}}}|<br />{{ll|{{translatable}}/{{{table4}}} table|{{{table4}}}}}<!-- -->}}<!-- | ||
-->{{#if:{{{table6|}}}|<br />{{ll|{{ | -->{{#if:{{{table5|}}}|<br />{{ll|{{translatable}}/{{{table5}}} table|{{{table5}}}}}<!-- -->}}<!-- | ||
-->{{#if:{{{table7|}}}|<br />{{ll|{{ | -->{{#if:{{{table6|}}}|<br />{{ll|{{translatable}}/{{{table6}}} table|{{{table6}}}}}<!-- -->}}<!-- | ||
-->{{#if:{{{table8|}}}|<br />{{ll|{{ | -->{{#if:{{{table7|}}}|<br />{{ll|{{translatable}}/{{{table7}}} table|{{{table7}}}}}<!-- -->}}<!-- | ||
-->{{#if:{{{table9|}}}|<br />{{ll|{{ | -->{{#if:{{{table8|}}}|<br />{{ll|{{translatable}}/{{{table8}}} table|{{{table8}}}}}<!-- -->}}<!-- | ||
-->{{#if:{{{table10|}}}|<br />{{ll|{{ | -->{{#if:{{{table9|}}}|<br />{{ll|{{translatable}}/{{{table9}}} table|{{{table9}}}}}<!-- -->}}<!-- | ||
{{!}}- | -->{{#if:{{{table10|}}}|<br />{{ll|{{translatable}}/{{{table10}}} table|{{{table10}}}}}<!-- -->}}<!-- | ||
-->{{#if:{{{table11|}}}|<br />{{ll|{{translatable}}/{{{table11}}} table|{{{table11}}}}}<!-- -->}}<!-- | |||
-->{{#if:{{{table12|}}}|<br />{{ll|{{translatable}}/{{{table12}}} table|{{{table12}}}}}<!-- -->}}<!-- | |||
-->{{#if:{{{table13|}}}|<br />{{ll|{{translatable}}/{{{table13}}} table|{{{table13}}}}}<!-- -->}}<!-- | |||
-->{{#if:{{{table14|}}}|<br />{{ll|{{translatable}}/{{{table14}}} table|{{{table14}}}}}<!-- -->}}<!-- | |||
-->{{#if:{{{table15|}}}|<br />{{ll|{{translatable}}/{{{table15}}} table|{{{table15}}}}}<!-- -->}}<!-- | |||
-->{{#if:{{{table16|}}}|<br />{{ll|{{translatable}}/{{{table16}}} table|{{{table16}}}}}<!-- -->}}<!-- | |||
-->{{#if:{{{table17|}}}|<br />{{ll|{{translatable}}/{{{table17}}} table|{{{table17}}}}}<!-- -->}}<!-- | |||
-->{{#if:{{{table18|}}}|<br />{{ll|{{translatable}}/{{{table18}}} table|{{{table18}}}}}<!-- -->}}<!-- | |||
-->{{#if:{{{table19|}}}|<br />{{ll|{{translatable}}/{{{table19}}} table|{{{table19}}}}}<!-- -->}}<!-- | |||
-->{{#if:{{{table20|}}}|<br />{{ll|{{translatable}}/{{{table20}}} table|{{{table20}}}}}<!-- -->}}</td> | |||
</tr> | |||
}} | }} | ||
<tr> | |||
<td>'''{{ll|Template:Extension#license|2=License}}'''</td> | |||
<td>{{#invoke:Extension|getFormattedLicense|{{{license|}}} | |||
|GPL-2.0 = GNU General Public License 2.0 | |||
|GPL-2.0-only = GNU General Public License 2.0 only | |||
|GPL-2.0-or-later = GNU General Public License 2.0 or later | |||
-->{{#if:{{{download|}}}|{{{download}}}|''No link''}}<!-- | |GPL-3.0 = GNU General Public License 3.0 | ||
|GPL-3.0-only = GNU General Public License 3.0 only | |||
|GPL-3.0-or-later = GNU General Public License 3.0 or later | |||
|AGPL-3.0 = GNU Affero General Public License 3.0 | |||
|AGPL-3.0-or-later = GNU Affero General Public License 3.0 or later | |||
|LGPL-2.1 = GNU Lesser General Public License 2.1 | |||
|LGPL-2.1-only = GNU Lesser General Public License 2.1 only | |||
|LGPL-2.1-or-later = GNU Lesser General Public License 2.1 or later | |||
|LGPL-3.0 = GNU Lesser General Public License 3.0 | |||
|LGPL-3.0-only = GNU Lesser General Public License 3.0 only | |||
|LGPL-3.0-or-later = GNU Lesser General Public License 3.0 or later | |||
|FDL = GNU Free Documentation License | |||
|MIT = MIT License | |||
|ISC = ISC License | |||
|BSD-2-Clause = BSD 2-clause "Simplified" License | |||
|BSD-3-Clause = BSD 3-clause "Modified" License | |||
|BSD-4-Clause = BSD 4-clause "Original" License | |||
|MPL-1.0 = Mozilla Public License 1.0 | |||
|MPL-2.0 = Mozilla Public License 2.0 | |||
|WTFPL = WTFPL 2.0 | |||
|Apache-2.0 = Apache License 2.0 | |||
|Zlib = zlib License | |||
|CC0-1.0 = Creative Commons Zero v1.0 Universal | |||
|CC-BY-3.0 = Creative Commons Attribution 3.0 | |||
|CC-BY-SA-2.0 = Creative Commons Attribution Share Alike 2.0 | |||
|CC-BY-SA-2.5 = Creative Commons Attribution Share Alike 2.5 | |||
|CC-BY-NC-SA-2.5 = Creative Commons Attribution NonCommercial Share Alike 2.5 | |||
|CC-BY-NC-SA-3.0 = Creative Commons Attribution NonCommercial Share Alike 3.0 | |||
|CC-BY-NC-3.0 = Creative Commons Attribution NonCommercial 3.0 | |||
|CC-BY-SA-3.0 = Creative Commons Attribution Share Alike 3.0 | |||
|CC-BY-SA-4.0 = Creative Commons Attribution Share Alike 4.0 | |||
|ECL-2.0 = [[w:Educational Community License|Educational Community License 2.0]] | |||
|PD = [[w:Public domain|Public domain]] | |||
|+ =  or later | |||
|unspecified = No license specified | |||
}}</td> | |||
</tr><tr> | |||
{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- no category -->|{{#invoke:Extension|getLicenseCategory|{{{license|}}}}}}} | |||
<td>'''Download'''</td> | |||
<td><!-- | |||
-->{{#if:{{{download|}}}|{{{download}}}|{{#if:{{{repo|}}}|{{WikimediaDownload|{{{repo}}}}}|''No link''}}}}<!-- | |||
-->{{#if:{{{readme|}}}|<br />{{{readme}}}<!-- -->}}<!-- | -->{{#if:{{{readme|}}}|<br />{{{readme}}}<!-- -->}}<!-- | ||
-->{{#if:{{{changelog|}}}|<br />{{{changelog}}}<!-- -->}} | -->{{#if:{{{changelog|}}}|<br />{{{changelog}}}<!-- -->}}</td> | ||
| | </tr> | ||
{{#if: {{{help|}}}{{#ifexist:Help:{{FULLPAGENAME}}|yes}} | | |||
<tr> | |||
<td>'''{{ll|Template:Extension#help|2=Help}}'''</td> | |||
<td>{{#if: {{{help|}}} | {{{help}}} | {{localized link|Help:{{FULLPAGENAME}}}} }}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{example|}}}| | {{#if:{{{example|}}}| | ||
<tr> | |||
<td>'''{{ll|Template:Extension#example|2=Example}}'''</td> | |||
<td>{{{example}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{namespace|}}}| | {{#if:{{{namespace|}}}| | ||
<tr> | |||
<td class="mw-collapsible mw-collapsed" colspan="2"> | |||
<div class="mw-collapsible-header">'''{{ll|Template:Extension#namespace|2=Namespace}}'''</div> | |||
<div class="mw-collapsible-content"><!-- the parameter "namespace" should begin on its own line so that bullet lists are correctly recognised by MediaWiki --> | |||
{{{namespace|}}}</div></td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{parameters|}}}| | {{#if:{{#if:{{{parameters|}}}|y|{{#invoke:Extension|getParameters}}}}| | ||
{{ | <tr> | ||
<td class="mw-collapsible mw-collapsed" colspan="2"> | |||
<div class="mw-collapsible-header">{{ll|Template:Extension#parameters|2=Parameters}}</div> | |||
<div class="mw-collapsible-content"><!-- the parameter "parameters" should begin on its own line so that bullet lists are correctly recognised by MediaWiki --> | |||
{{#if:{{{parameters|}}}|{{{parameters}}}|{{#invoke:Extension|getParameters}}}}</div></td> | |||
</tr> | |||
{{ | |||
{{{parameters}}} | |||
{{ | |||
{{ | |||
}} | }} | ||
{{#if:{{{tags|}}}| | {{#if:{{{tags|}}}| | ||
<tr> | |||
<td class="mw-collapsible mw-collapsed" colspan="2"> | |||
<div class="mw-collapsible-header">{{ll|Template:Extension#tags|2=Tags}}</div> | |||
<div class="mw-collapsible-content">{{{tags}}}</div></td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{rights|}}}| | {{#if:{{#if:{{{rights|}}}|y|{{#invoke:Extension|getRights}}}}| | ||
{{ | <tr> | ||
<td class="mw-collapsible mw-collapsed" colspan="2"> | |||
<div class="mw-collapsible-header">{{ll|Template:Extension#rights|2=Added rights}}</div> | |||
<div class="mw-collapsible-content"><!-- the parameter "rights" should begin on its own line so that bullet lists are correctly recognised by MediaWiki --> | |||
{{#if:{{{rights|}}}|{{{rights}}}|{{#invoke:Extension|getRights}}}} | |||
{{ | {{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{{rights|}}}|[[Category:Extensions which add rights{{#translation:}}]]|}} }}</div></td> | ||
{{{rights}}} | </tr> | ||
{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{{rights|}}}|[[Category:Extensions which add rights{{translation}}]]|}} }} | |||
}} | }} | ||
{{#if:{{{ | {{#if:{{{service1|}}}| | ||
<tr> | |||
<td class="mw-collapsible mw-collapsed" colspan="2"> | |||
<div class="mw-collapsible-header">{{ll|Template:Extension#service|Services defined}}</div> | |||
<div class="mw-collapsible-content"> | |||
<div>{{{service1|}}}[[Category:Extensions defining a service|{{PAGENAME}}]]</div> | |||
{{#if:{{{service2|}}}|<div>{{{service2|}}}</div>}} | |||
</div></td> | |||
</tr> | |||
}} | |||
{{#invoke:Extension|getHooks|header= | |||
<tr> | |||
<td class="mw-collapsible mw-collapsed" colspan="2"> | |||
<div class="mw-collapsible-header">{{ll|Template:Extension#hook|2=Hooks used}}</div> | |||
{{plainlist|class=mw-collapsible-content}}<ul><li>|delim=</li><li>|footer=</li></ul>{{endplainlist}} | |||
</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{newhook1|}}}| | {{#if:{{{newhook1|}}}| | ||
<tr> | |||
<td class="mw-collapsible mw-collapsed" colspan="2"> | |||
<div class="mw-collapsible-header">{{ll|Template:Extension#newhook|2=Hooks provided}}</div> | |||
{{plainlist|class=mw-collapsible-content}}<ul><li><!-- | |||
{{ | -->{{Foreach|Extension/HookProvided|delim=</li><li>|<!-- | ||
-->{{Foreach|Extension/HookProvided|delim=< | |||
-->{{{newhook1}}}|{{{newhook2|}}}|{{{newhook3|}}}|{{{newhook4|}}}|{{{newhook5|}}}|{{{newhook6|}}}|<!-- | -->{{{newhook1}}}|{{{newhook2|}}}|{{{newhook3|}}}|{{{newhook4|}}}|{{{newhook5|}}}|{{{newhook6|}}}|<!-- | ||
-->{{{newhook7|}}}|{{{newhook8|}}}|{{{newhook9|}}}|{{{newhook10|}}}|{{{newhook11|}}}|{{{newhook12|}}}|<!-- | -->{{{newhook7|}}}|{{{newhook8|}}}|{{{newhook9|}}}|{{{newhook10|}}}|{{{newhook11|}}}|{{{newhook12|}}}|<!-- | ||
Line 219: | Line 312: | ||
-->{{{newhook31|}}}|{{{newhook32|}}}|{{{newhook33|}}}|{{{newhook34|}}}|{{{newhook35|}}}|{{{newhook36|}}}|<!-- | -->{{{newhook31|}}}|{{{newhook32|}}}|{{{newhook33|}}}|{{{newhook34|}}}|{{{newhook35|}}}|{{{newhook36|}}}|<!-- | ||
-->{{{newhook37|}}}|{{{newhook38|}}}|{{{newhook39|}}}|{{{newhook40|}}}|{{{newhook41|}}}|{{{newhook42|}}}|<!-- | -->{{{newhook37|}}}|{{{newhook38|}}}|{{{newhook39|}}}|{{{newhook40|}}}|{{{newhook41|}}}|{{{newhook42|}}}|<!-- | ||
-->{{{newhook43|}}}|{{{newhook44|}}}|{{{newhook45|}}}|{{{newhook46|}}}|{{{newhook47|}}}|{{{newhook48|}}}<!-- | -->{{{newhook43|}}}|{{{newhook44|}}}|{{{newhook45|}}}|{{{newhook46|}}}|{{{newhook47|}}}|{{{newhook48|}}}|<!-- | ||
-->{{{newhook49|}}}|{{{newhook50|}}}|{{{newhook51|}}}|{{{newhook52|}}}|{{{newhook53|}}}|{{{newhook54|}}}|<!-- | |||
-->{{{newhook55|}}}|{{{newhook56|}}}|{{{newhook57|}}}|{{{newhook58|}}}|{{{newhook59|}}}|{{{newhook60|}}}|<!-- | |||
-->{{{newhook61|}}}|{{{newhook62|}}}|{{{newhook63|}}}|{{{newhook64|}}}|{{{newhook65|}}}|{{{newhook66|}}}|<!-- | |||
-->{{{newhook67|}}}|{{{newhook68|}}}|{{{newhook69|}}}|{{{newhook70|}}}|{{{newhook71|}}}|{{{newhook72|}}}|<!-- | |||
-->{{{newhook73|}}}|{{{newhook74|}}}|{{{newhook75|}}}|{{{newhook76|}}}|{{{newhook77|}}}|{{{newhook78|}}}|<!-- | |||
-->{{{newhook79|}}}|{{{newhook80|}}}|{{{newhook81|}}}|{{{newhook82|}}}|{{{newhook83|}}}|{{{newhook84|}}}|<!-- | |||
-->{{{newhook85|}}}|{{{newhook86|}}}|{{{newhook87|}}}|{{{newhook88|}}}|{{{newhook89|}}}|{{{newhook90|}}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
--> | --></li></ul>{{endplainlist}} | ||
{{ | </td> | ||
</tr> | |||
}} | }} | ||
{{#if:{{{compatibility|}}}| | {{#if:{{{compatibility|}}}| | ||
<tr> | |||
{{{compatibility}}} | <td colspan="2"><!-- the parameter "compatibility" should begin on its own line so that bullet lists are correctly recognised by MediaWiki --> | ||
{{{compatibility}}}</td> | |||
</tr> | |||
}} | }} | ||
{{ | {{#if:{{{notranslate|{{#if:{{#invoke:Extension|isOnGerrit}}{{{translate|}}}||n}}}}}|| | ||
[[translatewiki:Special:Translate/{{{translate|ext-{{lc:{{#invoke:String | <tr> | ||
<td colspan="2" style="text-align:center;"> | |||
{{#if:{{{translate|}}} | |||
|[[translatewiki:Special:Translate/{{{translate}}}|Translate the {{PAGENAME:{{translatable}}}} extension]] | |||
|[[translatewiki:Special:Translate/ext-{{lc:{{#invoke:String|replace|{{PAGENAME:{{translatable}}}}| |}}}}|Translate the {{PAGENAME:{{translatable}}}} extension]] if it is available at translatewiki.net | |||
}}</td> | |||
</tr>}}<!-- | |||
Note: this next check suppresses the 'Check usage' link if page is: a subpage, not in Extension: namespace, or if suppressed by 'templatemode=nocats' or 'nousage=true'. | Note: this next check suppresses the 'Check usage' link if page is: a subpage, not in Extension: namespace, or if suppressed by 'templatemode=nocats' or 'nousage=true'. | ||
-->{{#if:{{{nousage|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats | -->{{#if:{{{nousage|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats | ||
Line 246: | Line 351: | ||
}}}}} | }}}}} | ||
|<!-- no usage -->| | |<!-- no usage -->| | ||
<tr> | |||
<td colspan="2" style="text-align:center;"> | |||
<span style="white-space:nowrap">[[wikiapiary:Extension:{{{CheckUsageNameOverride|{{BASEPAGENAMEE}}}}}|Check usage and version matrix.]]</span> | <span style="white-space:nowrap">[[wikiapiary:Extension:{{{CheckUsageNameOverride|{{BASEPAGENAMEE}}}}}|Check usage and version matrix.]]</span> | ||
< | </td> | ||
</tr> | |||
{{#if:{{{vagrant-role|}}} | | }} | ||
{{#if:{{{vagrant-role|}}}| | |||
<tr> | |||
<td>'''{{ll|MediaWiki-Vagrant#Using roles|2=Vagrant role}}'''</td> | |||
<td>[https://doc.wikimedia.org/mediawiki-vagrant/puppet_classes/role_3A_3A{{{vagrant-role}}}.html {{{vagrant-role}}}]</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{phabricator|{{{bugzilla|}}}}}} | | {{#if: {{{phabricator|{{{bugzilla|}}}}}} | | ||
<tr> | |||
'''{{ll|Phabricator|Issues}}''' | <td> | ||
'''{{ll|Phabricator|2=Issues}}'''</td> | |||
{{ | <td>[[phab:tag/{{lc:{{{phabricator|MediaWiki-extensions-{{{bugzilla}}}}}}}}|Open tasks]] · [https://phabricator.wikimedia.org/maniphest/task/create/?projects={{{phabricator|MediaWiki-extensions-{{{bugzilla}}}}}} Report a bug]</td> | ||
</tr> | |||
}} | |||
{{#if: {{{github|}}} | | |||
<tr> | |||
<td> | |||
'''{{ll|Gerrit/GitHub|2=Issues}}'''</td> | |||
<td>[https://www.github.com/{{{github}}}/issues Open issues] · [https://www.github.com/{{{github}}}/issues/new Report a bug]</td> | |||
</tr> | |||
}} | }} | ||
</table><!-- | |||
-->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- | -->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- | ||
nothing--><!-- | nothing--><!-- | ||
Line 270: | Line 386: | ||
-->{{uc:{{PAGENAME}}<!-- -->}}<!-- | -->{{uc:{{PAGENAME}}<!-- -->}}<!-- | ||
-->}}<!-- -->}}<!-- | -->}}<!-- -->}}<!-- | ||
-->[[Category:All extensions{{translation}}]]<!-- | -->[[Category:All extensions{{#translation:}}]]<!-- | ||
-->}}<noinclude>{{ {{ | -->{{#invoke:Extension|getExtensionJsonCategory}}<!-- | ||
[[Category: | -->}}<!-- | ||
[[Category:Extension creation{{translation}}]] | --><!--Check if the source page was deleted/archived--> {{#invoke:Extension|maintenanceLinks}} | ||
[[Category: | | #default= | ||
[[Category:Extension | {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Extension|noshift=1}} | ||
}}</includeonly><noinclude>{{Documentation|content= | |||
{{intricate template}} | |||
{{lua|Module:Extension|Module:ExtensionJson|Module:String}} | |||
{{Uses TemplateStyles|Template:Infobox/styles.css|Template:Extension/styles.css|Template:Extension/status.css}} | |||
This template should be added to all extension pages on this wiki (but only the main page). | |||
It will add a useful infobox (see below) and will automatically add the extension to {{ll|Category:All extensions}}, along with the appropriate {{ll|Category:Extensions by status|status}} and {{ll|Category:Extensions by implementation type|implementation type}} categories. | |||
== Usage == | |||
<table width="100%"> | |||
<tr> | |||
<th width=40%></th> | |||
<th width=60%></th> | |||
</tr> | |||
<tr valign="top"> | |||
<td align="left"> | |||
<span id="CutAndPaste">Copy and paste:</span> | |||
<pre>{{Extension |templatemode = | |||
|name = | |||
|status = | |||
|type1 = | |||
|type2 = | |||
|hook1 = | |||
|hook2 = | |||
|newhook1 = | |||
|newhook2 = | |||
|username = | |||
|author = | |||
|description = | |||
|image = | |||
|imagesize = | |||
|version = | |||
|update = | |||
|version preview = | |||
|update preview = | |||
|compatibility policy = | |||
|mediawiki = | |||
|php = | |||
|needs-updatephp = | |||
|composer = | |||
|table1 = | |||
|table2 = | |||
|license = | |||
|download = | |||
|readme = | |||
|changelog = | |||
|help = | |||
|example = | |||
|namespace = | |||
|parameters = | |||
|tags = | |||
|rights = | |||
|compatibility = | |||
|bugzilla = | |||
|phabricator = | |||
|vagrant-role = | |||
}}</pre> | |||
For help with parameter values, see [[#Content parameters|below]].</td> | |||
<td align="right">{{Extension |templatemode=nocats | |||
|name = {{{name}}} | |||
|status = {{{status}}} | |||
|type1 = {{{type1}}} | |||
|type2 = {{{type2}}} | |||
|hook1 = hook1 | |||
|hook2 = hook2 | |||
|newhook1 = newhook1 | |||
|newhook2 = newhook2 | |||
|username = SomeUser | |||
|author = SomeAuthor | |||
|image = Placeholder.svg | |||
|version = {{{version}}} | |||
|update = {{{update}}} | |||
|version preview = {{{version preview}}} | |||
|update preview = {{{update preview}}} | |||
|compatibility policy = {{{compatibility policy}}} | |||
|mediawiki = {{{mediawiki}}} | |||
|php = {{{php}}} | |||
|needs-updatephp = {{{needs-updatephp}}} | |||
|composer = {{{composer}}} | |||
|table1 = {{{table1}}} | |||
|table2 = {{{table2}}} | |||
|license = {{{license}}} | |||
|download = {{{download}}} | |||
|readme = {{{readme}}} | |||
|changelog = {{{changelog}}} | |||
|help = {{{help}}} | |||
|example = {{{example}}} | |||
|namespace = {{{namespace}}} | |||
|description = {{{description}}} | |||
|parameters = {{{parameters}}} | |||
|tags = {{{tags}}} | |||
|rights = {{{rights}}} | |||
|compatibility = {{{compatibility}}} | |||
|bugzilla = {{{bugzilla}}} | |||
|phabricator = {{{phabricator}}} | |||
|vagrant-role = {{{vagrant-role}}} | |||
}}</td> | |||
</tr> | |||
</table> | |||
{{anchor|Content parameters}} | |||
== Content parameters == | |||
This section describes parameters that govern infobox content. | |||
For help with '''templatemode''' and other control parameters, please see ''[[#Control parameters|Control parameters]]''. | |||
<!-- BEFORE YOU EDIT THIS: | |||
span ids on each parameter are used by the code in Template:Extension. | |||
They enable each label in the info box to link its documentation. | |||
If you change an id, please update the code in Template:Extension accordingly. | |||
--> | |||
<table class="wikitable"> | |||
<caption>'''Content parameters'''</caption> | |||
<tr> | |||
<th>Parameter</th> | |||
<th>Description</th> | |||
</tr> | |||
<tr> | |||
<td><span id="name">'''name'''</span></td><td>'''name of the extension'''</td> | |||
</tr> | |||
<tr> | |||
<td><span id="status">'''status'''</span></td><td> | |||
'''current release status''' | |||
One of: | |||
* ''{{ll|Category:Unstable extensions|unstable}}'' - broken - do not use this extension | |||
* ''{{ll|Category:Experimental extensions|experimental}}'' - early stages of development, may change drastically | |||
* ''{{ll|Category:Beta status extensions|beta}}'' - stable but not fully tested | |||
* ''{{ll|Category:Stable extensions|stable}}'' - stable version | |||
* ''{{ll|Category:Unmaintained extensions|unmaintained}}'' - unmaintained - previously claimed to be stable, now unmaintained | |||
* ''{{ll|Category:Extensions with unknown status|unknown}}'' - default | |||
If the status is anything other than the above, it will be ignored and the default value of 'Unknown' will be displayed in the template instead. | |||
In cases where the value is omitted, it will be categorized as [[Special:MyLanguage/Category:extensions with unknown status|unknown]]. | |||
In cases where the value is invalid, it will be placed in a [[Special:MyLanguage/Category:extensions with invalid status|special category]] so that the error can be caught and fixed. | |||
* [[Special:MyLanguage/Extension status|release status colour scheme]]</td> | |||
</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 --> | |||
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 [[Special:MyLanguage/Help:Categories|category links]] as needed. | |||
Allowed values for the '''type1''', '''type2''', ... parameters are: | |||
* '''''{{ll|Category:Parser extensions|parser}}''''' - catchall for uncategorized [[Special:MyLanguage/Manual:Extending wiki markup|parser extensions]]. If you have written a parser extension, please use one of the following more specific types: | |||
** ''{{ll|Category:ContentHandler extensions|contenthandler}}'' - Extensions using {{ll|Manual:ContentHandler|ContentHandler}}. | |||
** ''{{ll|Category:Link markup extensions|link}}'' - customized [[Special:MyLanguage/Manual:Extending wiki markup|link markup]], e.g. <code><nowiki>[[</nowiki>...]]</code> | |||
** ''{{ll|Category:Parser function extensions|parser function}}'' - custom [[Special:MyLanguage/Manual:Parser functions|parameterized template markup]], e.g. <code><nowiki>{{</nowiki>''#name:'' ... <nowiki>}}</nowiki></code> | |||
** ''{{ll|Category:Tag extensions|tag}}'' - [[Special:MyLanguage/Manual:Tag extensions|custom XML tag markup]], e.g. {{tag|''tagname''}} | |||
** ''{{ll|Category:Variable extensions|variable}}'' - custom [[Special:MyLanguage/Manual:Variables|unparameterized template markup]], e.g. <code><nowiki>{{NAME}}</nowiki></code> | |||
** ''{{ll|Category:Extended syntax extensions|extended syntax}}'' - Extensions that add non-standard wiki syntax (i.e. <em>not</em> [[Special:MyLanguage/Manual:Tag extensions|tags]], [[Special:MyLanguage/Manual:Parser functions|parser functions]], or [[Special:MyLanguage/Manual:Variables|variables]]). | |||
*: | |||
* {{ll|Category:User access extensions|'''''access'''''}} - catchall for {{ll|Manual:User access extensions|nsp=0}}, that is, extensions that create, authenticate, grant permissions, revoke permissions, or monitor the activity of users. If you have written an access extension, please use one of the following more specific types: | |||
** {{ll|Category:User activity extensions|''user activity''}} - extensions that monitor user activity (logins, logouts, new user creation, etc.) | |||
** {{ll|Category:User identity extensions|''user identity''}} - extensions that create and delete users, and/or verify the identity of a user | |||
** {{ll|Category:User rights extensions|''user rights''}} - extensions to the rights management system, e.g. changes to the way rights are assigned, API, maintenance tools (does not include extensions that merely name the rights needed to use the features of that extension; for this purpose use the [[#rights|rights parameter]]) | |||
* {{ll|Category:User interface extensions|'''''interface'''''}} - catchall for uncategorized user interface extensions. | |||
** ''{{ll|Category:Media handling extensions|media}}'' - extensions that permit the embedding of multimedia content on wiki pages by registering a file extension with {{ll|Manual:$wgMediaHandlers|$wgMediaHandlers}}. | |||
** ''{{ll|Category:Personalization extensions|mywiki}}'' - extensions that provide infrastructure so that users may personalize their MediaWiki experience and/or assist in the management of that infrastructure | |||
** {{ll|Category:Notification extensions|''notify''}} - extensions that email users, broadcast messages and provide other forms of community notification | |||
** ''{{ll|Category:Page action extensions|''page action''}}'' - extensions that enhance or modify {{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 ''user rights'') or logs (use ''user activity''). | |||
** {{ll|Category:Search extensions|''search''}} - extensions that search through and select pages for users. | |||
** {{ll|Category:Skin extensions|''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. | |||
** {{ll|Category:Ajax extensions|''ajax''}} - extensions that use [[w:AJAX|Ajax]] programming techniques. | |||
** {{ll|Category:Special page extensions|''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 {{ll|Manual:Special pages|Special pages}} for more information. | |||
* '''other''' | |||
** {{ll|Category:API extensions|''api''}} - extensions that add a new API module or extend a core API module. | |||
** {{ll|Category:Hook extensions|''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 | |||
** {{ll|Category:Database extensions|''database''}} - adds tables and/or fields to the database backing a MediaWiki installation | |||
** {{ll|Category:Data extraction extensions|''data extraction''}} - Data extraction | |||
** {{ll|Category:File repository extensions|''filerepo''}} - extension that adds new file repository types as file backend | |||
** {{ll|Category:Extension examples|''example''}} - Not a real extension, but an example of how to write one | |||
** {{ll|Category:Beta Feature extensions|''beta features''}} - extensions that new {{ll|Beta Features}}. | |||
** {{ll|Category:PHP extensions|''php''}} - extensions to the underlying {{ll|PHP}} programming language. | |||
** {{ll|Category:Internationalization extensions|''locale''}} - extensions associated with [[Special:MyLanguage/Manual:Localization|localization]] | |||
Any other value for 'type' is invalid, and will cause the extension to be placed in [[:Category:Extensions with invalid or missing type{{#translation:}}]]. | |||
Note: Many extensions have more than one type, if this applies to yours, replace <code>{{!}}type=</code> with <code>{{!}}type1={{!}}type2={{!}}type3=...</code>. You may define up to six types for an extension.</td> | |||
</tr> | |||
<tr> | |||
<td><span id="hook">'''hook1'''</span><br/>''hook2''<br/>''hook3''<br/>''hook4''<br/>...</td> | |||
<td valign="top">'''name of each hook used by the extension''' | |||
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 page so that programmers can easily find examples of extensions that use a particular hook. | |||
For built-in hooks: | |||
* use the hook name alone. Please see {{ll|Manual:Hooks|Manual:Hooks}} for values (but omit introductory '/'). | |||
For custom hooks defined by extensions: | |||
* use ''extensionName''/''hookName''. For a partial list of custom hooks, see [[Extension hook registry]]. | |||
For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on.</td> | |||
</tr> | |||
<tr> | |||
<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''' | |||
You might also want to add the hooks to [[Extension hook registry]]. | |||
</td> | |||
</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> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|author}}</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> | |||
</tr> | |||
<tr> | |||
<td><span id="description">'''description'''</span></td><td>'''short description'''</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|image}}</td><td>screenshot or logo of extension. It should be provided without namespace and without <nowiki>[[]]</nowiki>s.</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|imagesize}}</td><td>''facultative'', size of the image (default size is 220px)</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|version}}</td><td>last version</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|update}}</td><td>date of the last update</td> | |||
</tr> | |||
<tr> | |||
<td><span id="compatibility_policy">compatibility policy</span></td><td>{{ll|Compatibility#mediawiki_extensions|compatibility policy}} (accepted values are '''master''', '''rel''', and '''ltsrel'''). ({{ll|Category:Extensions without a compatibility policy|2=backlog}})</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|mediawiki}}</td><td>Required version of MediaWiki. Most extensions should not need to use this — it defaults to the value of the {{Manual|Extension.json/Schema#requires|'requires'}} property of {{manual|extension.json}}. See also [[:Category:Extensions without MediaWiki version]] and [[:Category:Extensions with manual MediaWiki version]].</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|php}}</td><td>required version of PHP</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|needs-updatephp}}</td> | |||
<td> | |||
<code>yes</code> indicates that the extension requires a database table schema change or a similar action, before the MediaWiki can run. It is a common pitfall: your MediaWiki will stall, if you forgot to run update.php - if the extension requires it. <code>no</code> should be set as a value since this assures that the extension does not need update.php to be run and thus avoids uncertainty | |||
Extensions which conform to MediaWiki extension standards come with a '''schema change script which you need to start manually''' (once) before starting and accessing the MediaWiki through your browser, and after you copied all the extension files to <syntaxhighlight lang=php inline>$IP/extensions/ExtensionName</syntaxhighlight> and inserted <syntaxhighlight lang=php inline>wfLoadExtension( "ExtensionName" );</syntaxhighlight> into "LocalSettings.php", run from the command line: | |||
<code class="mw-code mw-highlight" style="display:block"><!-- | |||
-->{{#tag:span|cd|class=nb}} ''path/to/wiki_install_directory'' | |||
{{#tag:span|cd|class=nb}} maintenance | |||
php update.php | |||
</code> | |||
{{$IP}}</td> | |||
</tr> | |||
<tr> | |||
<td><span id="php">composer</span></td><td>If applicable the name of the "vendor" as well as the "package" should be entered in the format <code>vendor/package</code>, e.g. <code>mediawiki/semantic-media-wiki</code> to point people directly to packagist.org, which serves as the package archive.</td> | |||
</tr> | |||
<tr> | |||
<td><span id="table1">'''table1'''</span><br/>''table2''<br/>''table3''<br/>''table4''<br/>...<br/>''table30''</td><td>'''name of each ''non-core'' table used by the extension''' | |||
Links to a subpage of your extension page. For instance, "table1 = cu_changes" at {{ll|Extension:CheckUser|Extension:CheckUser}} will link to {{ll|Extension:CheckUser/cu_changes table|Extension:CheckUser/cu_changes table}}. Don't list core tables such as {{ll|Manual:Page table|page}} or {{ll|Manual:Revision table|revision}}; only list tables that are added by extensions.</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|license}}</td><td>license governing use of this extension, as one of the codes found in https://spdx.org/licenses/, e.g. <code>GPL-2.0-or-later</code>, <code>GPL-2.0-only</code> or <code>GPL-3.0-or-later</code>, etc.</td> | |||
</tr> | |||
<tr> | |||
<td><span id="download">'''download'''</span></td><td>'''link to the download''' : [[phab:r/project/mediawiki/core|Git]], {{tl|WikimediaDownload{{#translation:}}}}. </td> | |||
</tr> | |||
<td><span id="repo">repo</span></td><td>Name of the Gerrit repository the extension's code is stored in, if different from the page name. Setting this automatically sets {{para|download}}, and allows the template to automatically load data from the appropriate <code>extension.json</code> file.</td> | |||
<tr> | |||
<td>{{visible anchor|readme}}</td><td>external link to the readme file, e.g. https://phabricator.wikimedia.org/r/browse/mediawiki/extensions/Flow;master;README</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|changelog}}</td><td>external link to the changelog file, e.g. [[Extension:LDAP Authentication/Changelog]]</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|parameters}}</td><td>available parameters for LocalSettings.php</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|tags}}</td><td>any tags your extension uses (e.g. <tag1>, <tag2>).</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|rights}}</td><td>[[Special:MyLanguage/Manual:User rights|rights]] added by the extension. '''Not to be confused with the license!''' Rights are such as ''{{ll|Extension:MakeBot|makebot}}'' or ''{{ll|Extension:Desysop|desysop}}'', not such as GFDL or LGPL or GPL - those are licenses!</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|namespace}}</td><td>[[Special:MyLanguage/Manual:Namespace|namespace]] in which this extension is used</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|help}}</td><td>Link to user-help for the extension. If not provided, will look for <code>Help:Extension:''ExtensionName''</code>. If provided, full wikitext link should be given (because you may want to link to e.g. an external page).</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|example}}</td><td>example, website or screenshot of working extension</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|compatibility}}</td><td>Additional compatibility information, for instance compatibility charts. It's encouraged to add any client-side compatibility information here too, especially when diverging from [[Special:MyLanguage/Compatibility#Browsers|expectations of full support for a browser]].</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|translate}}</td> | |||
<td> | |||
Optional parameter to link the exact page where ([[Special:MyLanguage/Help:Extension:Translate/Glossary|message group id]] with which) the extension will be translatable on [[translatewiki.net]] if enabled. If the default link is incorrect, manually set it to: | |||
* ext-LOWERCASE(NOSPACES(Label as defined in {{git file|project=translatewiki|branch=HEAD|file=groups/MediaWiki/ExtensionsAgg.yaml|text=config}})), aka | |||
* the parameter you get in the URL after | |||
** typing the name of the extension in the search/filter box at [[translatewiki:Special:Translate]] or | |||
** searching for its name in [https://translatewiki.net/w/i.php?title=Special%3ALanguageStats&x=D languagestats] after clicking "expand all". | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|bugzilla}}</td><td>Bugzilla MediaWiki extension component name</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|phabricator}}</td><td>Phabricator project name</td> | |||
</tr> | |||
<tr> | |||
<td>{{visible anchor|CheckUsageNameOverride}}</td><td>override the page name used for the check usage link. | |||
</tr> | |||
</table> | |||
{{anchor|Control parameters}} | |||
== Control parameters == | |||
<table class="wikitable"> | |||
<caption>'''Control parameters'''</caption> | |||
<tr> | |||
<th>Parameter</th> | |||
<th>Description</th> | |||
</tr> | |||
<tr> | |||
<td>'''templatemode'''</td> | |||
<td> | |||
'''Controls auto-categorization of host page.''' | |||
Normally left blank. Alternate values are: | |||
* ''nocats'' - suppresses categorization and the 'check usage' link. Use this value if you are adding this template to [[Special:MyLanguage/Help:Subpage|subpages]] of an extension or to how-to documentation of extensions. For example, the usage image above sets <code>templatemode=nocats</code> because this isn't an actual extension page and we don't want to add this page to any categories on account of it. | |||
* ''nousage'' - suppresses the 'check usage' link. Link is also suppressed if the page is a subpage; it is not in the Extension: namespace; or if suppressed by 'templatemode=nocats' | |||
If this is left blank, this template will add the host page to [[:Category:All extensions{{#translation:}}]] and to one or more additional categories, depending on the values assigned to the [[#Content parameters|Content parameters]].</td> | |||
</tr> | |||
</table> | |||
== Using the infobox == | |||
=== Existing extension pages === | |||
If you want to add the infobox to an existing page, copy and paste the code at the [[#CutAndPaste|top of this page]]. | |||
{{anchor|Create a new extension page|Create a new extension article}} | |||
=== Create a new extension page === | |||
If you want to create a new extension page, enter the name below and click the button. | |||
A new page will be created with the infobox template already in place. | |||
{{Extension/CreateExtensionInputBox}} | |||
== Enhancing this template == | |||
If you would like to improve on this template, thanks! | |||
This is a complicated template so here is some help along the way: | |||
=== The Create extension button === | |||
To improve the create extension button behavior: | |||
* '''{{ll|Template:Extension/Sample}}:''' The boilerplate extension that is preloaded into newly-created pages. | |||
* '''{{ll|Template:Extension/CreateExtensionInputBox}}:''' An input box that can be inserted wherever you want users to easily create extensions. For documentation on the {{tag|inputbox|open}} tag, please see {{ll|Extension:InputBox|Extension:InputBox}}. | |||
=== Infobox parameters === | |||
In general: | |||
* To make this template easy to use, each label in the infobox is linked to documentation on the template parameter(s) it displays. If you add a parameter, please be sure to also add it to the [[Special:MyLanguage/Template:Extension#Content parameters|content parameter documentation]] and link its label to that documentation. | |||
To change/correct/add to the implementation type parameters: | |||
* Check the [[Template_talk:Extension|talk page]] - there have been some extensive discussions about this field. | |||
* The valid types and what they link to are defined at [[Module:Extension]] | |||
To change the behavior of the hook parameters: | |||
* '''[[Template:Extension/HookInUse]]:''' Adds links and categories for a hook in use. Multiple hooks in use are implemented by calling this template with [[Template:Foreach]]. | |||
* '''[[Template:Extension/HookInUseNoCats]]:''' Used instead of [[Template:Extension/HookInUse]] when this template is used in <code>templatemode=nocats</code>. Templates used with [[Template:Foreach]] can only take one parameter so we need to wrap the call to [[Template:Extension/HookInUse]] with another template that sets the mode. | |||
== Test case == | |||
See if the following pages are still ok, after edited this template. | |||
* [[Extension:Description2]] | |||
* [[Template:Extension]] | |||
{{Extension/doc}} | |||
}} | |||
Maintenance: | |||
[[Special:WhatLinksHere/Template:Extension/vulnerabilities|vulnerabilities]], | |||
[[Special:WhatLinksHere/Template:Extension/archived|archived]] | |||
</noinclude> | </noinclude> |
Latest revision as of 03:33, 15 October 2021
<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