แม่แบบ:กล่อง
![]() | แม่แบบนี้ใช้ลูอา |
Usage
[แก้]{{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
[แก้]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.
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.
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst.
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.
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
---|---|---|---|---|
1 | 1 | The contents of the box
| ไม่ทราบชนิด | แนะนำ |
header | header | A heading for the box
| ไม่ทราบชนิด | แนะนำ |
align | align | The alignment of the box
| ไม่ทราบชนิด | แนะนำ |
box type | box type | The type of box (css display) (block,inline-block or inline)
| ไม่ทราบชนิด | ไม่บังคับ |
wide | wide | If set to yes the box will be wide
| ตรรกะ | ไม่บังคับ |
inline | inline | Set to yes for the box type to be inline
| ตรรกะ | ไม่บังคับ |
style | style | The style of the border
| ไม่ทราบชนิด | ไม่บังคับ |
padding | padding | The padding of the box
| ไม่ทราบชนิด | ไม่บังคับ |
top padding | top padding | The top padding of the box | ไม่ทราบชนิด | ไม่บังคับ |
bottom padding | bottom padding | Thebottom padding of the box | ไม่ทราบชนิด | ไม่บังคับ |
left padding | left padding | The left padding of the box | ไม่ทราบชนิด | ไม่บังคับ |
right padding | right padding | The right padding of the box | ไม่ทราบชนิด | ไม่บังคับ |
border color | border color | The color of the box border
| สตริง | ไม่บังคับ |
type | type | The type of box (black,white,transparent)
| ไม่ทราบชนิด | ไม่บังคับ |
border size | border size | The size of the border
| ไม่ทราบชนิด | ไม่บังคับ |
color | color background | The color of background
| ไม่ทราบชนิด | ไม่บังคับ |
text color | text color | The color of the text
| ไม่ทราบชนิด | ไม่บังคับ |
text align | text align | The alignment of the text (css text-align)
| ไม่ทราบชนิด | ไม่บังคับ |
spacing | spacing | The spacing of the letters | ไม่ทราบชนิด | ไม่บังคับ |
font | font | The font of the text | ไม่ทราบชนิด | ไม่บังคับ |
font size | font size text size | The size of the text | ไม่ทราบชนิด | ไม่บังคับ |
margin | margin | The size of the box's margin
| ไม่ทราบชนิด | ไม่บังคับ |
top margin | top margin | The size of the box's top margin | ไม่ทราบชนิด | ไม่บังคับ |
bottom margin | bottom margin | The size of the box's bottom margin | ไม่ทราบชนิด | ไม่บังคับ |
left margin | left margin | The size of the box's left margin | ไม่ทราบชนิด | ไม่บังคับ |
right margin | right margin | The size of the box's right margin | ไม่ทราบชนิด | ไม่บังคับ |
height | height | The height of the box
| ไม่ทราบชนิด | ไม่บังคับ |
width | width | The width of the box
| ไม่ทราบชนิด | ไม่บังคับ |
CSS | CSS | Any additional CSS to use | ไม่ทราบชนิด | ไม่บังคับ |
Tracking categories
[แก้]- หมวดหมู่:Pages using box with unknown parameters (0)
- หมวดหมู่:Pages using box-r with unknown parameters (0)
See also
[แก้]- {{Divbox}}
- {{sidebar box}}