Template:Div box/doc
Jump to navigation
Jump to search
Documentation
[purge]
- Description
- This template creates a
<div>
box using theaccent
class. - Options
-
- text = This is defaults the the first parameter and should contain the contents of the box.
- align = if sent to
center
it will center the box. It defaults to the second parameter. - padleft = change left side padding between box edge and text. It defaults to
0.5em
. - padright = change right side padding between box edge and text. It defaults to
0.5em
. - text-align = Will govern the alignment of
text
. Will default to whatalign
is set to or the second parameter. - width = set the width of the box. It defaults to 100% or the third parameter.
- corner = if set to
round
will round the corners of the box. It will default to the fourth parameter. - rad = set the radius of the corners, defaults to
10px
- image = will assign an image to the left side of the box.
Example.jpg
- iSize = will set the width of the image.
112px
- The color is set be the theme's
class="accent"
- Syntax
- Type
{{div_box}}
somewhere. - Sample output
{{div_box|foo}}
gives...
foo
{{div_box|foo|corner=round}}
gives...
foo
{{div_box|foo|center}}
gives...
foo
{{div_box|foo|center|80%}}
gives...
foo
{{div_box|foo|center|80%|round}}
gives...
foo
{{div_box
| text = foo
| align= center
| width = 80%
}}
gives...
foo
{{div_box
| text = foo
| align= center
| text-align = left
| width = 80%
| corner = round
| rad = 5px
}}
gives...
foo
{{div_box
| text = The design of the dress was understated,
but with bold accents.
One could accuse it of too much color blocking,
but in the current mood of the economy, this style might be
just what is needed for the season.
| padleft = 4em
| padright = 4em
| width = 150px
| corner = round
}}
gives...
The design of the dress was understated,
but with bold accents.
One could accuse it of too much color blocking,
but in the current mood of the economy, this style might be
just what is needed for the season.
{{div_box|
|image=Example.jpg
|iSize=112px
| align= center
| text = Rose are red
| padleft=0px
| width = 43%
}}
gives...
- See also
- {{Box}}
- {{Box4}}
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.