Template:Ambox: Difference between revisions

hardcoded tiem
m (add CSS class "messagebox")
(hardcoded tiem)
Line 1:
<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #fbfbfb; border: 1px solid #c0c090;
<table style="{{{style|}}}" class="metadata plainlinks messagebox ambox {{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| serious = ambox-serious
| speedy = border: 2px solid #b22222; background: #fee;
| content = ambox-content
| delete = border: 2px solid #b22222;
| style = ambox-style
| content = border: 2px solid #f28500;
| merge = ambox-merge
| style = border: 2px solid #f4c430;
| notice = ambox-notice
| move = border: 2px solid #9932cc;
| #default = ambox-notice
| protection = border: 2px solid #bba;
}}">
| license = border: 2px solid #88a; background: #f7f8ff;
| featured = border: 2px solid #cba135;
| notice <!-- notice = default -->
| #default = border: 2px solid #1e90ff;
}} {{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
<td class="ambox-image">
| <!-- noNo image. cell;Cell emptywith cellsome width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
{{#ifeq:{{{image}}}|none
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
| <!-- no image cell; empty cell necessary for text cell to have 100% width -->
| <div style="width:52px;"> {{#switchif:{{{image|{{{type|}}}}}}
| {{{image}}}
| serious = [[Image:Stop hand nuvola.svg|40px]]
| {{#switch:{{{type|}}}
| content = [[Image:Emblem-important.svg|40px]]
| style speedy = [[Image:BroomAmbox speedy icondelete.svgpng|40px]]
| merge delete = [[Image:Merge-split-transwikiAmbox warning defaultpn.svg|40px]]
| notice content = [[Image:InfoAmbox non-talkContent.pngsvg|40px]]
| blankstyle = [[Image:NoAmbox imagewarning yellow.svg|40px]]
| #defaultmove = {{{image|[[Image:Info nonMerge-talksplit-transwiki default.pngsvg|40px]]}}}
| content protection = [[Image:Emblem-importantPadlock.svg|40px]]
}}</div>
| license = [[Image:Imbox license.png|40px]]
}}</td>
| featured = [[Image:Imbox featured.png|40px]]
<td class="ambox-text">{{{text}}}</td>
| notice = ambox <!-- notice = default -->
{{#if:{{{imageright|}}}|
| serious#default = [[Image:Stop handInformation nuvolaicon4.svg|40px]]
<td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
}}
}}</divtd>
}}
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
</tr>
{{#if:{{{imageright|}}}|
</table><noinclude>
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}">
</tr></table>
</table><noinclude>
{{template doc}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->