틀:Box
<div style="display:inline-block;border-style: solid;padding: 3px;border-color: black;border-width: 2px;background-color: white;color: black;margin: 3px;" >샘플 텍스트
| 이 틀은 루아를 사용합니다. |
사용법
[편집]{{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 |
|shadow= |
Add a shadow to the box | yes |
| Parameter | Description | Default | CSS |
|---|---|---|---|
"content" |
The contents of the box (Highly Recommend) | ||
opt1|background=opt2 |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 |
|radius= |
Border radius | 0 | border-radius |
Examples
[편집]{{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|radius=20px|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 | The bottom 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
| 문자열 | 선택 사항 |
| radius | radius | Border corner radius
| 알 수 없음 | 선택 사항 |
| 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 | 알 수 없음 | 선택 사항 |