Difference between revisions of "Template:Extension/doc"
>Bawolff (add) |
>Lil devil m (Fixed typos.) |
||
Line 94: | Line 94: | ||
* ''[[:Category:Stable extensions|stable]]'' (stable version) | * ''[[:Category:Stable extensions|stable]]'' (stable version) | ||
* ''[[:Category:Extensions with unknown status|unknown]]'' (default) | * ''[[: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 | 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 [[:category:extensions with unknown status|unknown]]. In cases where the value is invalid, it will be placed in a [[:category:extensions with invalid status|special category]] so that the error can be caught and fixed. | ||
|- | |- | ||
| '''type1'''<br/>''type2''<br/>''type3''<br/>''type4''<br/>''type5''<br/>''type6''<br/> || <span id="type">'''implementation type'''</span><!-- id here so at top of documentation --> | | '''type1'''<br/>''type2''<br/>''type3''<br/>''type4''<br/>''type5''<br/>''type6''<br/> || <span id="type">'''implementation type'''</span><!-- id here so at top of documentation --> | ||
Line 173: | Line 173: | ||
| <span id="license">license</span>|| license(s) governing use of this extension, e.g. GPL | | <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. 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 | | <span id="download">'''download'''</span>|| '''link to the download''' : [http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ SVN] or other. 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) | ||
|- | |- | ||
| <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="readme">readme</span>|| link to the readme file : [http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Sort/Sort README] or other |
Revision as of 03:59, 29 May 2010
Template:Documentation subpage Template:Timw
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 implementation type categories.
Usage
Cut and paste: {{Extension|templatemode = |name = |status = |type1 = |type2 = |hook1 = |hook2 = |username = |author = |description = |image = |imagesize = |version = |update = |mediawiki = |php = |license = |download = |readme = |changelog = |parameters = |tags = |rights = |example = |compatibility = }} 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 Control parameters.
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 parametersIn general:
Test caseSee if the following pages are still ok, after edited this template. |