Template:MW version: Difference between revisions

From Campaigns
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
{{MW version/layout
{{MW version/layout
|msg-mw-version={{#if:{{{version2|}}}
|msg-mw-version={{#if:{{{version2|}}}
   |<translate><!--T:1--> MediaWiki versions:</translate>
   | MediaWiki versions:
   |<translate><!--T:9--> MediaWiki version:</translate>
   | MediaWiki version:
   }}
   }}
|msg-latest-tooltip=<translate nowrap><!--T:2--> The latest stable version is <tvar name=1>{{MW stable branch number}}</tvar></translate>
|msg-latest-tooltip= The latest stable version is {{MW stable branch number}}
|version={{{version|}}}
|version={{{version|}}}
|version2={{{version2|}}}
|version2={{{version2|}}}
Line 11: Line 11:
|compact={{{compact|}}}
|compact={{{compact|}}}
}}<noinclude>
}}<noinclude>
{{Documentation|content=== Purpose ==
{{Documentation|content=
== Purpose ==
This template shows the valid '''MediaWiki''' version for the paragraph.
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.
Line 20: Line 21:
{{MW version/doc}}
{{MW version/doc}}


<translate>
== Example ==
== Example == <!--T:7-->
</translate>
<!-- version -->
{{clear}}
{{clear}}
{{MW version|version={{#expr: {{MW stable branch number}} + 0.01}} }}
{{MW version|version={{#expr: {{MW stable branch number}} + 0.01}} }}
Line 58: Line 56:
{{clear}}
{{clear}}


<translate>
== See also ==
== See also == <!--T:8-->
</translate>
* {{tl|MW {{MW stable branch number}}}}
* {{tl|MW {{MW stable branch number}}}}
* {{tl|MW {{MW legacy branch number}}}}
* {{tl|MW {{MW legacy branch number}}}}
}}
}}


[[Category:MediaWiki version information templates{{#translation:}}]]
[[Category:MediaWiki version information templates]]
[[Category:MediaWiki version templates‎{{#translation:}}|*]]
[[Category:MediaWiki version templates‎|*]]
</noinclude>
</noinclude>

Latest revision as of 03:11, 15 February 2022

MediaWiki version:
X.X
Template documentation

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=] }}


[view · talk · edit]

This template shows the valid MediaWiki version for the paragraph. It appears on the right side of the window in a bordered text field.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Versionversion

The version number of MediaWiki to display.

Stringrequired
Version 2version2

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 “version2” parameter.

Stringoptional
Commentcomment

If set to “and before” or “and after”, places a less-than-or-equal (&le;) or greater-than-or-equal (&ge;) sign before the version number; otherwise adds the comment to the right of the version number box.

Stringsuggested
SVN revision IDr

An SVN revision ID related to the section this template embedded in.

Stringdeprecated
Compactcompact

If set, hides the “MediaWiki version:” string.

Booleanoptional

Example

MediaWiki version:
1.37
MediaWiki version:
1.36
MediaWiki version:
1.35
MediaWiki version:
1.15
MediaWiki versions:
1.35 – 1.36
MediaWiki version:
1.35
MediaWiki version:
1.15
MediaWiki version:
1.15
MediaWiki version:
1.35
text here
MediaWiki version:
1.36

See also