Template:MW version/doc

From MediaWiki.org
Jump to: navigation, search

Template:MW version

Contents

Purpose [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.

Usage [edit]

{{MW version|version= [|version2=] [|comment=] [|r=] }}
  • version - the version number of MediaWiki.
  • version2 - if specifying a range of versions, the higher of the two versions.
  • 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.

Example [edit]

MediaWiki version: 1.20

{{MW version|version=1.20}}

MediaWiki version: 1.19

{{MW version|version=1.19}}

MediaWiki version: 1.6

{{MW version|version=1.6}}

MediaWiki versions: 1.19 – 1.20

{{MW version|version=1.19|version2=1.20}}

MediaWiki version: 1.19

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

MediaWiki version: 1.19

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

MediaWiki version: 1.19Template:MW version/list1 text here

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

MediaWiki version: 1.20
r123

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

See also [edit]