Difference between revisions of "Template:Extension"

From WPRDC Wiki
Jump to navigation Jump to search
>HappyDog
m (cat sort)
>Sanbeg
(add example type)
Line 11: Line 11:
{{#if:{{{type<includeonly>|</includeonly>}}}|
{{#if:{{{type<includeonly>|</includeonly>}}}|
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Type:'''
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Type:'''
<!-- -->{{!}} {{#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>}}
<!-- -->{{!}} {{#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]]|example=[[Category:Extension examples]]|{{{type}}}<includeonly>[[Category:Category to catch extensions with an unrecognised type]]</includeonly>}}
}}
}}
|-
|-

Revision as of 16:48, 10 April 2007

This is a MediaWiki Extension
Crystal Clear action run.png
Extension

Release status: unknown

Placeholder.png
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

Parameters
name name of the extension
status current release status

One of:

  • unstable (broken - do not use this extension)
  • experimental (early stages of development, may change drastically.)
  • beta (stable but not fully tested)
  • stable (stable version)
  • unknown (default)
type type of extension

Can contain any value, but the following special values ensure proper categorisation:

  • pfunc - Parser function
  • parser - Parser extension (new tag)
  • parser,pfunc - available as Parser Function AND as Parser Extension
  • hook - Hook extension (using $wgHooks)
  • special - Special page
  • interface - User interface extension (e.g. javascript code).
  • parser, hook, special - Parser extension, hook, and special page

Please add to this list if necessary.

author author of the extension
image screenshot (of base 270px)
version last version
update date of the last update
mediawiki required version of MediaWiki
download link to the download : SVN or other
readme link to the readme file : README or other
changelog link to the changelog file : CHANGELOG or other
description short description
parameters available parameters for LocalSettings.php
rights rights added by the extension
example example, website or screenshot of working extension
{{Extension
|name      = 
|status    =
|type      =
|author    =
|image     =
|version   =
|update    =
|mediawiki =
|download  =
|readme    =
|changelog =
|description =
|parameters=
|rights    =
|example   =
}}

Create a new extension article