Template:MWv/doc
From Bonkipedia
< Template:MWv
Revision as of 18:03, 12 November 2022 by ManfredoDo (talk | contribs) (1 revision imported: Template documentation pages)
![]() | This is a documentation subpage for Template:MWv. It contains usage information, categories and other content that is not part of the original Template 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.
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
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.
- gerrit change - (optional) A Gerrit change number implementing the feature.
Example
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.38</tvar> is stable version</translate>"> 1.38
<translate> MediaWiki version:</translate> |
{{MWv|1.38}}
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.37</tvar> is legacy version</translate>"> 1.37
<translate> MediaWiki version:</translate> |
{{MWv|1.37}}
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.15</tvar> is unsupported version</translate>"> 1.15
<translate> MediaWiki version:</translate> |
{{MWv|1.15}}
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.37</tvar> is legacy version</translate>"><translate> ≤</translate> 1.37
<translate> MediaWiki version:</translate> |
{{MWv|1.37|and before}}
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.38</tvar></translate>"><translate> ≥</translate> 1.37
<translate> MediaWiki version:</translate> |
{{MWv|1.37|and after}}
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.37</tvar> is legacy version</translate>"> 1.37
<translate> MediaWiki version:</translate> | text here |
{{MWv|1.37|text here}}
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.38</tvar> is stable version</translate>"> 1.38
r123<translate> MediaWiki version:</translate> |
{{MWv|1.38|r=123}}
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.38</tvar> is stable version</translate>"> 1.38
Gerrit change 123<translate> MediaWiki version:</translate> |
{{MWv|1.38|gerrit change=123}}
See also
- Template:MW 1.38, Template:MW 1.37, etc.