Difference between revisions of "Template:Extension/doc"
>Egfrank~mediawikiwiki (→Content parameters: added impl type=page action) |
>Egfrank~mediawikiwiki (→Content parameters: added deprecation warning) |
||
| Line 107: | Line 107: | ||
** ''[[:Category:Page action extensions|''page action'']]'' - extensions that enhance or modify {{SeeManual|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''). | ** ''[[:Category:Page action extensions|''page action'']]'' - extensions that enhance or modify {{SeeManual|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''). | ||
* ''[[: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:Parser function extensions|pfunc]]'' - same as ''parser function'' | |||
<div style="border: thin solid blue">We are in the process of revising the values of this page. Types below this point are likely to be deprecated or redefined. We apologize for the inconvenience. See [[Template_talk:Extension#Type taxonomy]] for more information.</div> | |||
<!-- skin: e.g. [[w:javascript|javascript]] code --> | <!-- skin: e.g. [[w:javascript|javascript]] code --> | ||
| Line 115: | Line 120: | ||
* ''[[:Category:Extension examples|example]]'' - Not a real extension, but an example of how to write one | * ''[[:Category:Extension examples|example]]'' - Not a real extension, but an example of how to write one | ||
* ''[[:Category:Form extensions|form]]'' - Form | * ''[[:Category:Form extensions|form]]'' - Form | ||
* ''[[:Category:List extensions|list]]'' - List | * ''[[:Category:List extensions|list]]'' - List | ||
* ''[[:Category:Media handling extensions|media]]'' - Media | * ''[[:Category:Media handling extensions|media]]'' - Media | ||
* ''[[:Category:Namespace extensions|namespace]]'' - Namespace | * ''[[:Category:Namespace extensions|namespace]]'' - Namespace | ||
* ''[[:Category:Table extensions|table]]'' - Table | * ''[[:Category:Table extensions|table]]'' - Table | ||
Revision as of 23:13, 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 implementation 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:
|