Template:Ambox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<table class="plainlinks ambox {{# | <table class="metadata plainlinks ambox {{#switch:{{{small|}}} | ||
| left = mbox-small-left | |||
}} " style="{{{style|}}}margin:0 10%;border:1px solid #AAAAAA;{{#switch:{{{type|}}} | |||
|<!-- | | danger = background:#FFAAAA;border-left:10px #B22222 solid; | ||
| warning = background:#FFDDDD;border-left:10px #B22222 solid; | |||
| caution = background:#FFFFAA;border-left:10px #F28500 solid; | |||
| approval = background:#DDFFDD;border-left:10px #00FF00 solid; | |||
| proposal = background:#E4D8FF;border-left:10px #9933CC solid; | |||
</tr></table | | detail = background:#FBFBFB;border-left:10px #F4C430 solid; | ||
| protection = background:#FBFBFB;border-left:10px #BBBBAA solid; | |||
| notice<!-- = default --> | |||
| #default = background:#FBFBFB;border-left:10px #1E90FF solid; | |||
{{ | }}{{#if:{{{stacked|}}}|border-top:-1px;}}"><tr> | ||
{{#switch:{{{image|}}} | |||
</noinclude> | | blank <!-- Fall back to "none", since deprecated. --> | ||
| none = | |||
<td class="mbox-empty-cell" style="width:1px;border:none;padding:0;"></td><!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> | |||
| #default = | |||
<td class="mbox-image" style="border:none;padding:2px 0 2px 0.9em;text-align:center;">{{#switch:{{{small|}}} | |||
| left = <!-- Don't use the DIV --> | |||
| #default = <div style="width:52px;"> | |||
}}{{#if:{{{image|}}} | |||
| {{{image}}} | |||
| [[Image:{{#switch:{{{type|}}} | |||
| danger = Stop.png{{!}}Danger | |||
| warning = Stophand.png{{!}}Warning | |||
| caution = Ambox important.svg{{!}}Caution | |||
| approval = Good.png{{!}}Approved | |||
| proposal = StopClock.png{{!}}Proposal | |||
| detail = Ambox style.png{{!}}Detail | |||
| protection = Full.png{{!}}Protection | |||
| notice<!-- = default --> | |||
| #default = Information.png{{!}}Information | |||
}}|{{#switch:{{{small|}}} | |||
| left = 20x20px | |||
| #default = 40x40px | |||
}}]] | |||
}}{{#switch:{{{small|}}} | |||
| left = <!-- Don't use the /DIV --> | |||
| #default = </div> | |||
}}</td> | |||
}} | |||
<td class="mbox-text" style="{{{textstyle|}}}width:100%;border:none;padding:0.25em 0.9em;text-align:center;">{{{text|}}}</td> | |||
{{#if:{{{imageright|}}} | |||
| {{#ifeq:{{{imageright|}}}|none | |||
| <!-- No image. --> | |||
| <td class="mbox-imageright" style="border:none;padding:2px 0.9em 2px 0;text-align:center;">{{#switch:{{{small|}}} | |||
| left = {{{imageright|}}} | |||
| #default = <div style="width:{{{imagerightwidth|52}}}px;">{{{imageright|}}}</div> | |||
}}</td> | |||
}} | |||
}} | |||
</tr></table><noinclude>{{Ambox/Documentation}}</noinclude> |