Bruger:PHansen/Side box
Udseende
Vedrører forespørgsel
Wikipedia:Landsbybrønden#Flere musikeksempler i samme boks?
- This template is a meta-template that can be used to create nicely-styled floating content boxes.
- It is used to insert an empty, 1px wide, table cell into an HTML table or wikitable. It can be used whenever an empty cell is required to balance a table, for instance when hardcoding mbox templates.
- Kode
<table class="metadata mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{{class|}}}" style="border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}"> {{#if:{{{above|}}} | <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}{{{abovestyle|}}}"> {{{above}}}</td></tr> }} <tr> {{#switch:{{{image|}}} |<!--BLANK-->|none={{td}} |#default=<td class="mbox-image">{{{image}}}</td> }} <td class="mbox-text plainlist" 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>
{ {Documentation subpage}}
{ {high-risk| 370,000+ }}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template is a meta-template that can be used to create nicely-styled floating content boxes.
Usage
[redigér | rediger kildetekst]|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 toleft
, 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
[redigér | rediger kildetekst]{{mbox}}
{{{text}}} |
{ {Documentation}}