Template:Bmbox: Difference between revisions
From BetaArchive Wiki
en.wikibooks>Davidgothberg (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.)) |
en.wikibooks>John Vandenberg m (+mk:Шаблон:Ambox) |
||
Line 1: | Line 1: | ||
<table class="metadata plainlinks ambox | <table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}} | ||
{{#switch:{{{type|}}} | | serious = ambox-serious | ||
| | | content = ambox-content | ||
| style = ambox-style | |||
| merge = ambox-merge | |||
| content | | notice = ambox-notice | ||
| style | | #default = ambox-notice | ||
}}"> | |||
| merge | |||
| | |||
| #default | |||
<tr> | <tr> | ||
{{#ifeq:{{{image | <td class="ambox-image"> | ||
| <!-- | {{#ifeq:{{{image}}}|none | ||
| | | <!-- no image cell; empty cell necessary for text cell to have 100% width --> | ||
| <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}} | |||
| serious = [[Image:Stop hand nuvola.svg|40px]] | |||
| content = [[Image:Emblem-important.svg|40px]] | |||
| style = [[Image:Broom icon.svg|40px]] | |||
| | | merge = [[Image:Merge-split-transwiki default.svg]] | ||
| notice = [[Image:Info non-talk.png|40px]] | |||
| blank = [[Image:No image.svg]] | |||
| #default = {{{image|[[Image:Info non-talk.png|40px]]}}} | |||
}}</div> | |||
}}</td> | |||
<td class="ambox-text">{{{text}}}</td> | |||
{{#if:{{{imageright|}}}| | |||
<td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td> | |||
}}</div></td> | |||
<td class="ambox-text | |||
{{#if:{{{imageright|}}} | |||
}} | }} | ||
</tr> | </tr> | ||
</table><noinclude> | </table> | ||
<noinclude> | |||
[[mk:Шаблон:Ambox]] | |||
</noinclude> | </noinclude> |
Revision as of 14:36, 15 July 2008
{{{text}}} |