Template:Bmbox/core: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Davidgothberg
(Always use the "#default=" notation, or you get into trouble. See talk page.)
en.wikibooks>Davidgothberg
(Simplifying the imageright code.)
Line 45: Line 45:
   | <!-- No image. -->
   | <!-- No image. -->
   | <td class="mbox-imageright">{{#switch:{{{small|}}}
   | <td class="mbox-imageright">{{#switch:{{{small|}}}
     | left = <!-- Don't use the DIV -->
     | left = {{{imageright}}}
     | #default = <div style="width: 52px;">  
     | #default = <div style="width: 52px;"> {{{imageright}}} </div>
    }} {{{imageright}}} {{#switch:{{{small|}}}
    | left = <!-- Don't use the /DIV -->
    | #default = </div>  
     }}</td>
     }}</td>
   }}
   }}

Revision as of 06:05, 11 March 2009