匿名利用者
「テンプレート:Ambox/core」の版間の差分
松下和弘 (会話) による ID:33024693 の版を取り消し なぜここに記事が?
*>松下和弘 編集の要約なし |
*>Kyube |
||
1行目: | 1行目: | ||
<table class="<!-- metadata -->plainlinks ambox {{#switch:{{{small|}}} | |||
| left = mbox-small-left | |||
| section = ambox-section | |||
}} {{#switch:{{{type|}}} | |||
| speedy = ambox-speedy | |||
| serious <!-- This value is **deprecated**, please don't use it! --> | |||
| delete = ambox-delete | |||
| content = ambox-content | |||
| style = ambox-style | |||
| merge <!-- This value is **deprecated**, please don't use it! --> | |||
| move = ambox-move | |||
| protection = ambox-protection | |||
| notice <!-- notice = default --> | |||
| #default = ambox-notice | |||
}} {{#if:{{{printable|}}} <!-- 印刷フラグ:指定すると印刷時にも表示 --> | |||
| | |||
| noprint <!-- 規定値は印刷時非表示 --> | |||
}}" style="{{{style|}}}" | |||
}}> | |||
<tr> | |||
{{#switch:{{{image|}}} | |||
| blank <!-- Fall back to "none", since deprecated. --> | |||
| none = <td class="mbox-empty-cell"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> | |||
| #default = | |||
<td class="mbox-image">{{ | |||
#switch:{{{small|}}} | |||
| left = <!-- Don't use the DIV --> | |||
| #default = <div class="ambox-imagecontainer"> | |||
}} | |||
{{#if:{{{image-file|}}} | |||
| [[Image:{{{image-file}}}|{{{image-size}}}px]] | |||
| {{#if:{{{image|}}} | |||
| {{{image}}} | |||
| [[Image:{{#switch:{{{type|}}} | |||
| speedy = Ambox speedy deletion.png | |||
| serious <!-- This value is **deprecated**, please don't use it! --> | |||
| delete = Ambox deletion.png | |||
| content = Ambox content.png | |||
| style = Edit-clear.svg | |||
| merge <!-- This value is **deprecated**, please don't use it! --> | |||
| move = Ambox move.png | |||
| protection = Ambox protection.png | |||
| notice <!-- notice = default --> | |||
| #default = Ambox notice.png | |||
}} | {{{image-size}}}px]] | |||
}} | |||
}}{{#switch:{{{small|}}} | |||
| left = <!-- Don't use the /DIV --> | |||
| #default = </div> | |||
}}</td> | |||
}} | |||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | |||
{{#if:{{{imageright|}}}{{{imageright-file|}}} | |||
| {{#ifeq:{{{imageright|}}}|none | |||
| <!-- No image. --> | |||
| <td class="mbox-imageright">{{#switch:{{{small|}}} | |||
| left = {{#if:{{{imageright-file|}}} | |||
| [[Image:{{{imageright-file}}}|{{{imageright-size}}}px]] | |||
| {{{imageright}}} | |||
}} | |||
| #default = <div class="ambox-imagecontainer">{{#if:{{{imageright-file|}}} | |||
| [[Image:{{{imageright-file}}}|{{{imageright-size}}}px]] | |||
| {{{imageright}}} | |||
}}</div> | |||
}}</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 | |||
| 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 --> | |||
}}<!-- | |||
Detect and report usage of deprecated "image=blank": | |||
-->{{#switch:{{{image|}}} | |||
| blank = <!-- 現状ではカテゴライズされるのを防ぐためコメントアウト [[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]] --><!-- Sort on namespace --> | |||
}}<noinclude> | |||
{{documentation}} | |||
</noinclude> |