Template:MW version/doc
This is a documentation subpage for Template:MW version. It contains usage information, categories and other content that is not part of the original page. |
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=] [|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
orand 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.
- compact - (optional) if set, hides the "MediaWiki version:" string.
Example
MediaWiki version: | = 1.21 |
{{MW version|version=1.21}}
MediaWiki version: | = 1.21 |
{{MW version|version=1.21}}
MediaWiki version: | = 1.6 |
{{MW version|version=1.6}}
MediaWiki versions: | 1.21 – 1.21 |
{{MW version|version=1.21|version2=1.21}}
MediaWiki version: | ≤ 1.21 |
{{MW version|version=1.21|comment=and before}}
MediaWiki version: | ≥ 1.21 |
{{MW version|version=1.21|comment=and after}}
MediaWiki version: | = 1.21 |
| style="padding: .1em .3em;" | text here
{{MW version|version=1.21|comment=text here}}
MediaWiki version: | = 1.21 r123 |
{{MW version|version=1.21|r=123}}