Template:MW version/doc
From MediaWiki.org
| This is a documentation subpage for Template:MW version (see that page for the template itself). It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
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 beforeorand 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.19 | 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]
- Template:MW 1.20, Template:MW 1.19, etc.