Difference between revisions of "Template:MW version"
Joelmartin (talk | contribs) m (1 revision imported) |
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<languages/> | <languages/> | ||
− | </noinclude>{{#switch: | + | </noinclude>{{#switch:</translate> |
| = | | = | ||
{{MW version/layout | {{MW version/layout | ||
|lang={{lang code}} | |lang={{lang code}} | ||
− | |msg-mw-version= | + | |msg-mw-version=<!--T:1--> MediaWiki version{{<tvar|1>#if:{{{version2|}}}</>|s}}:</translate> |
− | |msg-latest-tooltip= | + | |msg-latest-tooltip=<!--T:2--> The latest stable version is <tvar|1>{{MW stable branch number}}</></translate> |
|version={{{version|}}} | |version={{{version|}}} | ||
|version2={{{version2|}}} | |version2={{{version2|}}} | ||
Line 18: | Line 18: | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation|content= | {{Documentation|content= | ||
− | + | ||
== Purpose == <!--T:3--> | == Purpose == <!--T:3--> | ||
<!--T:4--> | <!--T:4--> | ||
This template shows the valid '''MediaWiki''' version for the paragraph.</translate> | This template shows the valid '''MediaWiki''' version for the paragraph.</translate> | ||
− | + | ||
<!--T:5--> | <!--T:5--> | ||
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. | ||
Line 122: | Line 122: | ||
</templatedata> | </templatedata> | ||
− | + | ||
== Example == <!--T:7--> | == Example == <!--T:7--> | ||
</translate> | </translate> | ||
Line 165: | Line 165: | ||
{{clear}} | {{clear}} | ||
− | + | ||
== See also == <!--T:8--> | == See also == <!--T:8--> | ||
</translate> | </translate> |
Revision as of 03:57, 21 December 2019
MediaWiki version: | X.X |

Purpose
This template shows the valid MediaWiki version for the paragraph.</translate>
It appears on the right side of the window in a bordered text field.
Usage
</translate>
{{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
</translate>
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
</translate>
Maintenance: list1