「テンプレート:MW version/en」の版間の差分

提供: ひつじ小屋別館2代目
移動先: 案内検索
(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|Documentation}}
+
{{ {{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 (&le;) or greater-than-or-equal (&ge;) 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
Documentation icon Template documentation

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.

テンプレート引数

This template prefers inline formatting of parameters.

引数説明状態
バージョンversion

表示する MediaWiki のバージョン番号。

既定
自動入力値
string必須
Version 2version2

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省略可能
Commentcomment

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推奨
SVN revision IDr

An SVN revision ID related to the section this template embedded in.

既定
自動入力値
string非推奨
Gerrit changegerrit change

A Gerrit change number implementing the feature

既定
自動入力値
string省略可能
Compactcompact

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

Template:MW version/list1

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

Maintenance: list1