Difference between revisions of "Template:Ambox/sandbox"

From blackwiki
Jump to navigation Jump to search
blackwiki>Davidgothberg
(Last one has width problem for "image=none", weird. Adding missing ";".)
blackwiki>Davidgothberg
(Trying a 1px padding in the image cell for "image=none" to see if that solves the flow problem. Oddly enough identical code in {{Imbox/test1}} does not have the problem.)
Line 14: Line 14:
 
<tr>
 
<tr>
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
| <!-- No image. Empty cell necessary for text cell to have 100% width --><td style="border: none; padding: 0;"></td>
+
| <!-- No image. Empty cell necessary for text cell to have 100% width --><td style="border: none; padding: 1px;"></td>
| <td class="ambox-image"><div style="width:52px;">  
+
| <td class="ambox-image"><div style="width: 52px;">
 
   {{#ifeq:{{{image|}}}|blank
 
   {{#ifeq:{{{image|}}}|blank
 
   | &nbsp;
 
   | &nbsp;
Line 21: Line 21:
 
     | {{{image}}}
 
     | {{{image}}}
 
     | {{#switch:{{{type|}}}
 
     | {{#switch:{{{type|}}}
       | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]  
+
       | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
 
       | delete
 
       | delete
       | serious    = [[Image:Ambox deletion.png|40x40px]]  
+
       | serious    = [[Image:Ambox deletion.png|40x40px]]
 
       | content    = [[Image:Ambox content.png|40x40px]]
 
       | content    = [[Image:Ambox content.png|40x40px]]
 
       | style      = [[Image:Ambox style.png|40x40px]]
 
       | style      = [[Image:Ambox style.png|40x40px]]

Revision as of 04:32, 23 May 2008