Difference between revisions of "Template:Extension"
Jump to navigation
Jump to search
moved documentation to Template:Extension/Doc; added support for multiple types; fixed misc bugs re; missing, blank parameter values
>Egfrank~mediawikiwiki (added to category:Categorizing templates) |
>Egfrank~mediawikiwiki (moved documentation to Template:Extension/Doc; added support for multiple types; fixed misc bugs re; missing, blank parameter values) |
||
Line 1: | Line 1: | ||
< | <includeonly>{| 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 | ! 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%;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</span><br> | ||
Release status: {{#switch: {{lc: {{{status|unknown}}}}}|unstable|experimental|beta|stable={{{status}}}|unknown}} | Release status: {{#switch: {{lc: {{{status|unknown}}}}}|unstable|experimental|beta|stable={{{status}}}|#default=unknown}} | ||
{{#ifeq:{{{templatemode|}}}|nocats||[[Category:{{#switch: {{lc:{{{status|}}}}}|unstable|experimental|stable={{{status}}} extensions|beta=beta status extensions|unknown|=extensions with unknown status|#default=extensions with invalid status}}]]}} | |||
|- | |- | ||
{{#if:{{{image | {{#if:{{{image|}}}| | ||
<!-- -->{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{image | <!-- -->{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{image}}}|220px]] | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{type | {{#if:{{{type|}}}{{{type1|}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Type''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''Type''' | ||
<!-- -->{{!}} {{# | <!-- -->{{!}}{{#ifeq:{{{templatemode|}}}|nocats|{{Extension/TypeSwitch|_demomode_}} | ||
| | |{{Foreach|Extension/TypeSwitch|delim=,|{{{type1|{{{type|missing}}}}}}|{{{type2|}}}|{{{type3|}}}|{{{type4|}}}|{{{type5|}}}|{{{type6|}}}}}}} | ||
| | |{{Extension/TypeSwitch|_missing_}} | ||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
|{{{ | |||
}} | }} | ||
|- | |- | ||
| style="vertical-align: top" | '''Description''' || {{{description}}} | | style="vertical-align: top" | '''Description''' || {{{description}}} | ||
|- | |- | ||
{{#if:{{{author|{{{username | {{#if:{{{author|{{{username|}}}}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Author(s)''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''Author(s)''' | ||
<!-- -->{{!}} {{#if: {{{username|}}} | {{#ifeq: {{{username}}}|{{{author|{{{username}}}}}}||{{{author}}} (}}[[User:{{{username}}}|{{{username}}}]] <sup><small>[[User talk:{{{username}}}|talk]]</small></sup>{{#ifeq: {{{username}}}|{{{author|{{{username}}}}}}||)}} | {{{author}}} }} | <!-- -->{{!}} {{#if: {{{username|}}} | {{#ifeq: {{{username}}}|{{{author|{{{username}}}}}}||{{{author}}} (}}[[User:{{{username}}}|{{{username}}}]] <sup><small>[[User talk:{{{username}}}|talk]]</small></sup>{{#ifeq: {{{username}}}|{{{author|{{{username}}}}}}||)}} | {{{author}}} }} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{version | {{#if:{{{version|}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Version''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''Version''' | ||
<!-- -->{{!}} {{{version}}}{{#if:{{{update|}}}| ({{{update}}})}} | <!-- -->{{!}} {{{version}}}{{#if:{{{update|}}}| ({{{update}}})}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{mediawiki | {{#if:{{{mediawiki|}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''MediaWiki''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''MediaWiki''' | ||
<!-- -->{{!}} {{{mediawiki}}} | <!-- -->{{!}} {{{mediawiki}}} | ||
}} | }} | ||
|- | |- | ||
| style="vertical-align: top" | '''Download''' || {{{download | | style="vertical-align: top" | '''Download''' | ||
| {{#if:{{{download|}}}|{{{download}}}|''no link''}}{{#if:{{{readme|}}}|<br />{{{readme}}}}}{{#if:{{{changelog|}}}|<br />{{{changelog}}}}} | |||
|- | |- | ||
{{#if:{{{parameters | {{#if:{{{parameters|}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Parameters''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''Parameters''' | ||
<!-- -->{{!}} {{{parameters}}} | <!-- -->{{!}} {{{parameters}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{rights | {{#if:{{{rights|}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Added rights''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''Added rights''' | ||
<!-- -->{{!}} {{{rights}}} | <!-- -->{{!}} {{{rights}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{example | {{#if:{{{example|}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Example''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''Example''' | ||
<!-- -->{{!}} {{{example}}} | <!-- -->{{!}} {{{example}}} | ||
}} | }} | ||
|} | |} | ||
{{#ifeq:{{{templatemode|}}}|nocats||{{DEFAULTSORT:{{{name|{{PAGENAME}}}}}}}[[Category:All extensions]]}}</includeonly><noinclude> | |||
[[Category:Info templates|{{PAGENAME}}]] | |||
[[Category:Extension creation]] | |||
[[Category:Categorizing templates|{{PAGENAME}}]] | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}}</ | |||
< | |||
[[Category:Info templates|{{PAGENAME}}]][[Category:Extension creation]] | |||
[[Category:Categorizing templates]] | |||
</noinclude> | </noinclude> |