Teamplaid:Box
Uses Lua: |
Usage
deasaich{{Box|''Contents''}}
Parameter | Description | Values |
---|---|---|
type= | The type of box | black , white or transparent
|
span= | Uses span tags instead of div tags | yes |
wide= | Set the box to be as wide as the page/table | yes
|
inline= | Set the box to be inline | text text text yes text text text
|
header= | Adds an optional header | Header
Text |
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
deasaich{{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
deasaichThis template produces a variety of boxes from preset options and from CSS.
Paramadair | Tuairisgeul | Seòrsa | Staid | |
---|---|---|---|---|
1 | 1 | The contents of the box
| Chan eil fhios | molta |
header | header | A heading for the box
| Chan eil fhios | molta |
align | align | The alignment of the box
| Chan eil fhios | molta |
box type | box type | The type of box (css display) (block,inline-block or inline)
| Chan eil fhios | roghainneil |
wide | wide | If set to yes the box will be wide
| Booleach | roghainneil |
inline | inline | Set to yes for the box type to be inline
| Booleach | roghainneil |
style | style | The style of the border
| Chan eil fhios | roghainneil |
padding | padding | The padding of the box
| Chan eil fhios | roghainneil |
top padding | top padding | The top padding of the box | Chan eil fhios | roghainneil |
bottom padding | bottom padding | Thebottom padding of the box | Chan eil fhios | roghainneil |
left padding | left padding | The left padding of the box | Chan eil fhios | roghainneil |
right padding | right padding | The right padding of the box | Chan eil fhios | roghainneil |
border color | border color | The color of the box border
| Sreang | roghainneil |
type | type | The type of box (black,white,transparent)
| Chan eil fhios | roghainneil |
border size | border size | The size of the border
| Chan eil fhios | roghainneil |
color | color background | The color of background
| Chan eil fhios | roghainneil |
text color | text color | The color of the text
| Chan eil fhios | roghainneil |
text align | text align | The alignment of the text (css text-align)
| Chan eil fhios | roghainneil |
spacing | spacing | The spacing of the letters | Chan eil fhios | roghainneil |
font | font | The font of the text | Chan eil fhios | roghainneil |
font size | font size text size | The size of the text | Chan eil fhios | roghainneil |
margin | margin | The size of the box's margin
| Chan eil fhios | roghainneil |
top margin | top margin | The size of the box's top margin | Chan eil fhios | roghainneil |
bottom margin | bottom margin | The size of the box's bottom margin | Chan eil fhios | roghainneil |
left margin | left margin | The size of the box's left margin | Chan eil fhios | roghainneil |
right margin | right margin | The size of the box's right margin | Chan eil fhios | roghainneil |
height | height | The height of the box
| Chan eil fhios | roghainneil |
width | width | The width of the box
| Chan eil fhios | roghainneil |
CSS | CSS | Any additional CSS to use | Chan eil fhios | roghainneil |
Tracking categories
deasaichSee also
deasaich- {{Divbox}}
- {{sidebar box}}
The above documentation is transcluded from Teamplaid:Box/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |