Box-r
This is a wrapper template. It calls another template, passing parameters and/or hardcoded values to that template. It aligns the box to the right by default. Keep that in mind when looking at the documentation.
This template uses Lua:
|
Usage
{{box|''Contents''}}
Parameter | Description | Default | CSS |
---|---|---|---|
The contents of the box (Highly Recommend) | |||
background=/|color=
|
The color of the background of the box | White | background-color |
align= | The alignment of the box (left, center, right) (Recommended) | left | float |
padding= | The inner padding of the border | 3px | padding |
style= | The style of the border | Solid | border-style |
border color= | The color of the border | Black | background-color |
border size= | The size of the border | 3px | border-width |
text align= | The alignment of the text (Recommended) | left | text-align |
spacing= | The spacing of the letters | letter-spacing | |
font= | The font of the box's text | font-family | |
font size= | The font size of the box's text | font-size | |
text color= | The color of the text | black | text-color |
margin= | The outer margin of the box (Only does horizontal when type isn't inline-block or block )
|
3px | margin |
box type= | The type of box (inline, inline-block, block) | inline-block | display |
height= | The height of the box | height | |
width= | The width of the box | (The width of the text) | width |
CSS= | Any Additional CSS you want to add
(make sure to add ; to end) |
Parameter | Description | Default | CSS |
---|---|---|---|
top margin= | The top outer margin of the box (Only does horizontal when type isn't inline-block or block )
|
3px | margin-top |
bottom margin= | The bottom outer margin of the box (Only does horizontal when type isn't inline-block or block )
|
3px | margin-bottom |
left margin= | The left outer margin of the box (Only does horizontal when type isn't inline-block or block )
|
3px | margin-left |
right margin= | The right outer margin of the box (Only does horizontal when type isn't inline-block or block )
|
3px | margin-right |
top padding= | The top inner padding of the border | 3px | padding-top |
bottom padding= | The bottom inner padding of the border | 3px | padding-bottom |
left padding= | The left inner padding of the border | 3px | padding-left |
right padding= | The right inner padding of the border | 3px | padding-right |
Examples
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.{{box|A|background=red|text color=white}} {{box|B|background=blue|text color=orange}} {{box|C|background=black|text color=white|margin=0px|height=1em|width=40px|border color=yellow}}
{{box|spacing=5px|height=50px|DOG}}
{{box|background=yellow|align=center|border size=10px|text align=center|The quick brown fox jumps over the lazy dog}}
Data
This template produces a variety of boxes from preset options and from CSS.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | The contents of the box
| Unknown | suggested |
Header | header | A heading for the box
| Unknown | suggested |
Align | align | The alignment of the box
| Unknown | suggested |
Box type | box type | The type of box (css display) (block,inline-block or inline)
| Unknown | optional |
Wide | wide | If set to yes the box will be wide
| Boolean | optional |
Inline | inline | Set to yes for the box type to be inline
| Boolean | optional |
Style | style | The style of the border
| Unknown | optional |
Padding | padding | The padding of the box
| Unknown | optional |
Top padding | top padding | The top padding of the box | Unknown | optional |
Bottom padding | bottom padding | Thebottom padding of the box | Unknown | optional |
Left padding | left padding | The left padding of the box | Unknown | optional |
Right padding | right padding | The right padding of the box | Unknown | optional |
Border color | border color | The color of the box border
| String | optional |
Type | type | The type of box (black,white,transparent)
| Unknown | optional |
Border size | border size | The size of the border
| Unknown | optional |
Color | color background | The color of background
| Unknown | optional |
Text color | text color | The color of the text
| Unknown | optional |
Text align | text align | The alignment of the text (css text-align)
| Unknown | optional |
Spacing | spacing | The spacing of the letters | Unknown | optional |
Font | font | The font of the text | Unknown | optional |
Font size | font size text size | The size of the text | Unknown | optional |
Margin | margin | The size of the box's margin
| Unknown | optional |
Top margin | top margin | The size of the box's top margin | Unknown | optional |
Bottom margin | bottom margin | The size of the box's bottom margin | Unknown | optional |
Left margin | left margin | The size of the box's left margin | Unknown | optional |
Right margin | right margin | The size of the box's right margin | Unknown | optional |
Height | height | The height of the box
| Unknown | optional |
Width | width | The width of the box
| Unknown | optional |
CSS | CSS | Any additional CSS to use | Unknown | optional |
Tracking categories
- Category:Pages using box with unknown parameters (0)
- Category:Pages using box-r with unknown parameters (1)
See also
- {{Divbox}}
- {{sidebar box}}