Template:MWv

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.

Short version of {{MW version }} (without "version2" parameter).

Usage

{{MWv|1=|2=|r=|gerrit change=}}

  • 1 (version) - the version number of MediaWiki.
  • 2 (comment) - (optional) if set to and before or and after, 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.
  • r - (optional) An SVN revision ID related to the section this template embedded in.
  • gerrit change - (optional) A Gerrit change number implementing the feature.

Example

MediaWiki version:
1.43

{{MWv|1.43}}

MediaWiki version:
1.42

{{MWv|1.42}}

MediaWiki version:
1.15

{{MWv|1.15}}

MediaWiki version:
1.42

{{MWv|1.42|and before}}

MediaWiki version:
1.42

{{MWv|1.42|and after}}

MediaWiki version:
1.42
text here

{{MWv|1.42|text here}}

MediaWiki version:
1.43
r123

{{MWv|1.43|r=123}}

MediaWiki version:
1.43
Gerrit change 123

{{MWv|1.43|gerrit change=123}}

[view · talk · edit]

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

MWv

Category:Templates using TemplateData

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
Version1

The version number of MediaWiki to display.

Stringrequired
Comment2

If set to “and before” or “and after”, 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.

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


See also

Category:Languages pages Category:MediaWiki version information templates Category:MediaWiki version templates#*
Category:Languages pages Category:MediaWiki version information templates Category:MediaWiki version templates Category:Pages using the JsonConfig extension Category:Templates using TemplateData