(Translated by https://www.hiragana.jp/)
「Template:Imbox」の版間の差分 - Wikipedia コンテンツにスキップ

「Template:Imbox」のはんあいだ差分さぶん

削除さくじょされた内容ないよう 追加ついかされた内容ないよう
修正しゅうせい
 
(8にん利用りようしゃによる、あいだの9はん表示ひょうじ)
1ぎょう: 1ぎょう:
{{#invoke:Message box|imbox}}<noinclude>{{Pp-template}}
<table class="plainlinks imbox
{{#switch:{{{type|}}}
| speedy = imbox-speedy
| delete = imbox-delete
| content = imbox-content
| style = imbox-style
| move = imbox-move
| protection = imbox-protection
| license = imbox-license
| featured = imbox-featured
| notice <!-- notice = default -->
| #default = imbox-notice
}}" style="{{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell" style="border: none; padding: 0px; width: 1px;"></td>
| <td class="mbox-image">
{{#if:{{{image|}}}
| {{{image}}}
| {{#switch:{{{type|}}}
| speedy = [[File:Imbox speedy deletion.png|40x40px]]
| delete = [[File:Imbox deletion.png|40x40px]]
| content = [[File:Imbox content.png|40x40px]]
| style = [[File:Imbox style.png|40x40px]]
| move = [[File:Imbox move.png|40x40px]]
| protection = [[File:Imbox protection.png|40x40px]]
| license = [[File:Imbox license.png|40x40px]]
| featured = [[File:Imbox featured.png|40x40px]]
| notice <!-- notice = default -->
| #default = [[File:Imbox notice.png|40x40px]]
}}
}}</td>
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="mbox-imageright"> {{{imageright}}} </td>
}}
</tr>
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
}}
</table><!-- Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
| <!-- No type fed, is also valid input -->
| speedy
| delete
| content
| style
| move
| protection
| license
| featured
| notice = <!-- Do nothing, valid "type" -->
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<!--

--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:ファイルメッセージボックス|{{PAGENAME}}]]}}}}</includeonly><!--

--><noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

2023ねん7がつ29にち (土) 18:07時点じてんにおける最新さいしんばん

メッセージボックス
メタテンプレート
テンプレート 対象たいしょう
{{Ambox}} 記事きじ
{{Cmbox}} カテゴリ
{{Imbox}} ファイル
{{Tmbox}} ノート
{{Fmbox}} フッタ / ヘッダ
{{Ombox}} その
{{Mbox}} 自動じどう判別はんべつ
{{Asbox}} 記事きじスタブ
{{Dmbox}} 曖昧あいまい回避かいひ

Imbox は画像がぞうメッセージボックス (Image Message BOX) ようメタテンプレートです。

外部がいぶリンクのアイコンは、CSS class plainlinksが指定していされているので表示ひょうじされません。表示ひょうじさせる場合ばあいは:Template:Imbox-noplainlinks

使つかかた

{{imbox
| type  = 
| image = 
| imageright = 
| style = 
| textstyle = 
| text  = 
| below = 
}}

タイプ

引数ひきすう

引数ひきすう一覧いちらん
引数ひきすう 指定してい内容ないよう 既定きてい 説明せつめい
type speedy / delete / content / style / notice /
move / protection / license / featured
image 画像がぞう
imageright 画像がぞう
style CSS
text style CSS
text テキスト
below テキスト または べつのimbox

カテゴリ

このテンプレートは、けられたページにつぎのカテゴリを適用てきようします:

カテゴリ ソートキー 説明せつめい
ファイルメッセージボックス テンプレートめいまたはデフォルトソート テンプレート名前なまえ空間くうかん有効ゆうこうになります。

使用しようれい

{{imbox | text = 文章ぶんしょうをここに}}
{{imbox
| type      = style
| image     = [[Image:Emblem-question-yellow.svg|40px]]
| style     = width: 400px; 
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = メッセージボックステキスト
}}

関連かんれん項目こうもく

  • {{ambox}} - 記事きじよう
  • {{tmbox}} - ノートページよう
  • {{cmbox}} - カテゴリよう
  • {{ombox}} - そののページよう
  • {{mbox}} - 名前なまえ空間くうかん自動じどう判定はんていして表示ひょうじ形式けいしきえるメッセージボックス
  • {{fmbox}} - ヘッダ/フッタよう
  • {{dmbox}} - 曖昧あいまい回避かいひよう
  • {{asbox}} - 記事きじスタブよう