Difference between revisions of "Template:Extension/doc"
>Egfrank~mediawikiwiki (→Content parameters: added access items from proposed taxonomy (see Talk page, Sept, 2007)) |
>Egfrank~mediawikiwiki (→Content parameters: moved link markup under parser extensions) |
||
Line 91: | Line 91: | ||
Legal values for the '''type1''','''type2''',... parameters are: | Legal values for the '''type1''','''type2''',... parameters are: | ||
* ''[[:Category:Parser extensions|parser]]'' - catchall for uncategorized [[Manual:Extending wiki markup|parser extensions]]. If you have written a parser extension, please use one of the more specific types below: | * ''[[:Category:Parser extensions|parser]]'' - catchall for uncategorized [[Manual:Extending wiki markup|parser extensions]]. If you have written a parser extension, please use one of the more specific types below: | ||
** ''[[:Category:Link markup extensions|link]]'' - customized [[Manual:Extending wiki markup|link markup]], e.g. <code><nowiki>[[</nowiki>...]]</code> | |||
** ''[[:Category:Parser function extensions|parser function]]'' - custom [[Manual:Parser functions|parameterized template markup]], e.g. <code><nowiki>{{</nowiki>''#name:'' ... }}</code> | ** ''[[:Category:Parser function extensions|parser function]]'' - custom [[Manual:Parser functions|parameterized template markup]], e.g. <code><nowiki>{{</nowiki>''#name:'' ... }}</code> | ||
** ''[[:Category:Tag extensions|tag]]'' - [[Manual:Tag extensions|custom XML tag markup]], e.g. <code><nowiki><</nowiki>''tagname''>...<nowiki></</nowiki>''tagname''></code> | ** ''[[:Category:Tag extensions|tag]]'' - [[Manual:Tag extensions|custom XML tag markup]], e.g. <code><nowiki><</nowiki>''tagname''>...<nowiki></</nowiki>''tagname''></code> | ||
** ''[[:Category:Variable extensions|variable]]'' - custom [[Manual:Variables|unparameterized template markup]], e.g. <code><nowiki>{{NAME}}</nowiki></code> | ** ''[[:Category:Variable extensions|variable]]'' - custom [[Manual:Variables|unparameterized template markup]], e.g. <code><nowiki>{{NAME}}</nowiki></code> | ||
** ''[[:Category:Extended syntax extensions|extended syntax]]'' - Extensions that add non-standard wiki syntax (i.e. <em>not</em> [[Manual:Tag extensions|tags]], [[Manual:Parser functions|parser functions]], or [[Manual:Variables|variables]]). | ** ''[[:Category:Extended syntax extensions|extended syntax]]'' - Extensions that add non-standard wiki syntax (i.e. <em>not</em> [[Manual:Tag extensions|tags]], [[Manual:Parser functions|parser functions]], or [[Manual:Variables|variables]]). | ||
* [[:User access extensions|''access'']] - catchall for {{SeeManual|user access extensions}}, that is, extensions that create, authenticate, grant or revoke permissions to users. | * [[:Category:User access extensions|''access'']] - catchall for {{SeeManual|user access extensions}}, that is, extensions that create, authenticate, grant or revoke permissions to users. | ||
** [[:Category:User identity extensions|''user identity'']] - extensions that create and delete users, and/or verify the identity of a user | ** [[:Category:User identity extensions|''user identity'']] - extensions that create and delete users, and/or verify the identity of a user | ||
** [[:Category:User rights extensions|''user rights'']] - extensions to the rights management system, e.g. changes to the way rights are assigned, apis, 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]].). | ** [[:Category:User rights extensions|''user rights'']] - extensions to the rights management system, e.g. changes to the way rights are assigned, apis, 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]].). | ||
Line 108: | Line 109: | ||
* ''[[: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 | * ''[[: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 | ||
* ''[[:Category:User interface extensions|interface]]'' - catchall for uncategorized user interface extensions. (e.g. [[w:javascript|javascript]] code) | * ''[[:Category:User interface extensions|interface]]'' - catchall for uncategorized user interface extensions. (e.g. [[w:javascript|javascript]] code) | ||
* ''[[:Category:List extensions|list]]'' - List | * ''[[:Category:List extensions|list]]'' - List | ||
* ''[[:Category:Media handling extensions|media]]'' - Media | * ''[[:Category:Media handling extensions|media]]'' - Media |
Revision as of 09:30, 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 parametersIn general:
|