Template:Ambox: Difference between revisions

1,722 bytes removed ,  3 years ago
m
3 revisions imported: importing from sister site
No edit summary
m (3 revisions imported: importing from sister site)
 
(33 intermediate revisions by 13 users not shown)
Line 1:
{{#invoke:Message box|ambox}}{{#ifeq:{{{small}}}|left|[[Category:Articles using small message boxes]]}}<noinclude>
<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #fbfbfb; border: 1px solid #c0c090;
{{documentation}}
{{#switch:{{{type|}}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
| speedy = border: 2px solid #b22222; background: #fee;
| delete = border: 2px solid #b22222;
| content = border: 2px solid #f28500;
| style = border: 2px solid #f4c430;
| merge = border: 2px solid #9932cc;
| protection = border: 2px solid #bba;
| license = border: 2px solid #88a; background: #f7f8ff;
| generic = border: 2px solid #AAA; background: #f9f9f9;
| featured = border: 2px solid #cba135;
| notice <!-- notice = default -->
| #default = border: 2px solid #1e90ff;
}} {{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
{{#if:{{{image|}}}
| {{{image}}}
| {{#switch:{{{type|}}}
| speedy = [[Image:Ambox speedy delete.png|40px]]
| delete = [[Image:Ambox warning pn.svg|40px]]
| content = [[Image:Ambox Content.svg|40px]]
| style = [[Image:Ambox warning yellow.svg|40px]]
| merge = [[Image:Merge-split-transwiki default.svg|40px]]
| protection = [[Image:Padlock.svg|40px]]
| license = [[Image:Imbox license.png|40px]]
| generic = [[Image:Imbox license.png|40px]]
| featured = [[Image:Imbox featured.png|40px]]
| notice <!-- notice = default -->
| #default = [[Image:Information icon4.svg|40px]]
}}
}}</td>
}}
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
</tr></table>
<noinclude>
{{template doc}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>