「テンプレート:MW version/en」の版間の差分
細 (1版) |
細 (1版 をインポートしました) |
||
(他の1人の利用者による、間の1版が非表示) | |||
5行目: | 5行目: | ||
|msg-mw-version=MediaWiki version{{#if:{{{version2|}}}|s}}: | |msg-mw-version=MediaWiki version{{#if:{{{version2|}}}|s}}: | ||
|msg-latest-tooltip=The latest stable version is {{MW stable branch number}} | |msg-latest-tooltip=The latest stable version is {{MW stable branch number}} | ||
− | |||
|version={{{version|}}} | |version={{{version|}}} | ||
|version2={{{version2|}}} | |version2={{{version2|}}} | ||
13行目: | 12行目: | ||
|compact={{{compact|}}} | |compact={{{compact|}}} | ||
}}<noinclude> | }}<noinclude> | ||
− | {{TNT| | + | {{ {{TNTN|Documentation}} |content= |
+ | == 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. | ||
+ | |||
+ | {{ {{TNTN|Template only works on internationalized page}} }} | ||
+ | |||
+ | == Usage == | ||
+ | <nowiki>{{</nowiki>MW version{{!}}version= [{{!}}version2=] [{{!}}comment=] [{{!}}gerrit=] <nowiki>}}</nowiki> | ||
+ | |||
+ | <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 <code>and before</code> or <code>and after</code>, 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 <code>and before</code> lub <code>and after</code>, 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> | ||
+ | |||
+ | == Example == | ||
+ | <!-- version --> | ||
+ | {{clear}} | ||
+ | {{ {{TNTN|MW version}} |version={{#expr: {{MW stable branch number}} + 0.01}} }} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{#expr: {{MW stable branch number}} + 0.01}}<nowiki>}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | {{ {{TNTN|MW version}} |version={{MW stable branch number}}}} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{MW stable branch number}}<nowiki>}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | {{ {{TNTN|MW version}} |version={{MW legacy branch number}}}} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{MW legacy branch number}}<nowiki>}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | {{ {{TNTN|MW version}} |version={{MW ancient branch number}}}} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{MW ancient branch number}}<nowiki>}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | <!-- version2 --> | ||
+ | {{ {{TNTN|MW version}} |version={{MW legacy branch number}}|version2={{MW stable branch number}}}} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{MW legacy branch number}}<nowiki>|version2=</nowiki>{{MW stable branch number}}<nowiki>}}</nowiki></code> | ||
+ | <!-- comment --> | ||
+ | {{clear}} | ||
+ | {{ {{TNTN|MW version}} |version={{MW legacy branch number}}|comment=and before}} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{MW legacy branch number}}<nowiki>|comment=and before}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | {{ {{TNTN|MW version}} |version={{MW ancient branch number}}|comment=and after}} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{MW ancient branch number}}<nowiki>|comment=and after}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | {{MW {{MW ancient branch number}}|and after}} | ||
+ | <code><nowiki>{{MW </nowiki>{{MW ancient branch number}}<nowiki>|and after}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | {{ {{TNTN|MW version}} |version={{MW legacy branch number}}|comment=text here}} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{MW legacy branch number}}<nowiki>|comment=text here}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | <!-- gerrit change --> | ||
+ | {{ {{TNTN|MW version}} |version={{MW stable branch number}}|gerrit change=12345}} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{MW stable branch number}}<nowiki>|gerrit change=12345}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | <!-- rev --> | ||
+ | {{ {{TNTN|MW version}} |version={{MW stable branch number}}|r=123}} | ||
+ | <code><nowiki>{{TNT|MW version|version=</nowiki>{{MW stable branch number}}<nowiki>|r=123}}</nowiki></code> | ||
+ | {{clear}} | ||
+ | |||
+ | == See also == | ||
+ | * [[Template:MW version-inline]] | ||
+ | * [[Template:MW {{MW stable branch number}}]] | ||
+ | * [[Template:MW {{MW legacy branch number}}]], ... | ||
+ | }} | ||
<small>Maintenance: [[Special:WhatLinksHere/Template:MW version/list1|list1]]</small><!-- See [[Template:MW version/layout]] --> | <small>Maintenance: [[Special:WhatLinksHere/Template:MW version/list1|list1]]</small><!-- See [[Template:MW version/layout]] --> | ||
+ | |||
+ | [[Category:MediaWiki version information templates{{translation}}]] | ||
+ | [[Category:MediaWiki version templates{{translation}}|*]] | ||
</noinclude> | </noinclude> |
2016年7月24日 (日) 00:26時点における最新版
MediaWiki version: | X.X |
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.
テンプレート:Template only works on internationalized page
Usage
{{MW version|version= [|version2=] [|comment=] [|gerrit=] }}
This template shows the valid MediaWiki version for the paragraph. It appears on the right side of the window in a bordered text field.
引数 | 説明 | 型 | 状態 | |
---|---|---|---|---|
バージョン | version | 表示する MediaWiki のバージョン番号。
| string | 必須 |
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 "Version 2" parameter.
| string | 省略可能 |
Comment | comment | If set to
| string | 推奨 |
SVN revision ID | r | An SVN revision ID related to the section this template embedded in.
| string | 非推奨 |
Gerrit change | gerrit change | A Gerrit change number implementing the feature
| string | 省略可能 |
Compact | compact | If set, hides the "MediaWiki version:" string.
| boolean | 省略可能 |
Example
MediaWiki version: | 1.28 |
{{TNT|MW version|version=1.28}}
MediaWiki version: | 1.27 |
{{TNT|MW version|version=1.27}}
MediaWiki version: | 1.20 |
{{TNT|MW version|version=1.20}}
MediaWiki version: | 1.6 |
{{TNT|MW version|version=1.6}}
MediaWiki versions: | 1.20 – 1.27 |
{{TNT|MW version|version=1.20|version2=1.27}}
MediaWiki version: | ≤ 1.20 |
{{TNT|MW version|version=1.20|comment=and before}}
MediaWiki version: | ≥ 1.6 |
{{TNT|MW version|version=1.6|comment=and after}}
テンプレート:MW 1.6
{{MW 1.6|and after}}
MediaWiki version: | 1.20
|
text here |
{{TNT|MW version|version=1.20|comment=text here}}
MediaWiki version: | 1.27 Gerrit change 12345 |
{{TNT|MW version|version=1.27|gerrit change=12345}}
MediaWiki version: | 1.27 r123 |
{{TNT|MW version|version=1.27|r=123}}
See also
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |
Maintenance: list1