Template:Ambox: Difference between revisions

add classes
(restore css color schemes)
(add classes)
Line 1:
<table class="metadata plainlinks ambox {{#switch:{{{type|}}}
| delete speedy = ambox-deletespeedy
| serious delete = ambox-seriousdelete
| content serious = ambox-contentserious
| style content = ambox-stylecontent
| merge style = ambox-mergestyle
| notice merge = ambox-noticemerge
| #defaultmove = ambox-noticemove
|protection = ambox-protection
}}" style="{{{style|display:table}}};">
|notice = ambox-notice
|#default = ambox-notice
}} {{{class|}}}" style="{{{style|display:table}}};">
<tr>
{{#ifeqswitch:{{{image|}}}|none
<td class="mbox-image">
|blank
{{#ifeq:{{{image}}}|none
|none = <td class="mbox-imageempty-cell"></td>
| <!-- no image cell; empty cell necessary for text cell to have 100% width -->
|#default = |<td class="mbox-image"><div style="width:52px;"> {{#switchif:{{{image|{{{type|}}}}}}
|{{{image}}}
| delete = [[File:Achtung.svg|40px]]
| serious = [[File:Stop hand nuvola.svg{{#switch:{{{type|40px]]}}}
|speedy = Ambox speedy deletion.png
| content = [[File:Emblem-important.svg|40px]]
|delete = Ambox deletion.png
| style = [[File:Broom icon.svg|40px]]
|serious = Stop hand nuvola.svg
| merge = [[File:Merge-split-transwiki default.svg|40px]]
| notice content = [[File:InfoAmbox non-talkcontent.png|40px]]
| blank style = [[File:No imageEdit-clear.svg]]
| merge = [[File:Merge-split-transwiki default.svg|40px]]
| #default = {{{image|[[File:Info non-talk.png|40px]]}}}
|move = Ambox move.png
}}</div>
|protection = Ambox protection.png
}}</td>
|notice
|#default = Ambox notice.png
}}|40x40px|link=|alt=]]
}}</div></td>
}}
<td class="mbox-text" style="{{{textstyle|display:table-cell}}};">{{{text}}}{{#if:{{{lang|}}}|
<hr />
{{{{{lang|}}}}}}}</td>
{{#if:{{{imageright|}}}|
<td| class="mbox-imageright"><div style="width{{#ifeq:52px;"> {{{imageright|}}} </div></td>|none
| <!-- No image. --><td class="mbox-empty-cell"></td>
| <td class="mbox-imageright"><div style="width:52px;">{{{imageright}}}</div></td>
}}
}}
</tr>