Difference between revisions of "Template:Extension"
>Bouncingmolar (fixing typo) |
>Bouncingmolar (changing historical to obsolete as per discussion) |
||
Line 6: | Line 6: | ||
<!--********** THIS IS WHERE THE TEMPLATE STARTS **********--></noinclude> | <!--********** THIS IS WHERE THE TEMPLATE STARTS **********--></noinclude> | ||
{{#ifeq: {{{status}}}| | {{#ifeq: {{{status}}}|obsolete|{{historical}}}} | ||
{| class="ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}}}}|unstable|experimental|beta|stable={{{status}}}|unknown| | {| class="ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}}}}|unstable|experimental|beta|stable={{{status}}}|unknown|obsolete}}" style="float: right; background-color: white; min-width:20%;" | ||
|+ '''This is a [[:Category:Extensions|MediaWiki Extension]]''' | |+ '''This is a [[:Category:Extensions|MediaWiki Extension]]''' | ||
|- class="ext-header" | |- class="ext-header" | ||
! colspan="2" style="padding-top: 0.5em;" | [[Image:{{#ifeq: {{{status|}}}|unstable|Crystal Clear app error.png|Crystal Clear action run.png}}|left|40px]] <span style="font-size: 130%;">{{{name|{{PAGENAME}}}}}</span><br> | ! colspan="2" style="padding-top: 0.5em;" | [[Image:{{#ifeq: {{{status|}}}|unstable|Crystal Clear app error.png|Crystal Clear action run.png}}|left|40px]] <span style="font-size: 130%;">{{{name|{{PAGENAME}}}}}</span><br> | ||
Release status: {{#switch: {{lc: {{{status|unknown}}}}}|unstable|experimental|beta|stable| | Release status: {{#switch: {{lc: {{{status|unknown}}}}}|unstable|experimental|beta|stable|obsolete={{{status}}}|unknown}} <includeonly>[[Category:{{#switch: {{lc:{{{status|}}}}}|unstable|experimental|stable={{{status}}} extensions|beta=beta status extensions|obsolete=extensions kept for historical reasons|unknown|=extensions with unknown status|extensions with invalid status}}]]</includeonly> | ||
|- | |- | ||
{{#if:{{{image<includeonly>|</includeonly>}}}| | {{#if:{{{image<includeonly>|</includeonly>}}}| | ||
Line 73: | Line 73: | ||
* ''[[:category:unstable extensions|unstable]]'' (broken - do not use this extension) | * ''[[:category:unstable extensions|unstable]]'' (broken - do not use this extension) | ||
* ''[[:category:experimental extensions|experimental]]'' (early stages of development, may change drastically.) | * ''[[:category:experimental extensions|experimental]]'' (early stages of development, may change drastically.) | ||
* ''[[:category:Extensions kept for historical reasons| | * ''[[:category:Extensions kept for historical reasons|obsolete]]'' (extensions made obsolete by added features to mediawiki or better extensions) | ||
* ''[[:category:beta status extensions|beta]]'' (stable but not fully tested) | * ''[[:category:beta status extensions|beta]]'' (stable but not fully tested) | ||
* ''[[:category:stable extensions|stable]]'' (stable version) | * ''[[:category:stable extensions|stable]]'' (stable version) |
Revision as of 00:10, 25 July 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.
Example
Extension Release status: unknown | |
---|---|
Type: | {{{type}}} |
Description: | {{{description}}} |
Author: | {{{author}}} |
Version: | {{{version}}} |
MediaWiki: | {{{mediawiki}}} |
Download: | {{{download}}} |
Parameters: | {{{parameters}}} |
Added rights: | {{{rights}}} |
Example: | {{{example}}} |
Usage
Using the infoboxExisting extension pagesIf you want to add the infobox to an existing page, copy and paste the following code and add it to the top: {{Extension |name = |status = |type = |author = |username = |image = |version = |update = |mediawiki = |download = |readme = |changelog = |description = |parameters= |rights = |example = }} 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. |