Difference between revisions of "Template:Extension"
Jump to navigation
Jump to search
>HappyDog (Add 'type' field - plus temp category to locate extensions that use it.) |
>HappyDog (Added type field) |
||
Line 12: | Line 12: | ||
{{#if:{{{type<includeonly>|</includeonly>}}}| | {{#if:{{{type<includeonly>|</includeonly>}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Type:''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''Type:''' | ||
<!-- -->{{!}} {{{type}}} | <!-- -->{{!}} {{#switch: {{#lc: {{{type}}}}}|special=Special Page[[Category:Special page extensions]]|pfunc=Parser Function[[Category:Parser function extensions]]|hook=Hook[[Category:Parser extensions]]|interface=User Interface[[Category:User interface extensions]]|{{{type}}}<includeonly>[[Category:Category to catch extensions with an unrecognised type]]</includeonly>}} | ||
}} | }} | ||
|- | |- | ||
Line 67: | Line 67: | ||
* ''release'' (stable version) | * ''release'' (stable version) | ||
* ''unknown'' (default) | * ''unknown'' (default) | ||
|- | |||
| '''type''' || '''type of extension''' | |||
Can contain any value, but the following special values ensure proper categorisation: | |||
* ''pfunc'' - Parser Function | |||
* ''hook'' - Parser Hook | |||
* ''special'' - Special Page | |||
* ''interface'' - User interface extension (e.g. javascript code). | |||
Please add to this list if necessary. | |||
|- | |- | ||
| author || author of the extension | | author || author of the extension | ||
Line 96: | Line 104: | ||
|name = | |name = | ||
|status = | |status = | ||
|type = | |||
|author = | |author = | ||
|image = | |image = | ||
Line 111: | Line 120: | ||
|} | |} | ||
</noinclude><includeonly>{{DEFAULTSORT:{{{name|{{PAGENAME}}}}}}}[[Category:Extensions]][[Category:{{{status|unknown}}} status extensions]] | </noinclude><includeonly>{{DEFAULTSORT:{{{name|{{PAGENAME}}}}}}}[[Category:Extensions]][[Category:{{{status|unknown}}} status extensions]]</includeonly> |
Revision as of 03:04, 10 February 2007
Extension Release status: unknown | |
---|---|
Type: | {{{type}}} |
Description: | {{{description}}} |
Author: | {{{author}}} |
Version: | {{{version}}} |
Mediawiki: | {{{mediawiki}}} |
Download: | {{{download}}} |
Parameters: | {{{parameters}}} |
Added rights: | {{{rights}}} |
Example: | {{{example}}} |
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:Extensions.
Usage
|
{{Extension |name = |status = |type = |author = |image = |version = |update = |mediawiki = |download = |readme = |changelog = |description = |parameters= |rights = |example = }} |