<translate> [[<tvar|1>Special:MyLanguage/Phabricator</>|Issue tracker]]:</translate> [[phab:tag/{{{phabricator}}}/|#{{{phabricator}}}]]

Difference between revisions of "Template:Extension/en"

From WPRDC Wiki
Jump to navigation Jump to search
>FuzzyBot
(Updating to match new version of source page)
>FuzzyBot
(Updating to match new version of source page)
 
(73 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<languages/>
<languages/>
</noinclude><includeonly>{{#switch:
</noinclude><!--
--><templatestyles src="Template:Infobox/styles.css" /><!--
--><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|}}}}}}}} }}
{{#if: {{{phabricator|{{{bugzilla|}}}}}} | {{Ptag|{{{phabricator|MediaWiki-extensions-{{{bugzilla|}}}}}}}} }}
<templatestyles src="Extension/styles.css" />
<table class="infobox infobox-{{dir|{{pagelang}}}} ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} }}
<table class="tpl-infobox ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} }}
|unmaintained|unstable|experimental|beta|stable={{lc: {{{status}}} }}
|unmaintained|archive|milestone|unstable|experimental|beta|stable|magic={{lc: {{{status}}} }}
|#default=unknown
|#default=unknown
}}">
}}">
<caption>'''{{ll|Manual:Extensions|MediaWiki extensions manual}}'''</caption>
<caption>'''{{ll|Manual:Extensions|2=MediaWiki extensions manual}}'''</caption>
<tr class="tpl-infobox-header ext-infobox-header">
<tr class="infobox-header ext-infobox-header">
<th colspan="2" style="padding-top: 0.5em;">[[File:{{#ifeq: {{lc: {{{status|}}} }} |unstable|OOjs_UI_icon_alert-invert.svg|<!--else-->OOjs UI icon advanced.svg}}|link=Special:MyLanguage/Template:Extension#Content|{{dir|{{pagelang}}|right|left}}|40px]] <span style="font-size: 130%; line-height: 100%;">{{{name|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}</span><br />
<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
  |archive=archive
  |milestone=milestone
   |unstable=unstable
   |unstable=unstable
   |experimental=experimental
   |experimental=experimental
   |beta=beta
   |beta=beta
   |stable=stable
   |stable=stable
  |magic=magic
   |#default=unknown
   |#default=unknown
}}<!-- Category logic -->{{#if:{{{license|}}}|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#invoke:Extension|getLicenseCategory|{{{license}}}}}}}}}<!--
}}<!--
-->{{#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
|unmaintained = Not LTS ready
|archive = archive extensions
|milestone = milestone extensions
|#default = extensions with invalid status
|#default = extensions with invalid status
}}{{#translation:}}]]}}</th>
}}{{#translation:}}]]}}</th>
Line 41: Line 42:
{{#if:{{{type|}}}{{{type1|}}}|
{{#if:{{{type|}}}{{{type1|}}}|
<tr>
<tr>
<td>{{ll|Template:Extension#type|'''Implementation'''}}</td>
<td style="min-width:7em">'''{{ll|Template:Extension#type|2=Implementation}}'''</td>
<td>{{#invoke:Extension|getTypes
<td>{{#invoke:Extension|getTypes
  |ajax            = [[w:AJAX|Ajax]]
  |ajax            = [[w:AJAX|Ajax]]
  |api            = {{ll|API:Action API|API}}
  |api            = {{ll|API:Action API|2=API}}
  |beta feature    = {{ll|Beta Features|Beta Feature}}
  |beta feature    = {{ll|Beta Features|2=Beta Feature}}
  |contenthandler  = {{ll|Manual:ContentHandler|nsp=0}}
  |contenthandler  = {{ll|Manual:ContentHandler|ContentHandler}}
  |database        = {{ll|Manual:Database layout|Database}}
  |database        = {{ll|Manual:Database layout|2=Database}}
  |data extraction = Data extraction
  |data extraction = Data extraction
  |example        = Example
  |example        = Example
  |extended syntax = {{ll|Manual:Extending wiki markup|Extended syntax}}
  |extended syntax = {{ll|Manual:Extending wiki markup|2=Extended syntax}}
  |filerepo        = File repository
  |filerepo        = File repository
  |hook            = {{ll|Manual:Hooks|Hook}}
  |hook            = {{ll|Manual:Hooks|2=Hook}}
  |interface      = User interface
  |interface      = User interface
  |link            = {{ll|Manual:Extending wiki markup|Link markup}}
  |link            = {{ll|Manual:Extending wiki markup|2=Link markup}}
  |media          = Media
  |media          = Media
  |mywiki          = {{ll|Manual:Personalization|MyWiki}}
  |mywiki          = {{ll|Manual:Personalization|2=MyWiki}}
  |notify          = Notify
  |notify          = Notify
  |page action    = {{ll|Manual:Parameters to index.php#Actions|Page action}}
  |page action    = {{ll|Manual:Parameters to index.php#Actions|2=Page action}}
  |parser          = {{ll|Manual:Extending wiki markup|Parser extension}}
  |parser          = {{ll|Manual:Extending wiki markup|2=Parser extension}}
  |parser function = {{ll|Manual:Parser functions|Parser function}}
  |parser function = {{ll|Manual:Parser functions|2=Parser function}}
  |php            = PHP
  |php            = PHP
  |search          = Search
  |search          = Search
  |skin            = {{ll|Manual:Skins|Skin}}
  |skin            = {{ll|Manual:Skins|2=Skin}}
  |special page    = {{ll|Manual:Special pages|Special page}}
  |special page    = {{ll|Manual:Special pages|2=Special page}}
  |locale          = {{ll|Manual:Localization|Locale}}
  |locale          = {{ll|Manual:Localization|2=Locale}}
  |tag            = {{ll|Manual:Tag extensions|Tag}}
  |tag            = {{ll|Manual:Tag extensions|2=Tag}}
  |user access    = {{ll|Manual:Security|User access}}
  |user access    = {{ll|Manual:Security|2=User access}}
  |user identity  = {{ll|Manual:Security|User identity}}
  |user identity  = {{ll|Manual:Security|2=User identity}}
  |user rights    = {{ll|Manual:Security|User rights}}
  |user rights    = {{ll|Manual:Security|2=User rights}}
  |user activity  = {{ll|Manual:Security|User activity}}
  |user activity  = {{ll|Manual:Security|2=User activity}}
  |variable        = {{ll|Manual:Variables|Variable}}
  |variable        = {{ll|Manual:Variables|2=Variable}}
}}<!--
}}<!--
-->|<!--else--><!--
-->|<!--else--><!--
Line 84: Line 85:
{{#if:{{{description|}}}|
{{#if:{{{description|}}}|
<tr>
<tr>
<td>{{ll|Template:Extension#description|'''Description'''}}</td>
<td>'''{{ll|Template:Extension#description|2=Description}}'''</td>
<td>{{{description}}}</td>
<td>{{{description}}}</td>
</tr>
</tr>
Line 90: Line 91:
{{#if:{{{author|}}}{{{username|}}} |
{{#if:{{{author|}}}{{{username|}}} |
<tr>
<tr>
<td>{{ll|Template:Extension#username|'''Author(s)'''}}</td>
<td>'''{{ll|Template:Extension#username|2=Author(s)}}'''</td>
<td>{{#if: {{{username|}}} |<!--
<td>{{#if: {{{username|}}} |<!--
       -->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!--
       -->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!--
Line 98: Line 99:
       -->}}<!--
       -->}}<!--
       -->[[User:{{{username}}}|{{{username}}}]]<!--
       -->[[User:{{{username}}}|{{{username}}}]]<!--
       --><sup>[[User talk:{{{username}}}|{{int:talkpagelinktext}}]]</sup><!--
       --><sup>[[User talk:{{{username}}}|{{int|talkpagelinktext}}]]</sup><!--
       -->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!--
       -->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!--
         nothing
         nothing
Line 111: Line 112:
{{#if:{{{maintainer|}}} |
{{#if:{{{maintainer|}}} |
<tr>
<tr>
<td>{{ll|Template:Extension#maintainer|'''Maintainer(s)'''}}</td>
<td>'''{{ll|Template:Extension#maintainer|2=Maintainer(s)}}'''</td>
<td>{{#ifexist:User:{{{maintainer}}}|[[User:{{{maintainer}}}]]<sup>[[User talk:{{{maintainer}}}|{{int:talkpagelinktext}}]]</sup>|{{{maintainer}}}}}</td>
<td>{{#ifexist:User:{{{maintainer}}}|[[User:{{{maintainer}}}]]<sup>[[User talk:{{{maintainer}}}|{{int|talkpagelinktext}}]]</sup>|{{{maintainer}}}}}</td>
</tr>
</tr>
}}
}}
{{#if:{{#invoke:extension|getVersion|{{{latest release version|{{{latest_release_version|{{{version|}}}}}}}}}}}|
{{#if:{{#invoke:extension|getVersion|{{{latest release version|{{{latest_release_version|{{{version|}}}}}}}}}}}|
<tr>
<tr>
<td>{{ll|Template:Extension#version|'''Latest version'''}}</td>
<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|}}}}}}}}}|&#160;({{{latest release date|{{{latest_release_date|{{{update}}})}}}}}}}}</td>
<td>{{#invoke:extension|getVersion|{{{latest release version|{{{latest_release_version|{{{version|}}}}}}}}}}}{{#if:{{{latest release date|{{{latest_release_date|{{{update|}}}}}}}}}|&#160;({{{latest release date|{{{latest_release_date|{{{update}}}}}}}}})}}</td>
</tr>
</tr>
}}
}}
{{#if:{{{latest preview version|{{{latest_preview_version|{{{version_preview|{{{version preview|}}}}}}}}}}}}|
{{#if:{{{latest preview version|{{{latest_preview_version|{{{version_preview|{{{version preview|}}}}}}}}}}}}|
<tr>
<tr>
<td>{{ll|Template:Extension#version|'''Latest preview version'''}}</td>
<td>'''{{ll|Template:Extension#version|2=Latest preview version}}'''</td>
<td>{{{latest preview version|{{{latest_preview_version|{{{version_preview|{{{version preview|}}}}}}}}}}}}{{#if:{{{latest preview version|{{{latest_preview_version|{{{update_preview|{{{update preview|}}}}}}}}}}}}|&#160;({{{latest preview version|{{{latest_preview_version|{{{update_preview|{{{update preview}}}}}}}}}}}})}}</td>
<td>{{{latest preview version|{{{latest_preview_version|{{{version_preview|{{{version preview|}}}}}}}}}}}}{{#if:{{{latest preview date|{{{latest_preview_date|{{{update_preview|{{{update preview|}}}}}}}}}}}}|&#160;({{{latest preview date|{{{latest_preview_date|{{{update_preview|{{{update preview}}}}}}}}}}}})}}</td>
</tr>
</tr>
}}
}}
{{#if:{{{compatibility policy|}}}|
{{#if:{{{compatibility policy|}}}|
<tr>
<tr>
<td>{{ll|Compatibility#mediawiki_extensions|'''Compatibility policy'''}}</td>
<td>'''{{ll|Compatibility#mediawiki_extensions|2=Compatibility policy}}'''</td>
<td>{{#switch:{{{compatibility policy}}}<!--
<td>{{#switch:{{{compatibility policy}}}<!--
       -->|master=master<!--
       -->|master=Master maintains backward compatibility.{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions with master compatibility policy]]}}}}<!--
       -->|rel=release branches<!--
       -->|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= LTS release branches<!--
       -->|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]]}}}}<!--
       -->|#default=<span class="error">invalid</span>{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions without a compatibility policy]]}}}}<!--
       -->}}</td>
       -->}}</td>
Line 139: Line 140:
|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions without a compatibility policy]]}}}}
|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{#translation:}}||[[Category:Extensions without a compatibility policy]]}}}}
}}
}}
{{#if:{{{mediawiki|}}}|
<tr>
<tr>
<td>{{ll|Template:Extension#mediawiki|'''MediaWiki'''}}</td>
<td>{{ll|Template:Extension#mediawiki|'''MediaWiki'''}}</td>
<td>{{{mediawiki}}}</td>
<td>{{#invoke:Extension |getMediaWikiRequirement |{{{mediawiki|}}} }}</td>
</tr>
</tr>
}}
{{#if:{{{php|}}}|
{{#if:{{{php|}}}|
<tr>
<tr>
Line 165: Line 164:
{{#if:{{{table1|}}}|
{{#if:{{{table1|}}}|
<tr>
<tr>
<td>{{ll|Template:Extension#table1|'''Tables'''}}</td>
<td>'''{{ll|Template:Extension#table1|2=Tables}}'''</td>
<td>{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table1}}} table|{{{table1}}}}}<!--
<td>{{ll|{{translatable}}/{{{table1}}} table|{{{table1}}}}}<!--
-->{{#if:{{{table2|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table2}}} table|{{{table2}}}}}<!-- -->}}<!--
-->{{#if:{{{table2|}}}|<br />{{ll|{{translatable}}/{{{table2}}} table|{{{table2}}}}}<!-- -->}}<!--
-->{{#if:{{{table3|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table3}}} table|{{{table3}}}}}<!-- -->}}<!--
-->{{#if:{{{table3|}}}|<br />{{ll|{{translatable}}/{{{table3}}} table|{{{table3}}}}}<!-- -->}}<!--
-->{{#if:{{{table4|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table4}}} table|{{{table4}}}}}<!-- -->}}<!--
-->{{#if:{{{table4|}}}|<br />{{ll|{{translatable}}/{{{table4}}} table|{{{table4}}}}}<!-- -->}}<!--
-->{{#if:{{{table5|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table5}}} table|{{{table5}}}}}<!-- -->}}<!--
-->{{#if:{{{table5|}}}|<br />{{ll|{{translatable}}/{{{table5}}} table|{{{table5}}}}}<!-- -->}}<!--
-->{{#if:{{{table6|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table6}}} table|{{{table6}}}}}<!-- -->}}<!--
-->{{#if:{{{table6|}}}|<br />{{ll|{{translatable}}/{{{table6}}} table|{{{table6}}}}}<!-- -->}}<!--
-->{{#if:{{{table7|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table7}}} table|{{{table7}}}}}<!-- -->}}<!--
-->{{#if:{{{table7|}}}|<br />{{ll|{{translatable}}/{{{table7}}} table|{{{table7}}}}}<!-- -->}}<!--
-->{{#if:{{{table8|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table8}}} table|{{{table8}}}}}<!-- -->}}<!--
-->{{#if:{{{table8|}}}|<br />{{ll|{{translatable}}/{{{table8}}} table|{{{table8}}}}}<!-- -->}}<!--
-->{{#if:{{{table9|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table9}}} table|{{{table9}}}}}<!-- -->}}<!--
-->{{#if:{{{table9|}}}|<br />{{ll|{{translatable}}/{{{table9}}} table|{{{table9}}}}}<!-- -->}}<!--
-->{{#if:{{{table10|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table10}}} table|{{{table10}}}}}<!-- -->}}<!--
-->{{#if:{{{table10|}}}|<br />{{ll|{{translatable}}/{{{table10}}} table|{{{table10}}}}}<!-- -->}}<!--
-->{{#if:{{{table11|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table11}}} table|{{{table11}}}}}<!-- -->}}<!--
-->{{#if:{{{table11|}}}|<br />{{ll|{{translatable}}/{{{table11}}} table|{{{table11}}}}}<!-- -->}}<!--
-->{{#if:{{{table12|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table12}}} table|{{{table12}}}}}<!-- -->}}<!--
-->{{#if:{{{table12|}}}|<br />{{ll|{{translatable}}/{{{table12}}} table|{{{table12}}}}}<!-- -->}}<!--
-->{{#if:{{{table13|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table13}}} table|{{{table13}}}}}<!-- -->}}<!--
-->{{#if:{{{table13|}}}|<br />{{ll|{{translatable}}/{{{table13}}} table|{{{table13}}}}}<!-- -->}}<!--
-->{{#if:{{{table14|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table14}}} table|{{{table14}}}}}<!-- -->}}<!--
-->{{#if:{{{table14|}}}|<br />{{ll|{{translatable}}/{{{table14}}} table|{{{table14}}}}}<!-- -->}}<!--
-->{{#if:{{{table15|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table15}}} table|{{{table15}}}}}<!-- -->}}<!--
-->{{#if:{{{table15|}}}|<br />{{ll|{{translatable}}/{{{table15}}} table|{{{table15}}}}}<!-- -->}}<!--
-->{{#if:{{{table16|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table16}}} table|{{{table16}}}}}<!-- -->}}<!--
-->{{#if:{{{table16|}}}|<br />{{ll|{{translatable}}/{{{table16}}} table|{{{table16}}}}}<!-- -->}}<!--
-->{{#if:{{{table17|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table17}}} table|{{{table17}}}}}<!-- -->}}<!--
-->{{#if:{{{table17|}}}|<br />{{ll|{{translatable}}/{{{table17}}} table|{{{table17}}}}}<!-- -->}}<!--
-->{{#if:{{{table18|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table18}}} table|{{{table18}}}}}<!-- -->}}<!--
-->{{#if:{{{table18|}}}|<br />{{ll|{{translatable}}/{{{table18}}} table|{{{table18}}}}}<!-- -->}}<!--
-->{{#if:{{{table19|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table19}}} table|{{{table19}}}}}<!-- -->}}<!--
-->{{#if:{{{table19|}}}|<br />{{ll|{{translatable}}/{{{table19}}} table|{{{table19}}}}}<!-- -->}}<!--
-->{{#if:{{{table20|}}}|<br />{{ll|{{NAMESPACE}}:{{BASEPAGENAME}}/{{{table20}}} table|{{{table20}}}}}<!-- -->}}</td>
-->{{#if:{{{table20|}}}|<br />{{ll|{{translatable}}/{{{table20}}} table|{{{table20}}}}}<!-- -->}}</td>
</tr>
</tr>
}}
}}
<tr>
<tr>
<td>{{ll|Template:Extension#license|'''License'''}}</td>
<td>'''{{ll|Template:Extension#license|2=License}}'''</td>
<td>{{#if:{{{license|}}}|{{#invoke:Extension|getFormattedLicense|{{{license}}}
<td>{{#invoke:Extension|getFormattedLicense|{{{license|}}}
  |GPL-2.0          = GNU General Public License 2.0
  |GPL-2.0          = GNU General Public License 2.0
  |GPL-2.0-only      = GNU General Public License 2.0 only
  |GPL-2.0-only      = GNU General Public License 2.0 only
Line 198: Line 197:
  |GPL-3.0-or-later  = GNU General Public License 3.0 or later
  |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          = 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          = GNU Lesser General Public License 2.1
  |LGPL-2.1-only    = GNU Lesser General Public License 2.1 only
  |LGPL-2.1-only    = GNU Lesser General Public License 2.1 only
Line 227: Line 227:
  |PD                = [[w:Public domain|Public domain]]
  |PD                = [[w:Public domain|Public domain]]
  |+                = &#32;or later
  |+                = &#32;or later
}}|No license specified {{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->[[Category:Extensions with no license specified{{#translation:}}]]}}}}</td>
|unspecified      = No license specified  
}}</td>
</tr><tr>
</tr><tr>
{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- no category -->|{{#invoke:Extension|getLicenseCategory|{{{license|}}}}}}}
<td>'''Download'''</td>
<td>'''Download'''</td>
<td><!--
<td><!--
-->{{#if:{{{download|}}}|{{{download}}}|''No link''}}<!--
-->{{#if:{{{download|}}}|{{{download}}}|{{#if:{{{repo|}}}|{{WikimediaDownload|{{{repo}}}}}|''No link''}}}}<!--
-->{{#if:{{{readme|}}}|<br />{{{readme}}}<!-- -->}}<!--
-->{{#if:{{{readme|}}}|<br />{{{readme}}}<!-- -->}}<!--
-->{{#if:{{{changelog|}}}|<br />{{{changelog}}}<!-- -->}}</td>
-->{{#if:{{{changelog|}}}|<br />{{{changelog}}}<!-- -->}}</td>
</tr>
</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>
<tr>
<td>{{ll|Template:Extension#example|'''Example'''}}</td>
<td>'''{{ll|Template:Extension#example|2=Example}}'''</td>
<td>{{{example}}}</td>
<td>{{{example}}}</td>
</tr>
</tr>
Line 244: Line 252:
<tr>
<tr>
<td class="mw-collapsible mw-collapsed" colspan="2">
<td class="mw-collapsible mw-collapsed" colspan="2">
<div class="mw-collapsible-header">{{ll|Template:Extension#namespace|'''Namespace'''}}</div>
<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 -->
<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>
{{{namespace|}}}</div></td>
</tr>
</tr>
}}
}}
{{#if:{{{parameters|}}}|
{{#if:{{#if:{{{parameters|}}}|y|{{#invoke:Extension|getParameters}}}}|
<tr>
<tr>
<td class="mw-collapsible mw-collapsed" colspan="2">
<td class="mw-collapsible mw-collapsed" colspan="2">
<div class="mw-collapsible-header">{{ll|Template:Extension#parameters|Parameters}}</div>
<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 -->
<div class="mw-collapsible-content"><!-- the parameter "parameters" should begin on its own line so that bullet lists are correctly recognised by MediaWiki -->
{{{parameters}}}</div></td>
{{#if:{{{parameters|}}}|{{{parameters}}}|{{#invoke:Extension|getParameters}}}}</div></td>
</tr>
</tr>
}}
}}
Line 260: Line 268:
<tr>
<tr>
<td class="mw-collapsible mw-collapsed" colspan="2">
<td class="mw-collapsible mw-collapsed" colspan="2">
<div class="mw-collapsible-header">{{ll|Template:Extension#tags|Tags}}</div>
<div class="mw-collapsible-header">{{ll|Template:Extension#tags|2=Tags}}</div>
<div class="mw-collapsible-content">{{{tags}}}</div></td>
<div class="mw-collapsible-content">{{{tags}}}</div></td>
</tr>
</tr>
}}
}}
{{#if:{{{rights|}}}|
{{#if:{{#if:{{{rights|}}}|y|{{#invoke:Extension|getRights}}}}|
<tr>
<tr>
<td class="mw-collapsible mw-collapsed" colspan="2">
<td class="mw-collapsible mw-collapsed" colspan="2">
<div class="mw-collapsible-header">{{ll|Template:Extension#rights|Added rights}}</div>
<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 -->
<div class="mw-collapsible-content"><!-- the parameter "rights" should begin on its own line so that bullet lists are correctly recognised by MediaWiki -->
{{{rights}}}
{{#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>
{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{{rights|}}}|[[Category:Extensions which add rights{{#translation:}}]]|}} }}</div></td>
</tr>
</tr>
Line 283: Line 291:
</tr>
</tr>
}}
}}
{{#if:{{{hook1|}}}|
{{#invoke:Extension|getHooks|header=
<tr>
<tr>
<td class="mw-collapsible mw-collapsed" colspan="2">
<td class="mw-collapsible mw-collapsed" colspan="2">
<div class="mw-collapsible-header">{{ll|Template:Extension#hook|Hooks used}}</div>
<div class="mw-collapsible-header">{{ll|Template:Extension#hook|2=Hooks used}}</div>
<div class="mw-collapsible-content plainlist"><ul><li><!--
{{plainlist|class=mw-collapsible-content}}<ul><li>|delim=</li><li>|footer=</li></ul>{{endplainlist}}
      -->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!--
        -->{{Foreach|Extension/HookInUseNoCats|delim=</li><li>|<!--
            -->{{{hook1}}}|{{{hook2|}}}|{{{hook3|}}}|{{{hook4|}}}|{{{hook5|}}}|{{{hook6|}}}|<!--
            -->{{{hook7|}}}|{{{hook8|}}}|{{{hook9|}}}|{{{hook10|}}}|{{{hook11|}}}|{{{hook12|}}}|<!--
            -->{{{hook13|}}}|{{{hook14|}}}|{{{hook15|}}}|{{{hook16|}}}|{{{hook17|}}}|{{{hook18|}}}|<!--
            -->{{{hook19|}}}|{{{hook20|}}}|{{{hook21|}}}|{{{hook22|}}}|{{{hook23|}}}|{{{hook24|}}}|<!--
            -->{{{hook25|}}}|{{{hook26|}}}|{{{hook27|}}}|{{{hook28|}}}|{{{hook29|}}}|{{{hook30|}}}|<!--
            -->{{{hook31|}}}|{{{hook32|}}}|{{{hook33|}}}|{{{hook34|}}}|{{{hook35|}}}|{{{hook36|}}}|<!--
            -->{{{hook37|}}}|{{{hook38|}}}|{{{hook39|}}}|{{{hook40|}}}|{{{hook41|}}}|{{{hook42|}}}|<!--
            -->{{{hook43|}}}|{{{hook44|}}}|{{{hook45|}}}|{{{hook46|}}}|{{{hook47|}}}|{{{hook48|}}}|<!--
            -->{{{hook49|}}}|{{{hook50|}}}|{{{hook51|}}}|{{{hook52|}}}|{{{hook53|}}}|{{{hook54|}}}|<!--
            -->{{{hook55|}}}|{{{hook56|}}}|{{{hook57|}}}|{{{hook58|}}}|{{{hook59|}}}|{{{hook60|}}}|<!--
            -->{{{hook61|}}}|{{{hook62|}}}|{{{hook63|}}}|{{{hook64|}}}|{{{hook65|}}}|{{{hook66|}}}|<!--
            -->{{{hook67|}}}|{{{hook68|}}}|{{{hook69|}}}|{{{hook70|}}}|{{{hook71|}}}|{{{hook72|}}}|<!--
            -->{{{hook73|}}}|{{{hook74|}}}|{{{hook75|}}}|{{{hook76|}}}|{{{hook77|}}}|{{{hook78|}}}|<!--
            -->{{{hook79|}}}|{{{hook80|}}}|{{{hook81|}}}|{{{hook82|}}}|{{{hook83|}}}|{{{hook84|}}}|<!--
            -->{{{hook85|}}}|{{{hook86|}}}|{{{hook87|}}}|{{{hook88|}}}|{{{hook89|}}}|{{{hook90|}}}<!--
        -->}}<!--
      -->|<!--else--><!--
        -->{{Foreach|Extension/HookInUse|delim=</li><li>|<!--
            -->{{{hook1}}}|{{{hook2|}}}|{{{hook3|}}}|{{{hook4|}}}|{{{hook5|}}}|{{{hook6|}}}|<!--
            -->{{{hook7|}}}|{{{hook8|}}}|{{{hook9|}}}|{{{hook10|}}}|{{{hook11|}}}|{{{hook12|}}}|<!--
            -->{{{hook13|}}}|{{{hook14|}}}|{{{hook15|}}}|{{{hook16|}}}|{{{hook17|}}}|{{{hook18|}}}|<!--
            -->{{{hook19|}}}|{{{hook20|}}}|{{{hook21|}}}|{{{hook22|}}}|{{{hook23|}}}|{{{hook24|}}}|<!--
            -->{{{hook25|}}}|{{{hook26|}}}|{{{hook27|}}}|{{{hook28|}}}|{{{hook29|}}}|{{{hook30|}}}|<!--
            -->{{{hook31|}}}|{{{hook32|}}}|{{{hook33|}}}|{{{hook34|}}}|{{{hook35|}}}|{{{hook36|}}}|<!--
            -->{{{hook37|}}}|{{{hook38|}}}|{{{hook39|}}}|{{{hook40|}}}|{{{hook41|}}}|{{{hook42|}}}|<!--
            -->{{{hook43|}}}|{{{hook44|}}}|{{{hook45|}}}|{{{hook46|}}}|{{{hook47|}}}|{{{hook48|}}}|<!--
            -->{{{hook49|}}}|{{{hook50|}}}|{{{hook51|}}}|{{{hook52|}}}|{{{hook53|}}}|{{{hook54|}}}|<!--
            -->{{{hook55|}}}|{{{hook56|}}}|{{{hook57|}}}|{{{hook58|}}}|{{{hook59|}}}|{{{hook60|}}}|<!--
            -->{{{hook61|}}}|{{{hook62|}}}|{{{hook63|}}}|{{{hook64|}}}|{{{hook65|}}}|{{{hook66|}}}|<!--
            -->{{{hook67|}}}|{{{hook68|}}}|{{{hook69|}}}|{{{hook70|}}}|{{{hook71|}}}|{{{hook72|}}}|<!--
            -->{{{hook73|}}}|{{{hook74|}}}|{{{hook75|}}}|{{{hook76|}}}|{{{hook77|}}}|{{{hook78|}}}|<!--
            -->{{{hook79|}}}|{{{hook80|}}}|{{{hook81|}}}|{{{hook82|}}}|{{{hook83|}}}|{{{hook84|}}}|<!--
            -->{{{hook85|}}}|{{{hook86|}}}|{{{hook87|}}}|{{{hook88|}}}|{{{hook89|}}}|{{{hook90|}}}<!--
        -->}}<!--
      -->}}<!--
  --></li></ul></div>
</td>
</td>
</tr>
</tr>
Line 332: Line 302:
<tr>
<tr>
<td class="mw-collapsible mw-collapsed" colspan="2">
<td class="mw-collapsible mw-collapsed" colspan="2">
<div class="mw-collapsible-header">{{ll|Template:Extension#newhook|Hooks provided}}</div>
<div class="mw-collapsible-header">{{ll|Template:Extension#newhook|2=Hooks provided}}</div>
<div class="mw-collapsible-content plainlist"><ul><li><!--
{{plainlist|class=mw-collapsible-content}}<ul><li><!--
       -->{{Foreach|Extension/HookProvided|delim=</li><li>|<!--
       -->{{Foreach|Extension/HookProvided|delim=</li><li>|<!--
         -->{{{newhook1}}}|{{{newhook2|}}}|{{{newhook3|}}}|{{{newhook4|}}}|{{{newhook5|}}}|{{{newhook6|}}}|<!--
         -->{{{newhook1}}}|{{{newhook2|}}}|{{{newhook3|}}}|{{{newhook4|}}}|{{{newhook5|}}}|{{{newhook6|}}}|<!--
Line 351: Line 321:
         -->{{{newhook85|}}}|{{{newhook86|}}}|{{{newhook87|}}}|{{{newhook88|}}}|{{{newhook89|}}}|{{{newhook90|}}}<!--
         -->{{{newhook85|}}}|{{{newhook86|}}}|{{{newhook87|}}}|{{{newhook88|}}}|{{{newhook89|}}}|{{{newhook90|}}}<!--
       -->}}<!--
       -->}}<!--
   --></li></ul></div>
   --></li></ul>{{endplainlist}}
</td>
</td>
</tr>
</tr>
Line 361: Line 331:
</tr>
</tr>
}}
}}
{{#if:{{{notranslate|{{#if:{{#invoke:Extension|isOnGerrit}}{{{translate|}}}||n}}}}}||
<tr>
<tr>
<td colspan="2" style="text-align:center;">
<td colspan="2" style="text-align:center;">
[[translatewiki:Special:Translate/{{{translate|ext-{{lc:{{#invoke:String/enwiki|replace|{{BASEPAGENAME}}| |}}}}}}}|Translate the {{BASEPAGENAME}} extension]] {{#if:{{{translate|}}}||if it is available at translatewiki.net}}</td>
{{#if:{{{translate|}}}
</tr><tr>
  |[[translatewiki:Special:Translate/{{{translate}}}|Translate the {{PAGENAME:{{translatable}}}} extension]]
<td colspan="2" style="text-align:center;"><!--
  |[[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 378: 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>
-->}}</td>
</tr>
</tr>
{{#if:{{{vagrant-role|}}} |
}}
{{#if:{{{vagrant-role|}}}|
<tr>
<tr>
<td>{{ll|MediaWiki-Vagrant#Using roles|'''Vagrant role'''}}</td>
<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>
<td>[https://doc.wikimedia.org/mediawiki-vagrant/puppet_classes/role_3A_3A{{{vagrant-role}}}.html {{{vagrant-role}}}]</td>
</tr>
</tr>
Line 391: Line 366:
<tr>
<tr>
<td>
<td>
'''{{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>
<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>
</tr>
}}
}}
{{#if: {{{github|}}} |
{{#if: {{{github|}}} |
<tr>
<tr>
<td>
<td>
'''{{ll|Gerrit/GitHub|Issues}}'''</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>
<td>[https://www.github.com/{{{github}}}/issues Open issues] · [https://www.github.com/{{{github}}}/issues/new Report a bug]</td>
</tr>
</tr>
}}
}}
</table><!--
</table><!--
-->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!--
-->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!--
Line 414: Line 387:
   -->}}<!-- -->}}<!--
   -->}}<!-- -->}}<!--
   -->[[Category:All extensions{{#translation:}}]]<!--
   -->[[Category:All extensions{{#translation:}}]]<!--
  -->{{#invoke:Extension|getExtensionJsonCategory}}<!--
-->}}<!--
-->}}<!--
--><!--Check if the source page was deleted or not-->{{IfTranslation
--><!--Check if the source page was deleted/archived--> {{#invoke:Extension|maintenanceLinks}}
|{{#if:{{#invoke:String|match|pattern=Category:Deleted extensions with security vulnerabilities|s=<span style="display:none">{{ {{translatable}} }}</span>|nomatch=}}
  |<span style="display:none">[[Template:Extension/vulnerabilities]]</span>
  }}
}}<!--Check if the source page was archived or not-->{{IfTranslation
|{{#if:{{#invoke:String|match|pattern=Category:Archived extensions|s=<span style="display:none">{{ {{translatable}} }}</span>|nomatch=}}
  |<span style="display:none">[[Template:Extension/archived]]</span>
  }}
}}
| #default=
| #default=
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Extension|noshift=1}}
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Extension|noshift=1}}
}}</includeonly><noinclude>{{Documentation|content=
}}</includeonly><noinclude>{{Documentation|content=
{{intricate template}}
{{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).
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.
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.
Line 469: Line 437:
|readme              =  
|readme              =  
|changelog            =  
|changelog            =  
|help                =
|example              =  
|example              =  
|namespace            =  
|namespace            =  
Line 492: Line 461:
|username        = SomeUser
|username        = SomeUser
|author          = SomeAuthor
|author          = SomeAuthor
|image          = Placeholder.png
|image          = Placeholder.svg
|version        = {{{version}}}
|version        = {{{version}}}
|update          = {{{update}}}
|update          = {{{update}}}
Line 508: Line 477:
|readme          = {{{readme}}}
|readme          = {{{readme}}}
|changelog      = {{{changelog}}}
|changelog      = {{{changelog}}}
|help            = {{{help}}}
|example        = {{{example}}}
|example        = {{{example}}}
|namespace      = {{{namespace}}}
|namespace      = {{{namespace}}}
Line 524: Line 494:
{{anchor|Content parameters}}
{{anchor|Content parameters}}
== Content parameters ==
== Content parameters ==
This section describes parameters that govern infobox content.
This section describes parameters that govern infobox content.
For help with '''templatemode''' and other control parameters, please see ''[[#Control parameters|Control parameters]]''.
For help with '''templatemode''' and other control parameters, please see ''[[#Control parameters|Control parameters]]''.
Line 542: Line 511:
</tr>
</tr>
<tr>
<tr>
<td><span id="status">'''status'''</span></td><td>'''current release status'''
<td><span id="status">'''status'''</span></td><td>
One of:  
'''current release status'''
One of:


* ''{{ll|Category:Unstable extensions|unstable}}'' - broken - do not use this extension
* ''{{ll|Category:Unstable extensions|unstable}}'' - broken - do not use this extension
Line 549: Line 519:
* ''{{ll|Category:Beta status extensions|beta}}'' - stable but not fully tested
* ''{{ll|Category:Beta status extensions|beta}}'' - stable but not fully tested
* ''{{ll|Category:Stable extensions|stable}}'' - stable version
* ''{{ll|Category:Stable extensions|stable}}'' - stable version
* ''{{ll|Category:Not LTS ready|unmaintained}}'' - unmaintained - previously claimed to be stable, now unmaintained
* ''{{ll|Category:Unmaintained extensions|unmaintained}}'' - unmaintained - previously claimed to be stable, now unmaintained
* ''{{ll|Category:Archived extensions|archive}}'' - archived - deprecated or merged with another extension
* ''{{ll|Category:Extensions with unknown status|unknown}}'' - default
* ''{{ll|Category:Extensions with unknown status|unknown}}'' - default


Line 572: Line 541:
** ''{{ll|Category:Link markup extensions|link}}'' - customized [[Special:MyLanguage/Manual:Extending wiki markup|link markup]], e.g. <code><nowiki>[[</nowiki>...]]</code>
** ''{{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: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. <code><nowiki><</nowiki>''tagname''>...<nowiki></</nowiki>''tagname''></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: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: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]]).
Line 585: Line 554:
** {{ll|Category:Notification extensions|''notify''}} - extensions that email users, broadcast messages and provide other forms of community notification
** {{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: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 articles for users.
** {{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: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:Ajax extensions|''ajax''}} - extensions that use [[w:AJAX|Ajax]] programming techniques.
Line 596: Line 565:
** {{ll|Category:File repository extensions|''filerepo''}} - extension that adds new file repository types as file backend
** {{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: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:}}]].
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><nowiki>|type=</nowiki></code> with <code><nowiki>|type1=|type2=|type3=...</nowiki></code>. You may define up to six types for an extension.</td>
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>
<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/>...</td>
<td valign="top">'''name of each hook used by the extension'''
<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 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 page so that programmers can easily find examples of extensions that use a particular hook.


For built-in hooks:
For built-in hooks:
Line 616: Line 589:
<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">
'''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 [[Extension hook registry]].
</td>
</tr>
</tr>
<tr>
<tr>
Line 624: Line 599:
</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>{{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>
<tr>
<tr>
Line 630: Line 605:
</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>{{visible anchor|image}}</td><td>screenshot or logo of extension. It should be provided without namespace and without <nowiki>[[]]</nowiki>s.</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="imagesize">imagesize</span></td><td>''facultative'', size of the image (default size is 220px)</td>
<td>{{visible anchor|imagesize}}</td><td>''facultative'', size of the image (default size is 220px)</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="version">version</span></td><td>last version</td>
<td>{{visible anchor|version}}</td><td>last version</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="update">update</span></td><td>date of the last update</td>
<td>{{visible anchor|update}}</td><td>date of the last update</td>
</tr>
</tr>
<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|backlog}})</td>
<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>
<tr>
<tr>
<td><span id="mediawiki">mediawiki</span></td><td>required version of MediaWiki</td>
<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>
<tr>
<tr>
<td><span id="php">php</span></td><td>required version of PHP</td>
<td>{{visible anchor|php}}</td><td>required version of PHP</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="needs-updatephp">needs-updatephp</span></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
<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 <code>$IP/extensions/ExtensionName</code> and inserted <code>wfLoadExtension( "ExtensionName");</code> into "LocalSettings.php", run from the command line:
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:


cd path/to/wiki_install_directory
<code class="mw-code mw-highlight" style="display:block"><!--
cd maintenance
-->{{#tag:span|cd|class=nb}} ''path/to/wiki_install_directory''
php update.php
{{#tag:span|cd|class=nb}} maintenance
php update.php
</code>


{{$IP}}</td>
{{$IP}}</td>
Line 670: Line 649:
</tr>
</tr>
<tr>
<tr>
<td><span id="license">license</span></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>
<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>
</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>
<tr>
<td><span id="download">'''download'''</span></td><td>'''link to the download''' : [https://phabricator.wikimedia.org/r/project/mediawiki/core Git], {{tl|WikimediaDownload{{#translation:}}}} with server=svn in case it was not migrated from {{ll|Subversion|Subversion}}. If you put the code into page in the MediaWiki wiki, link to it using a full page name and section name, e.g. <code> <nowiki>[[Extension:Example/version_1.22a#Code]]</nowiki> </code> (it must remain valid when bot-copied elsewhere)</td>
<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>
<tr>
<tr>
<td><span id="readme">readme</span></td><td>external link to the readme file, e.g. https://phabricator.wikimedia.org/r/browse/mediawiki/extensions/Flow;master;README</td>
<td>{{visible anchor|changelog}}</td><td>external link to the changelog file, e.g. [[Extension:LDAP Authentication/Changelog]]</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="changelog">changelog</span></td><td>external link to the changelog file, e.g. [[Extension:LDAP Authentication/Changelog]]</td>
<td>{{visible anchor|parameters}}</td><td>available parameters for LocalSettings.php</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="parameters">parameters</span></td><td>available parameters for LocalSettings.php</td>
<td>{{visible anchor|tags}}</td><td>any tags your extension uses (e.g. &lt;tag1&gt;, &lt;tag2&gt;).</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="tags">tags</span></td><td>any tags your extension uses (e.g. &lt;tag1&gt;, &lt;tag2&gt;).</td>
<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>
<tr>
<tr>
<td>rights</td><td><span id="rights"></span> 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>
<td>{{visible anchor|namespace}}</td><td>[[Special:MyLanguage/Manual:Namespace|namespace]] in which this extension is used</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="namespace">namespace</span></td><td>namespace in which this extension is used</td>
<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>
<tr>
<tr>
<td><span id="example">example</span></td><td>example, website or screenshot of working extension</td>
<td>{{visible anchor|example}}</td><td>example, website or screenshot of working extension</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="compatibility">compatibility</span></td><td>Additional compatibility information, for instance compatibility charts (formerly using [[Template:Extension Testing]]). 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>
<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>
<tr>
<tr>
<td><span id="translate">translate</span></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:
<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
* 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
* the parameter you get in the URL after
** typing the name of the extension in the search/filter box at [[translatewiki:Special:Translate]] or  
** 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>
** searching for its name in [https://translatewiki.net/w/i.php?title=Special%3ALanguageStats&x=D languagestats] after clicking "expand all".
</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="bugzilla">bugzilla</span></td><td>Bugzilla MediaWiki extension component name</td>
<td>{{visible anchor|bugzilla}}</td><td>Bugzilla MediaWiki extension component name</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="phabricator">phabricator</span></td><td>Phabricator project name</td>
<td>{{visible anchor|phabricator}}</td><td>Phabricator project name</td>
</tr>
</tr>
<tr>
<tr>
<td><span id="CheckUsageNameOverride">CheckUsageNameOverride</span></td><td>override the page name used for the check usage link.
<td>{{visible anchor|CheckUsageNameOverride}}</td><td>override the page name used for the check usage link.
</tr>
</tr>
</table>
</table>
Line 726: Line 712:
</tr>
</tr>
<tr>
<tr>
<td>'''templatemode'''</td><td>'''Controls auto-categorization of host page.'''
<td>'''templatemode'''</td>
<td>
'''Controls auto-categorization of host page.'''


Normally left blank. Alternate values are:
Normally left blank. Alternate values are:
Line 742: Line 730:
If you want to add the infobox to an existing page, copy and paste the code at the [[#CutAndPaste|top of this page]].
If you want to add the infobox to an existing page, copy and paste the code at the [[#CutAndPaste|top of this page]].


=== Create a new extension article ===
{{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.
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.
A new page will be created with the infobox template already in place.
Line 750: Line 738:


== Enhancing this template ==
== Enhancing this template ==
If you would like to improve on this template, thanks!
If you would like to improve on this template, thanks!
This is a complicated template so here is some help along the way:
This is a complicated template so here is some help along the way:
Line 759: Line 746:


* '''{{ll|Template:Extension/Sample}}:''' The boilerplate extension that is preloaded into newly-created pages.
* '''{{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 <code><nowiki><inputbox></nowiki></code> tag, please see {{ll|Extension:InputBox|Extension:InputBox}}.
* '''{{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 ===
=== Infobox parameters ===
Line 769: Line 756:
To change/correct/add to the implementation type parameters:
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.
* Check the [[Template_talk:Extension|talk page]] - there have been some extensive discussions about this field.
* '''{{ll|Template:Extension/TypeSwitch|Template:Extension/TypeSwitch}}:''' Stores the possible values for the type field. Multiple values are implemented by calling this template with [[Template:Foreach]].
* The valid types and what they link to are defined at [[Module:Extension]]
* '''{{ll|Template:Extension/TypeSwitchNoCats|Template:Extension/TypeSwitchNoCats}}:''' Does not need to be modified when adding a new type. Used instead of {{ll|Template:Extension/TypeSwitch|Template:Extension/TypeSwitch}} 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 {{ll|Template:Extension/TypeSwitch|Template:Extension/TypeSwitch}} with another template that sets the mode.


To change the behavior of the hook parameters:
To change the behavior of the hook parameters:
Line 789: Line 775:
[[Special:WhatLinksHere/Template:Extension/vulnerabilities|vulnerabilities]],
[[Special:WhatLinksHere/Template:Extension/vulnerabilities|vulnerabilities]],
[[Special:WhatLinksHere/Template:Extension/archived|archived]]
[[Special:WhatLinksHere/Template:Extension/archived|archived]]
[[Category:Info templates{{#translation:}}|{{PAGENAME}}]]
[[Category:Extension creation{{#translation:}}]]
[[Category:Categorizing templates{{#translation:}}|{{PAGENAME}}]]
[[Category:Extension templates{{#translation:}}]]
</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