Template:MW version/doc: Difference between revisions
Jump to navigation
Jump to search
m 1 revision imported |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | <noinclude>{{Documentation subpage}}</noinclude> | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --><includeonly> | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --><includeonly> | ||
{{Navbar|Navbar/doc|plain=1|brackets=1|style=float: | {{Navbar|Navbar/doc|plain=1|brackets=1|style=float: left;}} | ||
</includeonly> | </includeonly> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"version2": { | "version2": { | ||
"label | "label": "Version 2", | ||
"description": "To display a range of versions (e.g. 1.20 - 1.25), enter the first version in the “version” parameter and the second version in the “version2” parameter.", | |||
"description | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
"version": { | "version": { | ||
"label | "label": "Version", | ||
"description": "The version number of MediaWiki to display.", | |||
"description | |||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
"comment": { | "comment": { | ||
"label | "label": "Comment", | ||
"description": "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.", | |||
"description | |||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"r": { | "r": { | ||
"label | "label": "SVN revision ID", | ||
"description": "An SVN revision ID related to the section this template embedded in.", | |||
"description | |||
"deprecated": "SVN was merged to Gerrit.", | "deprecated": "SVN was merged to Gerrit.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"compact": { | "compact": { | ||
"label | "label": "Compact", | ||
"description": "If set, hides the “MediaWiki version:” string.", | |||
"description | |||
"type": "boolean" | "type": "boolean" | ||
} | } | ||
}, | }, | ||
"description | "description": "This template shows the valid MediaWiki version for the paragraph. It appears on the right side of the window in a bordered text field.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"version", | "version", | ||
Line 100: | Line 41: | ||
"comment", | "comment", | ||
"r", | "r", | ||
"compact" | "compact" | ||
], | ], | ||
Line 109: | Line 49: | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:MediaWiki version information templates | [[Category:MediaWiki version information templates]] | ||
[[Category:MediaWiki version templates‎ | [[Category:MediaWiki version templates‎|*]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 03:03, 15 February 2022
This is a documentation subpage for Template:MW version. It contains usage information, categories and other content that is not part of the original Template page. |
This template shows the valid MediaWiki version for the paragraph. It appears on the right side of the window in a bordered text field.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Version | version | The version number of MediaWiki to display. | String | required |
Version 2 | version2 | To display a range of versions (e.g. 1.20 - 1.25), enter the first version in the “version” parameter and the second version in the “version2” parameter. | String | optional |
Comment | comment | 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. | String | suggested |
SVN revision ID | r | An SVN revision ID related to the section this template embedded in. | String | deprecated |
Compact | compact | If set, hides the “MediaWiki version:” string. | Boolean | optional |