Template:Box/doc

From Portals of Phereon Wiki
This is a documentation subpage for Template:Box.
It contains usage information, categories and other content that is not part of the original template page.

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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Content1

Contents of the box

Contentrequired
Top margintop

no description

Default
0em
Unknownoptional
Right marginright

no description

Default
auto
Unknownoptional
Bottom marginbottom

no description

Default
1em
Unknownoptional
Left marginleft

no description

Default
auto
Unknownoptional
Box widthboxwidth

no description

Default
98%
Unknownoptional
Border radiusradius

no description

Default
0px
Unknownoptional
Border widthborderwidth

no description

Default
2px
Unknownoptional
Border styleborderstyle

no description

Default
solid
Unknownoptional
Border colorbordercolor

no description

Default
#448e43
Unknownoptional
Paddingpadding

no description

Default
4px
Unknownoptional
Top/bottom paddingpaddingtop

Overwrites the padding parameter

Unknownoptional
Left/right paddingpaddingleft

Overwrites the padding parameter

Unknownoptional
Background colorbackground

no description

Unknownoptional
Content widthcontentwidth

Width of the content, minus padding

Default
100%
Unknownoptional
Text alignmenttextalign

no description

Default
center
Unknownoptional
Line heightlineheight

no description

Unknownoptional