Template:Side box: Difference between revisions
From Absit Omen Lexicon
(Created page with "<table class="sidebox{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{{class|}}}" style="{{{style|}}}"> {{#if:{{{above|}}} | <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="...") |
mNo edit summary |
||
Line 6: | Line 6: | ||
<tr> | <tr> | ||
{{#switch:{{{image|}}} | {{#switch:{{{image|}}} | ||
|<!--BLANK-->|none= | |<!--BLANK-->|none=<td></td> | ||
|#default=<td class="sidebox-image">{{{image}}}</td> | |#default=<td class="sidebox-image">{{{image}}}</td> | ||
}} | }} | ||
<td class="sidebox-text plainlist" style="{{{textstyle|}}}">{{{text}}}</td> | <td class="sidebox-text plainlist" style="{{{textstyle|}}}">{{{text}}}</td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| <td class=" | | <td class="sidebox-imageright">{{{imageright}}}</td> | ||
}} | }} | ||
</tr> | </tr> |
Latest revision as of 06:26, 2 December 2015
{{{text}}} |
above content appears here, in a separate row above the main text area | ||
(image) | text content, the box's main content, appears here | (image right) |
below content appears here, in a separate row below the main text area |
This template is a meta-template that can be used to create nicely-styled floating content boxes (see example directly opposite).
Parameters
Parameter | Description |
---|---|
position | Set as |position=left to float the box on the lefthand rather than righthand side of the page.
|
class | CSS classes to apply to the box. |
style | CSS styles to apply to the box. |
abovestyle | CSS styles to apply to the "above" cell (see next parameter) only. |
above | Content to appear in a separate row above the main cell (and spanning the entire width of the box). |
image | A full image tag (or other content); if this is not present or set as |image=none , no image is displayed.
|
textstyle | CSS styles to apply to the text cells only. |
text | Text to display in the box. |
imageright | A full image tag (or other content) to display in a separate table cell on the box's righthand side. |
below | Content to appear in a separate row underneath the main cell (and spanning the entire width of the box). |
The above documentation is transcluded from Template:Side box/doc. (edit | history) |