Template:Ambox: Difference between revisions

m Added `small` variable
m Removed image if there is none when size is small
Line 1: Line 1:
<onlyinclude><table style="{{{style|}}}" class="darklinks ambox {{#if:{{{small|}}}|ambox-small}} {{#switch:{{{border|}}}
<onlyinclude><table style="{{{style|}}}" class="darklinks ambox {{#if: {{{small|}}}|ambox-small}} {{#switch:{{{border|}}}
   | orange      = ambox-orange
   | orange      = ambox-orange
   | yellow      = ambox-yellow
   | yellow      = ambox-yellow
Line 11: Line 11:
}}">
}}">
<tr>
<tr>
<td class="ambox-image">{{{image|[[File:InterdictMsgAlert.jpg|x80px]]}}}</td>
{{#if: !{{image|}}|{{#if: !{{{small|}}}||<td class="ambox-image">{{{image|[[File:InterdictMsgAlert.jpg|x80px]]}}}</td>}}}}
<td style="color: black; padding: 0.25em 0.5em;">{{{type|}}}
<td style="color: black; padding: 0.25em 0.5em;">{{{type|}}}
<div class="ambox-smalltext">
<div class="ambox-smalltext">
{{{info|}}}
{{{info|}}}
</div></td></tr></table><br></onlyinclude>
</div></td></tr></table><br></onlyinclude>
{{Ambox|small=True|type=text|info=text}}
{{documentation}}
{{documentation}}