Difference between revisions of "Template:Ambox/core"

From Self-sufficiency
Jump to: navigation, search
(Simplifying the imageright code.)
(One test example got bad rightimage padding, reverting to previous version (03:43) for testing.)
Line 45: Line 45:
 
   | <!-- No image. -->
 
   | <!-- No image. -->
 
   | <td class="mbox-imageright">{{#switch:{{{small|}}}
 
   | <td class="mbox-imageright">{{#switch:{{{small|}}}
     | left = {{{imageright}}}
+
     | left = <!-- Don't use the DIV -->
     | #default = <div style="width: 52px;"> {{{imageright}}} </div>
+
     | #default = <div style="width: 52px;">  
 +
    }} {{{imageright}}} {{#switch:{{{small|}}}
 +
    | left = <!-- Don't use the /DIV -->
 +
    | #default = </div>  
 
     }}</td>
 
     }}</td>
 
   }}
 
   }}

Revision as of 06:12, 11 March 2009