Difference between revisions of "Template:Extension"
Jump to navigation
Jump to search
>Bawolff (add a parameter to control the name for check usage) |
>MZMcBride (updated code) |
||
Line 1: | Line 1: | ||
<includeonly>{| class="ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} | <includeonly>{| class="ext-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} }} | ||
|unstable|experimental|beta|stable={{{status}}} | |||
|#default=unknown | |||
}}" style="float: right; background-color: white; width:280px;" | |||
|+ '''[[Manual:Extensions|Manual on MediaWiki Extensions]]'''<br />'''[[Extension Matrix|List of MediaWiki Extensions]]''' | |+ '''[[Manual:Extensions|Manual on MediaWiki Extensions]]'''<br />'''[[Extension Matrix|List of MediaWiki Extensions]]''' | ||
|- class="ext-header" | |- class="ext-header" | ||
! colspan="2" style="padding-top: 0.5em;" | [[ | ! colspan="2" style="padding-top: 0.5em;" | [[File:{{#ifeq: {{{status|}}} |unstable|Crystal Clear app error.png|<!--else-->Crystal Clear action run.png}}|link=|left|40px]] <span style="font-size: 130%;">{{{name|{{PAGENAME}}}}}</span><br /> | ||
Release status: {{#switch: {{lc: {{{status|unknown}}} }} | |||
|unstable|experimental|beta|stable={{{status}}} | |||
|#default=unknown | |||
}} | |||
Release status: {{#switch: {{lc: {{{status|unknown}}} | |- <!-- Category logic -->{{#ifeq:{{{templatemode|}}}|nocats|<!-- do nothing -->|<!--else-->[[Category:{{#switch: {{lc:{{{status|}}} }} | ||
|unstable|experimental|stable = {{{status}}} extensions | |||
|beta = beta status extensions | |||
|unknown = extensions with unknown status | |||
<!-- | |#default = extensions with invalid status | ||
-->{{#ifeq:{{{templatemode|}}}|nocats|<!-- | }}]]}} | ||
{{#if:{{{image|}}}| | |||
-->|<!--else | {{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{image}}}|{{{imagesize|220}}}px]] | ||
{{!}}- | |||
}} | |||
{{#if:{{{type|}}}{{{type1|}}}| | |||
{{!}} style="vertical-align: top" {{!}} [[Template:Extension#type|'''Implementation''']]<!-- | |||
-->{{col sep}}<!-- -->{{#ifeq:{{{templatemode|}}}|nocats|<!-- | -->{{col sep}}<!-- -->{{#ifeq:{{{templatemode|}}}|nocats|<!-- | ||
-->{{Foreach|Extension/TypeSwitchNoCats|<!-- -->delim=, |<!-- | -->{{Foreach|Extension/TypeSwitchNoCats|<!-- -->delim=, |<!-- | ||
Line 51: | Line 39: | ||
-->{{Extension/TypeSwitch|_missing_}}<!-- | -->{{Extension/TypeSwitch|_missing_}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}} | --> | ||
{{!}}- | |||
}} | |||
| style="vertical-align: top" | [[Template:Extension#description|'''Description''']] || {{{description}}} | | style="vertical-align: top" | [[Template:Extension#description|'''Description''']] || {{{description}}} | ||
|- | |- | ||
{{#if:{{{author|{{{username|}}} }}}| | |||
{{!}} style="vertical-align: top" {{!}} [[Template:Extension#username|'''Author(s)''']]<!-- | |||
-->{{col sep}} {{#if: {{{username|}}} |<!-- | -->{{col sep}} {{#if: {{{username|}}} |<!-- | ||
-->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!-- | -->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!-- | ||
Line 73: | Line 61: | ||
-->|<!--else--><!-- | -->|<!--else--><!-- | ||
-->{{{author}}}<!-- | -->{{{author}}}<!-- | ||
-->}} | -->}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{version|}}}| | |||
{{!}} style="vertical-align: top" {{!}} [[Template:Extension#version|'''Last Version''']]<!-- | |||
-->{{col sep}} {{{version}}}{{#if:{{{update|}}}| ({{{update}}})}}<!-- | -->{{col sep}} {{{version}}}{{#if:{{{update|}}}| ({{{update}}})}}<!-- | ||
-->}} | -->}} | ||
Line 85: | Line 72: | ||
-->{{#if:{{{mediawiki|}}}|<!-- | -->{{#if:{{{mediawiki|}}}|<!-- | ||
-->{{col sep}} style="vertical-align: top" {{!}} [[Template:Extension#mediawiki|'''MediaWiki''']]<!-- | -->{{col sep}} style="vertical-align: top" {{!}} [[Template:Extension#mediawiki|'''MediaWiki''']]<!-- | ||
-->{{col sep}} {{{mediawiki}}} | -->{{col sep}} {{{mediawiki}}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{php|}}}| | |||
{{!}} style="vertical-align: top" {{!}} [[Template:Extension#php|'''PHP''']]<!-- | |||
-->{{col sep}} {{{php}}} | |||
-->{{col sep}} {{{php}}} | {{!}}- | ||
}} | |||
| style="vertical-align: top" {{!}} [[Template:Extension#license|'''License''']] | | style="vertical-align: top" {{!}} [[Template:Extension#license|'''License''']] | ||
| {{#if:{{{license|}}}|{{{license}}}|No license specified[[Category:Extensions with no license specified]]}} | | {{#if:{{{license|}}}|{{{license}}}|No license specified[[Category:Extensions with no license specified]]}} | ||
Line 103: | Line 89: | ||
-->{{#if:{{{changelog|}}}|<br />{{{changelog}}}<!-- -->}} | -->{{#if:{{{changelog|}}}|<br />{{{changelog}}}<!-- -->}} | ||
|- | |- | ||
{{#if:{{{example|}}}|<!-- | |||
-->{{col sep}} style="vertical-align: top" {{!}} [[Template:Extension#example|'''Example''']]<!-- | -->{{col sep}} style="vertical-align: top" {{!}} [[Template:Extension#example|'''Example''']]<!-- | ||
-->{{col sep}} {{{example}}} | -->{{col sep}} {{{example}}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{parameters|}}}| | |||
{{!}} style="padding: 0pt;" colspan="2" {{!}}<!-- | |||
--> | --> | ||
{{{!}} class="collapsible collapsed" style="border-collapse: collapse; width: 100%;" | {{{!}} class="collapsible collapsed" style="border-collapse: collapse; width: 100%;" | ||
{{! | {{!}}- | ||
! style="vertical-align: top; text-align: left; padding: 0.2em 0.5em;" {{!}} [[Template:Extension#parameters|'''Parameters''']] | ! style="vertical-align: top; text-align: left; padding: 0.2em 0.5em;" {{!}} [[Template:Extension#parameters|'''Parameters''']] | ||
{{! | {{!}}-<!-- | ||
-->{{col sep}} | -->{{col sep}} | ||
{{{parameters}}}<!-- | {{{parameters}}}<!-- | ||
--> | --> | ||
{{!}}} | {{!}}} | ||
{{!}}- | |||
}} | |||
<!-- | <!-- | ||
-->{{#if:{{{tags|}}}|<!-- | -->{{#if:{{{tags|}}}|<!-- |
Revision as of 15:49, 5 May 2010
Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. Template:Languages