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

Difference between revisions of "Template:Extension"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<tvar|2>" to "")
m (Text replacement - "<tvar|1>" to "")
 
Line 362: Line 362:
 
<tr>
 
<tr>
 
<td colspan="2" style="text-align:center;">
 
<td colspan="2" style="text-align:center;">
  [[<tvar|1>translatewiki:Special:Translate/{{{translate|ext-{{lc:{{#invoke:String/enwiki|replace|{{BASEPAGENAME}}| |}}}}}}}|Translate the {{BASEPAGENAME}} extension]] {{<tvar|3>#if:{{{translate|}}}||if it is available at translatewiki.net}}</td>
+
  [[translatewiki:Special:Translate/{{{translate|ext-{{lc:{{#invoke:String/enwiki|replace|{{BASEPAGENAME}}| |}}}}}}}|Translate the {{BASEPAGENAME}} extension]] {{<tvar|3>#if:{{{translate|}}}||if it is available at translatewiki.net}}</td>
 
</tr><tr>
 
</tr><tr>
 
<td colspan="2" style="text-align:center;"><!--
 
<td colspan="2" style="text-align:center;"><!--
Line 378: Line 378:
 
     |<!-- no usage -->|
 
     |<!-- no usage -->|
 
<span style="white-space:nowrap">
 
<span style="white-space:nowrap">
[[<tvar|1>wikiapiary:Extension:{{{CheckUsageNameOverride|{{BASEPAGENAMEE}}}}}|Check usage and version matrix.]]
+
[[wikiapiary:Extension:{{{CheckUsageNameOverride|{{BASEPAGENAMEE}}}}}|Check usage and version matrix.]]
 
</span>
 
</span>
 
<!--
 
<!--
Line 434: Line 434:
  
  
It will add a useful infobox (see below) and will automatically add the extension to <tvar|1>{{ll|Category:All extensions}}, along with the appropriate {{ll|Category:Extensions by status|status}} and {{<tvar|3>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 {{<tvar|3>ll|Category:Extensions by implementation type|implementation type}} categories.
  
 
== Usage ==  
 
== Usage ==  
Line 486: Line 486:
 
}}</pre>
 
}}</pre>
  
  For help with parameter values, see [[<tvar|1>#Content parameters|below]].</td>
+
  For help with parameter values, see [[#Content parameters|below]].</td>
 
<td align="right">{{Extension |templatemode=nocats
 
<td align="right">{{Extension |templatemode=nocats
 
|name            = {{{name}}}
 
|name            = {{{name}}}
Line 536: Line 536:
  
  
For help with <tvar|1>'''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]]''.
  
 
<!-- BEFORE YOU EDIT THIS:
 
<!-- BEFORE YOU EDIT THIS:
Line 652: Line 652:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td><span id="username">'''username'''</span></td><td> The author's username on MediaWiki.org (if they have one).  May be omitted, but if present it will be used to link to the author's user & user_talk page.  It should be provided without namespace and without <tvar|1><nowiki>[[]]</nowiki>s.</td>
+
<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>
 
<tr>
 
<tr>
Line 661: Line 661:
 
</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 <tvar|1><nowiki>[[]]</nowiki>s.</td>
+
<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>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
Line 673: Line 673:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td><span id="compatibility_policy">compatibility policy</span></td><td> {{<tvar|1>ll|Compatibility#mediawiki_extensions|compatibility policy}} (accepted values are '''master''' and <tvar|3>'''rel'''). ({{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''' and <tvar|3>'''rel'''). ({{ll|Category:Extensions without a compatibility policy| backlog}})</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
Line 783: Line 783:
  
  
If you want to add the infobox to an existing page, copy and paste the code at the [[<tvar|1>#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 ===  
 
=== Create a new extension article ===  

Latest revision as of 18:13, 21 December 2019


Template documentation


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 Category:All extensions , along with the appropriate status and {{<tvar|3>ll|Category:Extensions by implementation type|implementation type}} categories.

Usage

Copy and paste:

{{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            = 
|example              = 
|namespace            = 
|parameters           = 
|tags                 = 
|rights               = 
|compatibility        = 
|bugzilla             = 
|phabricator          =
|vagrant-role         = 
}}
For help with parameter values, see below.
MediaWiki extensions manual
OOjs UI icon advanced.svg
{{{name}}}
Release status: unknown
Placeholder.png
Implementation {{{type1}}}, {{{type2}}}
Description {{{description}}}
Author(s) SomeAuthor (SomeUsertalk)
Latest version {{{version}}} ({{{update}}})
Latest preview version {{{version preview}}} ({{{update preview}}})
Compatibility policy invalid
MediaWiki {{{mediawiki}}}
PHP {{{php}}}
com>'php update.php' needed after installation"> Database changes {{{needs-updatephp}}}
Composer {{{composer}}}
Tables [[Special:MyLanguage/Template:Extension/{{{table1}}} table|{{{table1}}}]][[:Template:Extension/{{{table1}}} table| ]]
[[Special:MyLanguage/Template:Extension/{{{table2}}} table|{{{table2}}}]][[:Template:Extension/{{{table2}}} table| ]]
License {{{license}}}
Download {{{download}}}
{{{readme}}}
{{{changelog}}}
Example {{{example}}}
{{{namespace}}}
{{{parameters}}}
{{{tags}}}

{{{rights}}}

{{{compatibility}}}
Translate the Extension extension {{<tvar|3>#if:||if it is available at translatewiki.net}}
Vagrant role {{{vagrant-role}}}
Issues [[phab:tag/{{{phabricator}}}| Open tasks]] · Report a bug

Content parameters

This section describes parameters that govern infobox content.


For help with templatemode and other control parameters, please see Control parameters.

Content parameters
Parameter Description
name name of the extension
status current release status


One of:


  • <tvar

Maintenance: vulnerabilities, archived