テンプレート:Notice/doc
{{
#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: | | これはテンプレート:Noticeの解説サブページです。 使用方法、カテゴリ、およびその他{{ #if: テンプレート |{{#switch:テンプレート | = | 利用者 = 利用者 | ITchan Wiki = ウィキペディア | ファイル = ファイル | MediaWiki = メディアウィキ | テンプレート = テンプレート | ヘルプ = ヘルプ | カテゴリ = カテゴリ | = ウィキポータル | = ウィキプロジェクト | モジュール = モジュール | #default = テンプレート }}ページ|記事}}自体に含まれない情報を収容しています。 }}| {{#if: | | これはテンプレート:Noticeの解説サブページです。 | = | 利用者 = 利用者 | ITchan Wiki = ウィキペディア | ファイル = ファイル | MediaWiki = メディアウィキ | テンプレート = テンプレート | ヘルプ = ヘルプ | カテゴリ = カテゴリ | = ウィキポータル | = ウィキプロジェクト | モジュール = モジュール | #default = テンプレート}}ページ|記事}}自体に含まれない情報を収容しています。 }} }} | {{#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: | | [[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: | | 40x40 }}px ]] }}}} | {{#if:これはテンプレート:Noticeの解説サブページです。 使用方法、カテゴリ、およびその他{{ #if: テンプレート |{{#switch:テンプレート | = | 利用者 = 利用者 | ITchan Wiki = ウィキペディア | ファイル = ファイル | MediaWiki = メディアウィキ | テンプレート = テンプレート | ヘルプ = ヘルプ | カテゴリ = カテゴリ | = ウィキポータル | = ウィキプロジェクト | モジュール = モジュール | #default = テンプレート }}ページ|記事}}自体に含まれない情報を収容しています。| これはテンプレート:Noticeの解説サブページです。 | = | 利用者 = 利用者 | ITchan Wiki = ウィキペディア | ファイル = ファイル | MediaWiki = メディアウィキ | テンプレート = テンプレート | ヘルプ = ヘルプ | カテゴリ = カテゴリ | = ウィキポータル | = ウィキプロジェクト | モジュール = モジュール | #default = テンプレート}}ページ|記事}}自体に含まれない情報を収容しています。 }} | {{#if:
| [[画像:|{{#if: | | 40x40 }}px]] |}} | [[画像:|{{#if: | | 40x40 }}px]] |
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}} }}
| }} |
}}{{
#ifeq: doc | doc | {{ #ifeq: テンプレート | テンプレート | }}
}}
汎用のお知らせテンプレートです。
Subst: は非推奨。
使い方
任意の場所に、以下のように入力します。
{{Notice|表示したい文字列}}
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:{{{style}}}
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
このように、簡単にお知らせテンプレートを設置することができます。Template:Mboxを使用しているため、このテンプレートを記事で呼び出せばTemplate:Amboxを使って表示されます。
複数のパラメータを設定して使うこともできます。
{{Notice|表示したい文字列|タイトル(題)|テンプレートスタイル}} {{Notice|表示したい文字列|style=テンプレートスタイル}} {{Notice|text=表示したい文字列|title=タイトル(題)|style=テンプレートスタイル}} {{Notice|text=表示したい文字列|header=ヘッダータイトル(題)|style=テンプレートスタイル}}
注意事項
このテンプレートを用いて、記事の編集と関係ないお知らせを提示することは推奨されていません。そのような記述は、ノートもしくは記事に直接記述して下さい。Wikipedia:記事に免責事項を載せないも参考に。
- 一例(来日岳にて)
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:{{{style}}}
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:アナログテレビ放送は予定通り、2011年7月24日で終了しました。|アナログテレビ放送は予定通り、2011年7月24日で終了しました。|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:アナログテレビ放送は予定通り、2011年7月24日で終了しました。|アナログテレビ放送は予定通り、2011年7月24日で終了しました。|文字列の例}}
}} }}
スタイル
「テンプレートスタイル」の部分には、announce, attention, fix, help, idea, important, propose, question, search, stop, warning
の値を設定することができます
- announce
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:announce
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- attention
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:attention
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- fix
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:fix
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- help
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:help
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- idea
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:idea
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- important
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:important
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- propose
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:propose
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- question
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:question
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- search
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:search
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- stop
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:stop
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
- warning
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:warning
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
小型化
小型化には2種類あります。記事の節に使いたい場合は、以下のように入力すると、節用のスタイルになります。全ての名前空間で利用可能です。
{{Notice|表示したい文字列|section=1}}
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:1|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:{{{style}}}
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}} }}
記事名前空間以外の名前空間では、以下の小型化も利用可能です。
{{Notice|表示したい文字列|small=yes}}
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:テンプレート| | main | other }} }}
| main = {{#switch:{{#if:|section}} | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }}{{#if: | {{{smallimageright-file}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = }} | section =
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }} | other | #default = {{
{{#switch: {{#if: | | {{#switch:テンプレート | = main |テンプレート・トーク = talk |利用者 = user |itchan wiki = wikipedia |ファイル = file |mediawiki = mediawiki |テンプレート = template |ヘルプ = help |カテゴリ = category | = portal | #default = テンプレート }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = notice | image = | image-file = {{#if:|{{{image}}}|{{#switch:{{{style}}}
| stop = Stop_hand_nuvola.svg | warning = Stop_x_nuvola.svg | question = Ambox question.svg | attention = Nuvola apps important.svg | important = Ambox_important.svg | search = Searchtool.svg | fix = Tools_nicu_buculei_01.svg | announce = Stock volume.svg | help = Gnome-help-openclipart.svg | idea = Dialog-information on.svg | news = Network-wireless.svg | propose = Nuvola apps edu languages.svg}}}}
| image-size = | imageright = | imageright-file = | imageright-size = | style = | textstyle =
| text = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
| small = yes | smallimage = | smallimage-file = | smallimage-size = | smallimageright = | smallimageright-file = | smallimageright-size = | smalltext = | section = | image-size-section =
| text-section = {{#if:|
}}{{#if:|{{{2}}}:}}{{#if:表示したい文字列|表示したい文字列|文字列の例}}
}}
}}
引数
引数 | 指定内容 | 既定値 | 説明 | |
---|---|---|---|---|
text | 1 | 任意の文字列 | なし | 表示する文章 |
title | 2 | 任意の文字列 | なし | 強調して表示する題 |
style | 3 | announce, attention, fix, help, idea, important, propose, question, search, stop, warning |
なし | 指定がなければnotice スタイル
|
header | 任意の文字列 | なし | ヘッダーにセンタリングした状態で強調して表示する題 | |
section | 任意の文字あるいは数値 | なし | 入力されていれば記事において節用のスタイルで表示 | |
small | yes あるいはno |
なし | ノート / Template / Wikipedia各名前空間で小型化表示 |