Difference between revisions of "Template:Extension/doc"
>Egfrank~mediawikiwiki (→Content parameters: fixed id on hook parameter) |
>Egfrank~mediawikiwiki (→Content parameters: added span ids to each parameter (so template labels can link to them)) |
||
Line 67: | Line 67: | ||
|+ '''Content parameters''' | |+ '''Content parameters''' | ||
|- | |- | ||
| '''name''' || '''name of the extension''' | |<span id="name">'''name'''</span> || '''name of the extension''' | ||
|- | |- | ||
| '''status''' || '''current release status''' | |<span id="status">'''status'''</span> || '''current release status''' | ||
One of: | One of: | ||
* ''[[:Category:Unstable extensions|unstable]]'' (broken - do not use this extension) | * ''[[:Category:Unstable extensions|unstable]]'' (broken - do not use this extension) | ||
Line 120: | Line 120: | ||
For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on. | For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on. | ||
|- | |- | ||
| '''username''' || 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. | | <span id="username">'''username'''</span> || 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. | ||
|- | |- | ||
| author | | <span id="author">author</span>|| 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). | ||
|- | |- | ||
| | | <span id="description">'''description'''</span>|| '''short description''' | ||
|- | |- | ||
| | | <span id="image">image</span>|| screenshot or logo of extension (of base 270px) | ||
|- | |- | ||
| | | <span id="version">version</span>|| last version | ||
|- | |- | ||
| | | <span id="update">update</span>|| date of the last update | ||
|- | |- | ||
| | | <span id="mediawiki">mediawiki</span>|| required version of MediaWiki | ||
|- | |- | ||
| | | <span id="license">license</span>|| license(s) governing use of this extension, e.g. GPL | ||
|- | |- | ||
| | | <span id="download">'''download'''</span>|| '''link to the download''' : [http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ SVN] or other | ||
|- | |- | ||
| | | <span id="readme">readme</span>|| link to the readme file : [http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Sort/Sort README] or other | ||
|- | |- | ||
| | | <span id="changelog">changelog</span>|| link to the changelog file : [http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Sort/Sort CHANGELOG] or other | ||
|- | |- | ||
| parameters || available parameters for LocalSettings.php | | <span id="parameters">parameters</span> || available parameters for LocalSettings.php | ||
|- | |- | ||
| rights | | <span id="rights">rights</span>|| rights added by the extension. '''Not to be confused with the license!''' Rights are such as ''[[Extension:MakeBot|makebot]]'' or ''[[Extension:Desysop|desysop]]'', not such as GFDL or LGPL or GPL - those are licenses! | ||
|- | |- | ||
| example | | <span id="example">example</span>|| example, website or screenshot of working extension | ||
|} | |} | ||
Revision as of 03:54, 17 September 2007
Purpose
This template should be added to the main page of all extensions documented on this wiki (and only the main page). It will add a useful infobox using the information supplied (see below) and will automatically add the extension to Category:All extensions, plus the appropriate status and type categories.
Usage
Cut and paste: {{Extension|templatemode = |name = |status = |type1 = |type2 = |hook1 = |hook2 = |username = |author = |description = |image = |version = |update = |mediawiki = |license = |download = |readme = |changelog = |parameters = |rights = |example = }} For help with parameter values, see below. |
Lua error: callParserFunction: function "#translation" was not found.
|
Content parameters
This section describes parameters that govern infobox content. For help with templatemode and other control parameters, please see Template:SeeSection.
Control parameters
Using the infoboxExisting extension pagesIf you want to add the infobox to an existing page, copy and paste the code at the top of this page. Create a new extension articleIf 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.
<translate> A developer sharing their code in the MediaWiki code repository should expect:</translate>
Enhancing this templateIf you would like to improve on this template, thanks! This is a complicated template so here is some help along the way: Fixing documentationIf you would like to fix documentation, please be aware that documentation and code is split into two files:
The Create extension buttonTo improve the create extension button behavior:
Infobox parametersTo change/correct/add to the implementation type parameters:
|