Vorlage:Imbox: Unterschied zwischen den Versionen
Updating to the new ambox code.
imported>Davidgothberg (Fixed the /doc footer.) |
imported>Davidgothberg (Updating to the new ambox code.) |
||
Zeile 1: | Zeile 1: | ||
<table class="metadata plainlinks ambox | <table class="metadata plainlinks ambox | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| serious | | speedy = ambox-speedy <!-- Can be used from 19 May 2008 --> | ||
| content | | delete <!-- delete = serious --> | ||
| style | | serious = ambox-delete | ||
| merge | | content = ambox-content | ||
| notice | | style = ambox-style | ||
| #default = ambox-notice | | move <!-- move = merge --> | ||
| merge = ambox-merge <!-- We can't use ambox-move yet --> | |||
| protection = ambox-protection | |||
| notice = ambox-notice | |||
| #default = ambox-notice | |||
}}" style="border:4px solid #1e90ff; {{{style|}}}"> | }}" style="border:4px solid #1e90ff; {{{style|}}}"> | ||
<tr> | <tr> | ||
<td class="ambox-image"> | <td class="ambox-image"> | ||
{{#ifeq:{{{image}}}|none | {{#ifeq:{{{image|}}}|none | ||
| <!-- | | <!-- No image cell; empty cell necessary for text cell to have 100% width --> | ||
| <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}} | | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}} | ||
| serious | | speedy = [[Image:Ambox deletion.png|40x40px]] | ||
| content | | delete | ||
| style | | serious = [[Image:Ambox deletion.png|40x40px]] | ||
| merge | | content = [[Image:Ambox content.png|40x40px]] | ||
| notice | | style = [[Image:Broom icon.svg|40x40px]] | ||
| blank | | move | ||
| #default = {{{image|[[Image: | | merge = [[Image:Merge-split-transwiki default.svg|40x40px]] | ||
| protection = [[Image:Padlock-silver-medium.svg|40x40px]] | |||
| notice = [[Image:Ambox notice.png|40x40px]] | |||
| blank = [[Image:No image.svg|40x40px]] | |||
| #default = {{{image|[[Image:Ambox notice.png|40x40px]]}}} | |||
}}</div> | }}</div> | ||
}}</td> | }}</td> | ||
<td class="ambox-text">{{{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> | | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td> | ||
}} | }} | ||
</tr> | </tr> |