Template:Ambox: Difference between revisions

Going a little simpler...
m (This should be fine.)
(Going a little simpler...)
Line 1: Line 1:
<table class="plainlinks ambox {{#ifeq:{{{type|}}}|delete|ambox-delete|}} {{{class|}}}" style="{{{style|}}}"><tr>
{| table class="plainlinks ambox"
  {{#if:{{{image|}}}
| class="{{#switch:{{{type}}}
    |<!-- Image cell --><td class="ambox-image {{#ifeq:{{{type|}}}|notice|ambox-notice|ambox-{{{type|}}}}}">[[File:{{{image}}}{{!}}{{{imagewidth|56px}}}{{!}}{{{imagealt|}}}]]</td>
| notice = notice
    |<!-- Blank cell if no image specified --><td class="ambox-empty-cell {{#ifeq:{{{type|}}}|notice|ambox-notice|ambox-{{{type|}}}}}"></td>
| style = style
  }}<td class="ambox-text">{{{contents}}}</td>
| content = content
  {{#if:{{{image2|}}}
| delete = delete
    | <td class="ambox-image2">[[File:{{{image2}}}{{!}}{{{image2width|56px}}}{{!}}{{{image2alt|}}}]]</td>
| default
  }}
}} {{#if:{{{image|}}}|image|}}" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{!}}56px]]|}}
</tr></table><noinclude>
| class="message" | '''{{{header}}}'''<br><span class="smalltext">{{{smalltext|}}}</span>
|}<noinclude>
{{Template doc}}
[[Category:Maintenance templates|Ambox]]
[[Category:Maintenance templates|Ambox]]
</noinclude>
</noinclude>