「Template:Imbox」の版 間 の差分
m →top: {{Pp-template}}, /docから |
|||
(8 | |||
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時点 における最新 版
このテンプレートは46,000 |
メッセージボックス メタテンプレート | |
---|---|
テンプレート |
|
{{Ambox}} |
|
{{Cmbox}} | カテゴリ |
{{Imbox}} | ファイル |
{{Tmbox}} | ノート |
{{Fmbox}} | フッタ / ヘッダ |
{{Ombox}} |
その |
{{Mbox}} |
|
{{Asbox}} |
|
{{Dmbox}} |
|
Luaモジュールを |
このテンプレートはファイル |
Imbox は
使 い方
{{imbox | type = | image = | imageright = | style = | textstyle = | text = | below = }}
タイプ
type=speedy |
type=delete |
type=content |
type=style |
type=notice |
type=move |
type=protection |
type=license |
type=featured |
引数
type | speedy / delete / content / style / notice / move / protection / license / featured |
||
---|---|---|---|
image | |||
imageright | |||
style | CSS |
||
text style | CSS |
||
text | テキスト | ||
below | テキスト または |
カテゴリ
このテンプレートは、
カテゴリ | ソートキー | |
---|---|---|
ファイルメッセージボックス | テンプレート |
テンプレート |
使用 例
{{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 = メッセージボックステキスト }}
メッセージボックステキスト |