Difference between revisions of "Template:MW version"
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
Joelmartin (talk | contribs) m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | + | </noinclude>{{#switch: | |
− | </noinclude>{{#switch: | ||
| = | | = | ||
{{MW version/layout | {{MW version/layout | ||
|lang={{lang code}} | |lang={{lang code}} | ||
− | |msg-mw-version= | + | |msg-mw-version= MediaWiki version{{#if:{{{version2|}}}|s}}: |
− | |msg-latest-tooltip= | + | |msg-latest-tooltip= The latest stable version is {{MW stable branch number}} |
|version={{{version|}}} | |version={{{version|}}} | ||
|version2={{{version2|}}} | |version2={{{version2|}}} | ||
Line 19: | Line 18: | ||
{{Documentation|content= | {{Documentation|content= | ||
− | == Purpose == | + | == 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. | It appears on the right side of the window in a bordered text field. | ||
− | == Usage == | + | == Usage == |
− | + | ||
<nowiki>{{</nowiki>MW version{{!}}version= [{{!}}version2=] [{{!}}comment=] [{{!}}gerrit=] <nowiki>}}</nowiki> | <nowiki>{{</nowiki>MW version{{!}}version= [{{!}}version2=] [{{!}}comment=] [{{!}}gerrit=] <nowiki>}}</nowiki> | ||
Line 123: | Line 122: | ||
− | == Example == | + | == Example == |
− | + | ||
<!-- version --> | <!-- version --> | ||
{{clear}} | {{clear}} | ||
Line 166: | Line 165: | ||
− | == See also == | + | == See also == |
− | + | ||
* [[Template:MW version-inline]] | * [[Template:MW version-inline]] | ||
* [[Template:MW {{MW stable branch number}}]] | * [[Template:MW {{MW stable branch number}}]] | ||
Line 174: | Line 173: | ||
<small>Maintenance: [[Special:WhatLinksHere/Template:MW version/list1|list1]]</small><!-- See [[Template:MW version/layout]] --> | <small>Maintenance: [[Special:WhatLinksHere/Template:MW version/list1|list1]]</small><!-- See [[Template:MW version/layout]] --> | ||
− | [[Category:MediaWiki version information templates | + | [[Category:MediaWiki version information templates]] |
− | [[Category:MediaWiki version templates | + | [[Category:MediaWiki version templates|*]] |
</noinclude> | </noinclude> |
Latest revision as of 14:40, 21 December 2019
MediaWiki version: | X.X |

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=] }}
This template shows the valid MediaWiki version for the paragraph. It appears on the right side of the window in a bordered text field.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Version | version | The version number of MediaWiki to display. | String | required |
Version 2 | version2 | To display a range of versions (e.g. 1.20 - 1.25), enter the first version in the "Version" parameter and the second version in the "Version 2" parameter. | String | optional |
Comment | comment | If set to <code>and before</code> or <code>and after</code>, places a less-than-or-equal (≤) or greater-than-or-equal (≥) sign before the ''version'' number; otherwise adds the comment to the right of the version number box. | String | suggested |
SVN revision ID | r | An SVN revision ID related to the section this template embedded in. | String | deprecated |
Gerrit change | gerrit change | A Gerrit change number implementing the feature | String | optional |
Compact | compact | If set, hides the "MediaWiki version:" string. | Boolean | optional |
Example
MediaWiki version: | 1.34 |
{{MW version|version=1.34}}
MediaWiki version: | 1.33 |
{{MW version|version=1.33}}
MediaWiki version: | 1.32 |
{{MW version|version=1.32}}
MediaWiki version: | 1.6 |
{{MW version|version=1.6}}
MediaWiki versions: | 1.32 – 1.33 |
{{MW version|version=1.32|version2=1.33}}
MediaWiki version: | ≤ 1.32 |
{{MW version|version=1.32|comment=and before}}
MediaWiki version: | ≥ 1.6 |
{{MW version|version=1.6|comment=and after}}
MediaWiki version: | ≥ 1.6 |
{{MW 1.6|and after}}
MediaWiki version: | 1.32 | text here |
{{MW version|version=1.32|comment=text here}}
MediaWiki version: | 1.33 Gerrit change 12345 |
{{MW version|version=1.33|gerrit change=12345}}
MediaWiki version: | 1.33 r123 |
{{MW version|version=1.33|r=123}}
See also
Maintenance: list1