Difference between revisions of "Template:Ambox/sandbox"
Jump to navigation
Jump to search
blackwiki>Davidgothberg (Last one worked very well! Back to current deployed ambox code.) |
blackwiki>Davidgothberg (Updating to use new CSS classes since they have been deployed for 30 days now. Fixing the empty "image=" parameter bug. And some other cleanup.) |
||
| Line 1: | Line 1: | ||
<table class="metadata plainlinks ambox | <table class="metadata plainlinks ambox | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| − | + | | speedy = ambox-speedy | |
| − | + | | delete <!-- delete = serious --> | |
| − | + | | serious = ambox-delete | |
| − | + | | content = ambox-content | |
| − | + | | style = ambox-style | |
| − | + | | move <!-- move = merge --> | |
| − | + | | merge = ambox-move | |
| − | + | | protection = ambox-protection | |
| − | + | | notice <!-- notice = default --> | |
| − | + | | #default = ambox-notice | |
}}" style="{{{style|}}}"> | }}" style="{{{style|}}}"> | ||
<tr> | <tr> | ||
<td class="ambox-image"> | <td class="ambox-image"> | ||
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
| − | + | | <!-- No image. Empty cell necessary for text cell to have 100% width --> | |
| − | + | | <div style="width:52px;"> | |
| − | | speedy = [[Image:Ambox speedy deletion.png|40x40px]] | + | {{#ifeq:{{{image|}}}|blank |
| − | + | | | |
| − | + | | {{#if:{{{image|}}} | |
| − | + | | {{{image}}} | |
| − | + | | {{#switch:{{{type|}}} | |
| − | + | | speedy = [[Image:Ambox speedy deletion.png|40x40px]] | |
| − | + | | delete | |
| − | + | | serious = [[Image:Ambox deletion.png|40x40px]] | |
| − | + | | content = [[Image:Ambox content.png|40x40px]] | |
| − | + | | style = [[Image:Ambox style.png|40x40px]] | |
| − | + | | move | |
| + | | merge = [[Image:Ambox move.png|40x40px]] | ||
| + | | protection = [[Image:Ambox protection.png|40x40px]] | ||
| + | | notice <!-- notice = default --> | ||
| + | | #default = [[Image:Ambox notice.png|40x40px]] | ||
| + | }} | ||
| + | }} | ||
}}</div> | }}</div> | ||
}}</td> | }}</td> | ||
| − | <td class="ambox-text" style="{{{textstyle|}}}">{{{text}}}</td> | + | <td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td> |
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| − | + | | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td> | |
}} | }} | ||
</tr> | </tr> | ||
</table> | </table> | ||