Difference between revisions of "Template:Extension"
Jump to navigation
Jump to search
>Patrick~mediawikiwiki (parser, hook, special=Parser extensionCategory:Parser extensions, HookCategory:Hook extensions, and Special PageCategory:Special page extensions) |
>Patrick~mediawikiwiki m |
||
Line 12: | Line 12: | ||
{{#if:{{{type<includeonly>|</includeonly>}}}| | {{#if:{{{type<includeonly>|</includeonly>}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Type:''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''Type:''' | ||
<!-- -->{{!}} {{#switch: {{lc: {{{type}}}}}|special=Special | <!-- -->{{!}} {{#switch: {{lc: {{{type}}}}}|special=Special page[[Category:Special page extensions]]|pfunc=[[Extension:Parser function extensions|Parser function]][[Category:Parser function extensions]]|parser=Parser extension[[Category:Parser extensions]]|parser,pfunc=[[Extension:Parser function extensions|Parser function]][[Category:Parser extensions]] and Parser function[[Category:Parser function extensions]]|hook=Hook[[Category:Hook extensions]]|interface=User interface[[Category:User interface extensions]]|parser, hook, special=Parser extension[[Category:Parser extensions]], hook[[Category:Hook extensions]], and special page[[Category:Special page extensions]]|{{{type}}}<includeonly>[[Category:Category to catch extensions with an unrecognised type]]</includeonly>}} | ||
}} | }} | ||
|- | |- | ||
Line 71: | Line 71: | ||
| '''type''' || '''type of extension''' | | '''type''' || '''type of extension''' | ||
Can contain any value, but the following special values ensure proper categorisation: | Can contain any value, but the following special values ensure proper categorisation: | ||
* ''pfunc'' - Parser | * ''pfunc'' - Parser function | ||
* ''parser'' - Parser | * ''parser'' - Parser extension (new tag) | ||
* ''parser,pfunc'' - available as Parser Function AND as Parser Extension | * ''parser,pfunc'' - available as Parser Function AND as Parser Extension | ||
* ''hook'' - Hook | * ''hook'' - Hook extension (using $wgHooks) | ||
* ''special'' - Special | * ''special'' - Special page | ||
* ''interface'' - User interface extension (e.g. javascript code). | * ''interface'' - User interface extension (e.g. javascript code). | ||
* ''parser, hook, special'' - Parser extension, hook, and special page | |||
Please add to this list if necessary. | Please add to this list if necessary. | ||
|- | |- |
Revision as of 07:36, 17 March 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 = }} |
Create a new extension article