「テンプレート:User time zone/doc」の版間の差分
細 (1版) |
|
(相違点なし)
| |
2014年4月2日 (水) 05:01時点における最新版
{{
#ifeq: doc | doc |
{{
#ifeq: show | show
| {{#ifeq:|yes
|
{{#ifeq:{{#if: | {{{smallimage}}} | }}|none | | }}{{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none
|| }} | {{#if:{{#if: | {{{smallimageright-file}}} | }}| }} }}
{{#if:{{#if: | {{{smallimage-file}}} | Edit-copy green.svg }}
| [[File:{{#if: | {{{smallimage-file}}} | Edit-copy green.svg }}|{{#if: | | 30x30 }}px]]
| {{#if:{{#if: | {{{smallimage}}} | }}
| {{#if: | {{{smallimage}}} | }}
| [[File:{{#switch:notice
| speedy = Imbox speedy deletion.png
| delete = Imbox deletion.png
| content = Imbox content.png
| style = Imbox style.png
| move = Imbox move.png
| protection = Imbox protection.png
| notice
| #default = Imbox notice.png
}} | {{#if: | | 30x30 }}px ]]
}}
}} | {{#if:{{#if: | | これはテンプレート:User time zoneの解説サブページです。 使用方法、カテゴリ、およびその他テンプレート自体に含まれない情報を収容しています。 }}| {{#if: | | これはテンプレート:User time zoneの解説サブページです。 使用方法、カテゴリ、およびその他テンプレート自体に含まれない情報を収容しています。 }} }} |
{{#if:{{#if: | {{{smallimageright-file}}} | }}
| [[画像:{{#if: | {{{smallimageright-file}}} | }}|{{#if:
|
| 30x30
}}px]]
| {{#if: | {{{smallimageright}}} | }}
}} | [[画像:{{#if: | {{{smallimageright-file}}} | }}|{{#if:
|
| 30x30
}}px]] |
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}
|
{{#ifeq:|none | | }}{{#if: | {{#ifeq:|none
|| }} | {{#if:| }}
}}
{{#if:Edit-copy green.svg
|
}} | {{#if:これはテンプレート:User time zoneの解説サブページです。 使用方法、カテゴリ、およびその他テンプレート自体に含まれない情報を収容しています。| これはテンプレート:User time zoneの解説サブページです。 使用方法、カテゴリ、およびその他テンプレート自体に含まれない情報を収容しています。 }} |
{{#if:
| [[画像:|{{#if: | | 40x40 }}px]]
|
}} | [[画像:|{{#if: | | 40x40 }}px]] |
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}} }}
| }} |
}}{{
#ifeq: doc | doc
| {{
#ifeq: テンプレート | テンプレート
|
}}
}} このテンプレートは利用者の居住地域における標準時を表記するものです。
使い方[編集]
日本標準時を表す場合の例を以下に示します。
テンプレートを埋め込みたい場所に以下のように記述します。
{{User time zone|+9|[[日本標準時]]}}
すると以下のように表示されます。
| この利用者の標準時は{{#if:日本標準時|日本標準時 (UTC+9) |UTC+9}}です。 |
{{#if:|{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch: {{#if:|no}}
| no =
テンプレート:Basepage subpage
| only =
テンプレート:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | テンプレート:User time zone/doc }}|0|2}}
|
|
}}
}}
}}
}}
}}
| hide =
| #default =
{{#ifeq: h0#384!5nea+w9 | {{#if:|[[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}}
|
{{#switch:
{{#if:
| {{{demospace}}}
| {{#switch:テンプレート
| = main
|テンプレート・トーク = talk
|利用者 = user
|itchan wiki = wikipedia
|ファイル = file
|mediawiki = mediawiki
|テンプレート = template
|ヘルプ = help
|カテゴリ = category
| = portal
| #default = テンプレート
}}
}}
| main = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | other | #default =
}}
|
{{#iferror: {{#expr: 1 + {{#switch:
{{#if:
| {{{demospace}}}
| {{#switch:テンプレート
| = main
|テンプレート・トーク = talk
|利用者 = user
|itchan wiki = wikipedia
|ファイル = file
|mediawiki = mediawiki
|テンプレート = template
|ヘルプ = help
|カテゴリ = category
| = portal
| #default = テンプレート
}}
}}
| main = | talk = | user = {{#if:|[[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | template = {{#if:|[[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} }} | {{#switch:
{{#if:
| {{{demospace}}}
| {{#switch:テンプレート
| = main
|テンプレート・トーク = talk
|利用者 = user
|itchan wiki = wikipedia
|ファイル = file
|mediawiki = mediawiki
|テンプレート = template
|ヘルプ = help
|カテゴリ = category
| = portal
| #default = テンプレート
}}
}}
| main = | talk = | user = {{#if:|[[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | template = {{#if:|[[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} | }}
}} }}
}}}}
| 入力例 | 出力 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{User time zone|+9}}
|
{{#ifeq: | true
|
dontcat
}}{{#ifeq: | no
|
dontcat
}}{{#switch: ¬
|
yes | ¬ = | #default = dontcat
}}{{#switch: {{#if:|no}}
|
no =
テンプレート:Basepage subpage |
only =
テンプレート:Basepage subpage }} |
{{#switch:
{{#ifeq: | false
|
yes | yes | {{#if:x |
{{#if:{{#titleparts:{{#if:| | テンプレート:User time zone/doc }}|0|2}}
|
|
}} }} }}
}}
}}
|
hide = | #default =
{{#ifeq: h0#384!5nea+w9 | {{#if:|[[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}}
|
{{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | other | #default =
}} |
{{#iferror: {{#expr: 1 + {{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | [[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | [[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} }} |
{{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | [[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | [[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} |
}} }} }} }}}} | ||||||
{{User time zone|+9|[[日本標準時]]}}
|
{{#ifeq: | true
|
dontcat
}}{{#ifeq: | no
|
dontcat
}}{{#switch: ¬
|
yes | ¬ = | #default = dontcat
}}{{#switch: {{#if:|no}}
|
no =
テンプレート:Basepage subpage |
only =
テンプレート:Basepage subpage }} |
{{#switch:
{{#ifeq: | false
|
yes | yes | {{#if:x |
{{#if:{{#titleparts:{{#if:| | テンプレート:User time zone/doc }}|0|2}}
|
|
}} }} }}
}}
}}
|
hide = | #default =
{{#ifeq: h0#384!5nea+w9 | {{#if:|[[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}}
|
{{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | other | #default =
}} |
{{#iferror: {{#expr: 1 + {{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | [[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | [[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} }} |
{{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | [[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | [[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} |
}} }} }} }}}} | ||||||
{{User time zone|+0|[[西ヨーロッパ時間]]}}
|
{{#ifeq: | true
|
dontcat
}}{{#ifeq: | no
|
dontcat
}}{{#switch: ¬
|
yes | ¬ = | #default = dontcat
}}{{#switch: {{#if:|no}}
|
no =
テンプレート:Basepage subpage |
only =
テンプレート:Basepage subpage }} |
{{#switch:
{{#ifeq: | false
|
yes | yes | {{#if:x |
{{#if:{{#titleparts:{{#if:| | テンプレート:User time zone/doc }}|0|2}}
|
|
}} }} }}
}}
}}
|
hide = | #default =
{{#ifeq: h0#384!5nea+w9 | {{#if:|[[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}}
|
{{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | other | #default =
}} |
{{#iferror: {{#expr: 1 + {{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | [[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | [[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} }} |
{{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | [[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | [[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} |
}} }} }} }}}} | ||||||
{{User time zone|-5|[[東部標準時|アメリカ東部標準時]]}}
|
{{#ifeq: | true
|
dontcat
}}{{#ifeq: | no
|
dontcat
}}{{#switch: ¬
|
yes | ¬ = | #default = dontcat
}}{{#switch: {{#if:|no}}
|
no =
テンプレート:Basepage subpage |
only =
テンプレート:Basepage subpage }} |
{{#switch:
{{#ifeq: | false
|
yes | yes | {{#if:x |
{{#if:{{#titleparts:{{#if:| | テンプレート:User time zone/doc }}|0|2}}
|
|
}} }} }}
}}
}}
|
hide = | #default =
{{#ifeq: h0#384!5nea+w9 | {{#if:|[[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}}
|
{{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | other | #default =
}} |
{{#iferror: {{#expr: 1 + {{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | [[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | [[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} }} |
{{#switch:
{{#if:
|
{{{demospace}}} | {{#switch:テンプレート | = main | テンプレート・トーク = talk | 利用者 = user | itchan wiki = wikipedia | ファイル = file | mediawiki = mediawiki | テンプレート = template | ヘルプ = help | カテゴリ = category | = portal | #default = テンプレート
}} }} |
main = | talk = | [[Category:{{{usercategory}}}]]}}{{#if:|[[Category:{{{usercategory2}}}]]}}{{#if:|[[Category:{{{usercategory3}}}]]}} | wikipedia = | file | image = | mediawiki = | [[Category:{{{usercategory}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory2}}}| User time zone]]}}{{#if:|[[Category:{{{usercategory3}}}| User time zone]]}} | help = | category = | portal = | other | #default =
}} |
}} }} }} }}}} |
引数[編集]
このテンプレートには2つの引数が用意されています。
| 引数 | 指定内容 | 既定値 | 説明 |
|---|---|---|---|
| 1 | 時間帯 | +0
|
その地域の時間帯における、協定世界時からの時差を記入します。 |
| 2 | 標準時 | その地域の標準時を表します。 |
- 時間帯は、
-12~+14までの範囲で+または-を頭につけた数字を記入してください。Category:標準時からUTCを除いた形となります
カテゴリ[編集]
このテンプレートは、貼り付けられたページに次のカテゴリを適用します:
UTC{{{1}}}のウィキペディアン
関連項目[編集]