Template:Box/doc
From Portals of Phereon Wiki
Usage[]
{{box|Text}}
- Text (required)
text to display.
Optional named parameters (the values of which are all css style):
- top, right, bottom, left = margin settings; defaults are 0em,auto,1em,auto (respectively)
- boxwidth = width of the box; default is 98%
- radius = border radius; default is no radius
- bordercolor = border color; default is #6699CC
- borderwidth = width of the border line; default is 2px
- borderstyle = style of border line; default is solid
- background = background color; default is clear
- padding, paddingtop, paddingleft = padding between border and text; default is 4px
- textalign = alignment of text; default is center
- contentwidth = width of the text displayed; default is 100% of the box (minus any padding)
- lineheight = height of each line of text; default is about 1.5
Example[]
{{box|contentwidth=50px|boxwidth=200px|borderwidth=4px|paddingtop=0px|lineheight=1.2|radius=9px|bordercolor=hsl(0, 60%, 50%)|Hello World}}
Hello World
Creates a box around content
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content | 1 | Contents of the box | Content | required |
Top margin | top | no description
| Unknown | optional |
Right margin | right | no description
| Unknown | optional |
Bottom margin | bottom | no description
| Unknown | optional |
Left margin | left | no description
| Unknown | optional |
Box width | boxwidth | no description
| Unknown | optional |
Border radius | radius | no description
| Unknown | optional |
Border width | borderwidth | no description
| Unknown | optional |
Border style | borderstyle | no description
| Unknown | optional |
Border color | bordercolor | no description
| Unknown | optional |
Padding | padding | no description
| Unknown | optional |
Top/bottom padding | paddingtop | Overwrites the padding parameter | Unknown | optional |
Left/right padding | paddingleft | Overwrites the padding parameter | Unknown | optional |
Background color | background | no description | Unknown | optional |
Content width | contentwidth | Width of the content, minus padding
| Unknown | optional |
Text alignment | textalign | no description
| Unknown | optional |
Line height | lineheight | no description | Unknown | optional |