Difference between revisions of "Template:Ambox/sandbox"

From blackwiki
Jump to navigation Jump to search
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.)
blackwiki>Davidgothberg
(Fixing the padding for the image=none case.)
Line 13: Line 13:
 
}}" style="{{{style|}}}">
 
}}" style="{{{style|}}}">
 
<tr>
 
<tr>
<td class="ambox-image">
 
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
| <!-- No image. Empty cell necessary for text cell to have 100% width -->
+
| <!-- No image. Empty cell necessary for text cell to have 100% width --><td style="border: none; padding: 0"></td>
| <div style="width:52px;">  
+
| <td class="ambox-image"><div style="width:52px;">  
 
   {{#ifeq:{{{image|}}}|blank
 
   {{#ifeq:{{{image|}}}|blank
 
   | &nbsp;
 
   | &nbsp;
Line 34: Line 33:
 
       }}
 
       }}
 
     }}
 
     }}
   }}</div>
+
   }}</div></td>
}}</td>
+
}}
 
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}

Revision as of 03:46, 23 May 2008