Difference between revisions of "Template:Extension"

Jump to navigation Jump to search
267 bytes added ,  17:55, 17 July 2007
Updated cat for missing status, as per Category talk:Extensions. Also made clearer start/end template markers.
>HappyDog
m (Fix matches when author field is missing.)
>HappyDog
(Updated cat for missing status, as per Category talk:Extensions. Also made clearer start/end template markers.)
Line 3: Line 3:
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 [[:Category:Extensions by status|status]] and [[:Category:Extensions by type|type]] categories.
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 [[:Category:Extensions by status|status]] and [[:Category:Extensions by type|type]] categories.


== Example == </noinclude>
== Example ==  
 
<!--********** THIS IS WHERE THE TEMPLATE STARTS **********--></noinclude>
{| class="ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}}}}|unstable|experimental|beta|stable={{{status}}}|unknown}}" style="float: right; background-color: white; min-width:20%;"
{| class="ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}}}}|unstable|experimental|beta|stable={{{status}}}|unknown}}" 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={{{status}}}|unknown}} <includeonly>[[Category:{{#switch: {{lc:{{{status}}}}}|unstable|experimental|stable={{{status}}} extensions|beta=beta status extensions|unknown=extensions with unknown status|extensions with invalid or missing status}}]]</includeonly>
Release status: {{#switch: {{lc: {{{status|unknown}}}}}|unstable|experimental|beta|stable={{{status}}}|unknown}} <includeonly>[[Category:{{#switch: {{lc:{{{status}}}}}|unstable|experimental|stable={{{status}}} extensions|beta=beta status extensions|unknown|=extensions with unknown status|extensions with invalid or missing status}}]]</includeonly>
|-
|-
{{#if:{{{image<includeonly>|</includeonly>}}}|
{{#if:{{{image<includeonly>|</includeonly>}}}|
Line 53: Line 55:
}}
}}
|}<includeonly>{{DEFAULTSORT:{{{name|{{PAGENAME}}}}}}}[[Category:All extensions]]</includeonly><noinclude>
|}<includeonly>{{DEFAULTSORT:{{{name|{{PAGENAME}}}}}}}[[Category:All extensions]]</includeonly><noinclude>
<!--********** THIS IS WHERE THE TEMPLATE ENDS **********-->


<br clear="right" />
<br clear="right" />
Line 71: Line 75:
* ''[[:category:stable extensions|stable]]'' (stable version)
* ''[[:category:stable extensions|stable]]'' (stable version)
* ''[[:category:extensions with unknown status|unknown]]'' (default)
* ''[[:category:extensions with unknown status|unknown]]'' (default)
If the status is anything other than the above, it will be ignored and the default value will be used instead.  In these cases it will be placed in a [[:category:extensions with invalid or missing status|special category]] so that the error can be caught and fixed.
If the status is anything other than the above, it will be ignored and the default value will be used instead.  In cases where the value is omitted, it will be categorised as [[:category:extensions with unknown status|unknown]].  In cases where the value is invalid, it will be placed in a [[:category:extensions with invalid or missing status|special category]] so that the error can be caught and fixed.
|-
|-
| '''type''' || '''type of extension'''
| '''type''' || '''type of extension'''
Anonymous user

Navigation menu