模板:MW version/en
<languages/> {{#switch: | = {{#switch:<translate></translate> | = <templatestyles src="MW version/styles.css" />
{{#if: ||}}<td class="mw-version-versionbox" title="{{#switch:
|and after|and later|+= The latest stable version is {{#invoke:Version|get|stable|branch}} |#default= {{#switch:{{#switch: {{#if:{{#if:||}}|{{#if:||}}}}"
| pre-1.1.0" | 1.1" | 1.2" | 1.3" | 1.4" | 1.5" | 1.6" | 1.7" | 1.8" | 1.9" | 1.10" | 1.11" | 1.12" | 1.13" | 1.14" | 1.15" | 1.16" | MediaWiki 1.17" | 1.17" | MediaWiki 1.18" | 1.18" | MediaWiki 1.19" | 1.19" | MediaWiki 1.20" | 1.20" | MediaWiki 1.21" | 1.21" | MediaWiki 1.22" | 1.22" | MediaWiki 1.23" | 1.23" | MediaWiki 1.24" | 1.24" | MediaWiki 1.25" | 1.25" | MediaWiki 1.26" | 1.26" | MediaWiki 1.27" | 1.27" | MediaWiki 1.28" | 1.28" | MediaWiki 1.29" | 1.29" | MediaWiki 1.30" | 1.30" | MediaWiki 1.32" | 1.32" | MediaWiki 1.33" | 1.33" = unsupported | MediaWiki 1.31" | 1.31" | MediaWiki 1.34" | 1.34" = legacy | MediaWiki 1.35" | 1.35" = stable | MediaWiki 1.36" | 1.36" | master" | trunk" | PROPOSED" = future |#default = unknown }}
|unsupported= <translate nowrap> MediaWiki <tvar|1>{{#if:||{{#if:||X.XX}}}}</> is unsupported version</translate> |legacy= <translate nowrap> MediaWiki <tvar|1>{{#if:||{{#if:||X.XX}}}}</> is legacy version</translate> |stable= <translate nowrap> MediaWiki <tvar|1>{{#if:||{{#if:||X.XX}}}}</> is stable version</translate> |future= <translate nowrap> MediaWiki <tvar|1>{{#if:||{{#if:||X.XX}}}}</> is future version</translate> |unknown= <translate nowrap> MediaWiki <tvar|1>{{#if:||{{#if:||X.XX}}}}</> is unknown version</translate> }}}}">
|and before|and earlier|-=<translate> ≤</translate> |and after|and later|+=<translate> ≥</translate>}} {{#if: | | X.X }}{{#if: | – }}
模板:Rev}}{{#if: |
模板:Gerrit search}} {{#switch: |and before|and after|and earlier|and later|-|+|= |#default=
}}
MediaWiki version{{#if:|s}}: |
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:MW version/layout|noshift=1}}
}} | #default =
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:MW version|noshift=1}}
}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:模板:Uses TemplateStyles
Purpose
This template shows the valid MediaWiki version for the paragraph. It appears on the right side of the window in a bordered text field.
Usage
{{MW version|version= [|version2=] [|comment=] [|gerrit change=] }}
Example
模板:MW version
{{MW version|version={{#expr: {{#invoke:Version|get|stable|branch}} + 0.01}}}}
模板:MW version
{{MW version|version={{#invoke:Version|get|stable|branch}}}}
模板:MW version
{{MW version|version=模板:MW legacy branch number}}
模板:MW version
{{MW version|version=1.15}}
模板:MW version
{{MW version|version=模板:MW legacy branch number|version2={{#invoke:Version|get|stable|branch}}}}
模板:MW version
{{MW version|version=模板:MW legacy branch number|comment=and before}}
模板:MW version
{{MW version|version=1.15|comment=and after}}
模板:MW 1.15
{{MW 1.15|and after}}
模板:MW version
{{MW version|version=模板:MW legacy branch number|comment=text here}}
模板:MW version
{{MW version|version={{#invoke:Version|get|stable|branch}}|gerrit change=12345}}
模板:MW version
{{MW version|version={{#invoke:Version|get|stable|branch}}|r=123}}
See also
- Template:MW version-inline
- [[Template:MW {{#invoke:Version|get|stable|branch}}]]
- [[Template:MW 模板:MW legacy branch number]], ...|
[[Category:Template documentation pages{{#translation:}}]] }} Maintenance: list1
[[Category:MediaWiki version information templates{{#translation:}}]] [[Category:MediaWiki version templates{{#translation:}}|*]]