Template:MWv

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki version: X.X
Template documentation

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.

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

Usage[edit]

{{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[edit]

MediaWiki version: 1.33

{{MWv|1.33}}

MediaWiki version: 1.32

{{MWv|1.32}}

MediaWiki version: 1.6

{{MWv|1.6}}

MediaWiki version: 1.32

{{MWv|1.32|and before}}

MediaWiki version: 1.32

{{MWv|1.32|and after}}

Template:MW version/list1

MediaWiki version: 1.32 text here

{{MWv|1.32|text here}}

MediaWiki version: 1.33
r123

{{MWv|1.33|r=123}}

MediaWiki version: 1.33
Gerrit change 123

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

See also[edit]

Other languages: English  • 日本語