Difference between revisions of "Template:Side box"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
#REDIRECT [[Template:End]]
<table class="metadata plainlinks mbox-small" style="{{#ifeq:{{lc:{{{position|}}}}}|left|clear:left; float:left; margin:4px 1em 4px 0;}} border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}">
<tr>
{{#switch:{{{image|}}}
|<!--BLANK-->|none={{td}}
|#default=<td class="mbox-image">{{{image}}}</td>
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="mbox-imageright">{{{imageright}}}</td>
}}
</tr>
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
}}
</table><noinclude>
 
{{pp-template|small=yes}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 15:04, 3 February 2009

[edit] Template-info.svg Template documentation

This template is a meta-template that can be used to create nicely-styled floating content boxes.

Usage

  • |text= – the text to display in the box
  • |image= – a full image tag (or other content)
  • |imageright= – a full image tag (or other content) to display in a separate table cell on the right of the box
  • |position= – if set to left, floats the box on the left side of the page rather than the right
  • |style= – styles to apply to the box
  • |textstyle= – styles to apply to the text cells only
  • |below= – content to appear in a separate row underneath the main cell (and spanning the entire width of the box)

See also

eo:Ŝablono:Flanka kesto hsb:Předłoha:Bóčny kašćik