Help:MW version
<languages/> {{#switch:<translate></translate> | = Template:MW version/layout | #default =
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:MW version|noshift=1}}
}} {{ Template:TNTN |content= <translate>
Contents
Purpose
This template shows the valid MediaWiki version for the paragraph.</translate> <translate> It appears on the right side of the window in a bordered text field.
Usage
</translate>
{{MW version|version= [|version2=] [|comment=] [|gerrit=] }}
<templatedata>
{
"params": {
"version2": {
"label": {
"en": "Version 2",
"pl": "Wersja 2"
},
"description": {
"en": "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 \"Version 2\" parameter.",
"pl": "Aby wyświetlić zakres wersji (np. 1.20 - 1.25), wpisz pierwszą wersję do parametru \"Wersja\" i drugą wersję do parametru \"Wersja 2\"."
},
"type": "string"
},
"version": {
"label": {
"en": "Version",
"pl": "Wersja",
"ja": "バージョン"
},
"description": {
"en": "The version number of MediaWiki to display.",
"pl": "Wersja MediaWiki do wyświetlenia",
"ja": "表示する MediaWiki のバージョン番号。"
},
"type": "string",
"required": true
},
"comment": {
"label": {
"en": "Comment",
"pl": "Komentarz"
},
"description": {
"en": "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.",
"pl": "Jeżeli ustawione na and before
lub and after
, umieszcza znak \"mniejsze lub równe\" (≤) lub \"większe lub równe\" (≥) przed numerem wersji; w innym przypadku doda komentarz po prawej stronie."
},
"type": "string",
"suggested": true
},
"r": {
"label": {
"en": "SVN revision ID",
"pl": "Numer wersji SVN"
},
"description": {
"en": "An SVN revision ID related to the section this template embedded in.",
"pl": "Identyfikator wersji SVN powiązany z zawartością sekcji gdzie umieszczono szablon"
},
"deprecated": "Użyj w zamian Gerrit",
"type": "string"
},
"gerrit change": {
"label": {
"en": "Gerrit change",
"pl": "Zmiana w Gerrit"
},
"description": {
"en": "A Gerrit change number implementing the feature",
"pl": "Numer zmiany Gerrit implementujący te funkcję"
},
"type": "string"
},
"compact": {
"label": {
"en": "Compact",
"pl": "Kompaktowo"
},
"description": {
"en": "If set, hides the \"MediaWiki version:\" string.",
"pl": "Ukrywa napis \"Wersja MediaWiki:\"."
},
"type": "boolean"
}
},
"description": {
"en": "This template shows the valid MediaWiki version for the paragraph. It appears on the right side of the window in a bordered text field.",
"pl": "Ten szablon pokazuje odpowiednią wersję MediaWiki dla akapitu. Wyświetla się on po prawej stronie okna w postaci pola tekstowego z ramką."
},
"paramOrder": [
"version",
"version2",
"comment",
"r",
"gerrit change",
"compact"
],
"format": "inline"
}
</templatedata>
<translate>
Example
</translate>
Template:MW version
{{MW version|version={{#expr: Template:MW stable branch number + 0.01}}}}
Template:MW version
{{MW version|version=Template:MW stable branch number}}
Template:MW version
{{MW version|version=Template:MW legacy branch number}}
Template:MW version
{{MW version|version=Template:MW ancient branch number}}
Template:MW version
{{MW version|version=Template:MW legacy branch number|version2=Template:MW stable branch number}}
Template:MW version
{{MW version|version=Template:MW legacy branch number|comment=and before}}
Template:MW version
{{MW version|version=Template:MW ancient branch number|comment=and after}}
{{MW Template:MW ancient branch number|and after}}
{{MW Template:MW ancient branch number|and after}}
Template:MW version
{{MW version|version=Template:MW legacy branch number|comment=text here}}
Template:MW version
{{MW version|version=Template:MW stable branch number|gerrit change=12345}}
Template:MW version
{{MW version|version=Template:MW stable branch number|r=123}}
<translate>
See also
</translate>
- Template:MW version-inline
- [[Template:MW Template:MW stable branch number]]
- [[Template:MW Template:MW legacy branch number]], ...
}} Maintenance: list1
[[Category:MediaWiki version information templates{{#translation:}}]] [[Category:MediaWiki version templates{{#translation:}}|*]]