Template:Wikibox
| This template uses Lua: |
Basic usage
[edit source]{{Wikibox|Contents}} produces:
Parameters
[edit source]| Parameter | Description | Values |
|---|---|---|
| Template:Para | The type of box | black , white or transparent
|
| Template:Para | Uses span tags instead of div tags | yes |
| Template:Para | Set the box to be as wide as the page/table | yes
|
| Template:Para | Set the box to be inline | text text text yes text text text
|
| Template:Para | Adds an optional header | Header
Text |
| Template:Para | Add a shadow to the box | yes
|
| Parameter | Description | Default | CSS |
|---|---|---|---|
"content"
|
The contents of the box (Necessary) | ||
| opt1 Template:Para opt2 Template:Para |
The color of the background of the box | White | background-color |
| Template:Para | The alignment of the box (left, center, right) (Recommended) | left | float |
| Template:Para | The inner padding of the border | 3px | padding |
| Template:Para | The style of the border | Solid | border-style |
| Template:Para | The color of the border | Black | border-color |
| Template:Para | The size of the border | 3px | border-width |
| Template:Para | The alignment of the text (Recommended) | left | text-align |
| Template:Para | The spacing of the letters | letter-spacing | |
| Template:Para | The font of the box's text | font-family | |
| Template:Para | The font size of the box's text | font-size | |
| Template:Para | The color of the text | black | text-color |
| Template:Para | The outer margin of the box (Only does horizontal when type isn't inline-block or block)
|
3px | margin |
| Template:Para | The type of box (inline, inline-block, block) | inline-block | display |
| Template:Para | The height of the box | height | |
| Template:Para | The width of the box | (The width of the text) | width |
| Template:Para | Any Additional CSS you want to add
(make sure to add ; to end) |
| Parameter | Description | Default | CSS |
|---|---|---|---|
| Template:Para | The top outer margin of the box (Only does horizontal when type isn't inline-block or block)
|
3px | margin-top |
| Template:Para | The bottom outer margin of the box (Only does horizontal when type isn't inline-block or block)
|
3px | margin-bottom |
| Template:Para | The left outer margin of the box (Only does horizontal when type isn't inline-block or block)
|
3px | margin-left |
| Template:Para | The right outer margin of the box (Only does horizontal when type isn't inline-block or block)
|
3px | margin-right |
| Template:Para | The top inner padding of the border | 3px | padding-top |
| Template:Para | The bottom inner padding of the border | 3px | padding-bottom |
| Template:Para | The left inner padding of the border | 3px | padding-left |
| Template:Para | The right inner padding of the border | 3px | padding-right |
| Template:Para | Border radius | 0 | border-radius |
| Template:Para | The maximum height of the box | max-height | |
| Template:Para | The minimum height of the box | min-height | |
| Template:Para | The maximum width of the box | max-width | |
| Template:Para | The minimum width of the box | min-width |
Examples
[edit source]{{Wikibox|A|background=red|text color=white}}
{{Wikibox|B|background=blue|text color=orange}}
{{Wikibox|C|background=black|text color=white|margin=0px|height=1em|width=40px|border color=yellow}}
{{Wikibox|spacing=5px|height=50px|DOG}}
{{Wikibox|background=yellow|align=center|border size=10px|radius=20px|text align=center|The quick brown fox jumps over the lazy dog}}
TemplateData
[edit source]TemplateData for Wikibox
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 | The bottom 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 |
| radius | radius | Border corner radius
| Unknown | 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 |
| max-height | max-height | The maximum height of the box
| Unknown | optional |
| min-height | min-height | The minimum height of the box
| Unknown | optional |
| width | width | The width of the box
| Unknown | optional |
| max-width | max-width | The maximum width of the box | Unknown | optional |
| min-width | min-width | The minimum width of the box | Unknown | optional |
| CSS | CSS | Any additional CSS to use | Unknown | optional |