Template:Bmbox: Difference between revisions

Content deleted Content added
Planned fixes: Using new CSS class names (deployed for 30 days now). Fixing the empty "image=" parameter bug and the padding for the image=none case. And some other cleanup. (Tested in sandbox.)
Line 1:
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
| serious = ambox-serious
{{#switch:{{{type|}}}
| speedy | content = ambox-speedycontent
| merge | style = ambox-movestyle
| delete <!-- delete = serious -->
| seriousmerge = ambox-deletemerge
| content | notice = ambox-contentnotice
| style | #default = ambox-stylenotice
}}">
| move <!-- move = merge -->
| merge = ambox-move
| protection = ambox-protection
| notice <!-- notice = default -->
| #default = ambox-notice
}}" style="{{{style|}}}">
<tr>
| <td class="ambox-image"><div style="width: 52px;">
{{#ifeq:{{{image|}}}|none
| <!-- Nono image. Cellcell; withempty some width or paddingcell necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <td class="ambox-image"><div style="width: 52px;">
| <div style="width:52px;"> {{#ifeqswitch:{{{image|{{{type|}}}|blank}}}
| serious = [[Image:Stop hand nuvola.svg|40px]]
| &nbsp;
| content = [[Image:Ambox contentEmblem-important.pngsvg|40x40px40px]]
| {{#if:{{{image|}}}
| style = [[Image:AmboxBroom styleicon.pngsvg|40x40px40px]]
| {{{image}}}
| merge = [[Image:AmboxMerge-split-transwiki movedefault.png|40x40pxsvg]]
| {{#switch:{{{type|}}}
| speedy notice = [[Image:Ambox speedyInfo deletionnon-talk.png|40x40px40px]]
| blank = [[Image:No image.svg]]
| delete
| serious #default = {{{image|[[Image:AmboxInfo deletionnon-talk.png|40x40px40px]]}}}
}}</div></td>
| content = [[Image:Ambox content.png|40x40px]]
}}</td>
| style = [[Image:Ambox style.png|40x40px]]
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
| move
| {{#if:{{{imageimageright|}}}|
| merge = [[Image:Ambox move.png|40x40px]]
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
| protection = [[Image:Ambox protection.png|40x40px]]
| notice <!-- notice = default -->
| #default = [[Image:Ambox notice.png|40x40px]]
}}
}}
}}</div></td>
}}
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
}}
</tr>
</table>
<noinclude>
[[mk:Шаблон:Ambox]]
 
{{pp-template|small=yes}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>