Difference between revisions of "Template:Ambox"
Jump to navigation
Jump to search
m (1 revision) |
|||
(One intermediate revision by the same user not shown) | |||
Line 22: | Line 22: | ||
| <!-- 画像無しの場合の空白セル: テキスト用セルの幅を100%にするために必要 --> | | <!-- 画像無しの場合の空白セル: テキスト用セルの幅を100%にするために必要 --> | ||
| <div class="ambox-imagecontainer">{{#if:{{{image-file|}}} | | <div class="ambox-imagecontainer">{{#if:{{{image-file|}}} | ||
− | | [[ | + | | [[File:{{{image-file}}}|{{#if:{{{section|}}} |
|{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}} | |{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}} | ||
|{{#if:{{{image-size|}}}|{{{image-size}}}|40}} | |{{#if:{{{image-size|}}}|{{{image-size}}}|40}} | ||
Line 28: | Line 28: | ||
| {{#switch:{{{image|}}} | | {{#switch:{{{image|}}} | ||
| protection | speedy | delete | serious | content | style | merge | notice <!-- 既定画像用キーワード --> | | protection | speedy | delete | serious | content | style | merge | notice <!-- 既定画像用キーワード --> | ||
− | | <!-- 空白または未定義 --> = [[ | + | | <!-- 空白または未定義 --> = [[File:{{#switch:{{#if:{{{image|}}}|{{{image}}}|{{{type|}}}}} |
| speedy = Ambox speedy deletion.png | | speedy = Ambox speedy deletion.png | ||
| delete | | delete | ||
| serious = Ambox deletion.png | | serious = Ambox deletion.png | ||
| content = Ambox content.png | | content = Ambox content.png | ||
− | | style = | + | | style = Ambox_style.png |
| merge = Ambox move.png | | merge = Ambox move.png | ||
| protection = Ambox protection.png | | protection = Ambox protection.png | ||
Line 42: | Line 42: | ||
|{{#if:{{{image-size|}}}|{{{image-size}}}|40}} | |{{#if:{{{image-size|}}}|{{{image-size}}}|40}} | ||
}}px]] | }}px]] | ||
− | | blank = [[ | + | | blank = [[File:No image.svg]] |
| #default = {{{image}}} | | #default = {{{image}}} | ||
}} | }} | ||
Line 50: | Line 50: | ||
{{#if:{{{imageright|}}}{{{imageright-file|}}}| | {{#if:{{{imageright|}}}{{{imageright-file|}}}| | ||
<td class="ambox-imageright"><div class="ambox-imagecontainer"> {{#if:{{{imageright-file|}}} | <td class="ambox-imageright"><div class="ambox-imagecontainer"> {{#if:{{{imageright-file|}}} | ||
− | | [[ | + | | [[File:{{{imageright-file}}}|{{#if:{{{section|}}} |
|{{#if:{{{imageright-size-section|}}}|{{{imageright-size-section}}}|{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}}}} | |{{#if:{{{imageright-size-section|}}}|{{{imageright-size-section}}}|{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}}}} | ||
|{{#if:{{{imageright-size|}}}|{{{imageright-size}}}|{{#if:{{{image-size|}}}|{{{image-size}}}|40}}}} | |{{#if:{{{imageright-size|}}}|{{{imageright-size}}}|{{#if:{{{image-size|}}}|{{{image-size}}}|40}}}} |