Template:MW version

From Bonkipedia
Revision as of 18:03, 12 November 2022 by ManfredoDo (talk | contribs) (1 revision imported: Template documentation pages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>X.XX</tvar> is unknown version</translate>">
X.X
MediaWiki version:
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=] [|gerrit change=] }}


[<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

MW version

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

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
Gerrit changegerrit change

A Gerrit change number implementing the feature.

Stringoptional
Compactcompact

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

Booleanoptional

Example

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.39</tvar> is future version</translate>">
1.39
<translate> MediaWiki version:</translate>

{{MW version|version=1.39}}

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.38</tvar> is stable version</translate>">
1.38
<translate> MediaWiki version:</translate>

{{MW version|version=1.38}}

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.37</tvar> is legacy version</translate>">
1.37
<translate> MediaWiki version:</translate>

{{MW version|version=1.37}}

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.15</tvar> is unsupported version</translate>">
1.15
<translate> MediaWiki version:</translate>

{{MW version|version=1.15}}

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.38</tvar> is stable version</translate>">
1.37 – 1.38
<translate> MediaWiki versions:</translate>

{{MW version|version=1.37|version2=1.38}}

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.37</tvar> is legacy version</translate>">
<translate> ≤</translate> 1.37
<translate> MediaWiki version:</translate>

{{MW version|version=1.37|comment=and before}}

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.38</tvar></translate>">
<translate> ≥</translate> 1.15
<translate> MediaWiki version:</translate>

{{MW version|version=1.15|comment=and after}}

MediaWiki version:
<translate> ≥</translate> 1.15

{{MW 1.15|and after}}

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.37</tvar> is legacy version</translate>">
1.37
<translate> MediaWiki version:</translate> text here

{{MW version|version=1.37|comment=text here}}

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.38</tvar> is stable version</translate>">
1.38
Gerrit change 12345
<translate> MediaWiki version:</translate>

{{MW version|version=1.38|gerrit change=12345}}

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.38</tvar> is stable version</translate>">
1.38
r123
<translate> MediaWiki version:</translate>

{{MW version|version=1.38|r=123}}

See also