|
|
| (3 intermediate revisions by 2 users not shown) |
| Line 1: |
Line 1: |
| <div style='border:2px {{{3|dotted}}} {{{1|#5c5c5c}}};padding: 10px;margin:5px 0;'>{{{2|A colored box}}}</div><noinclude> | | <div style=' |
| == Usage ==
| | margin: 0.25em 0.5em; |
| Creates a box with text.
| | border:2px {{{3|dotted}}} {{{2|#5c5c5c}}}; |
| <pre><nowiki>{{ Box | border_color | text | border_style }}</nowiki></pre>
| | padding: 10px; |
| === Syntax ===
| | '>{{{1|A colored box}}}</div><noinclude> |
| ;border_color
| | {{documentation}}</noinclude> |
| :Specifies the color for the box' color. Either use a [http://www.w3schools.com/cssref/css_colornames.asp named color] (e.g. <code>purple</code>) or the color's [http://www.w3schools.com/cssref/css_colors.asp hexadecimal code] (e.g. <code>#800080</code>). If you don't specify a color, the box will have a medium-grey border.
| |
| ;border_style
| |
| :Specifies the style of the box' border; you can use any of the [http://www.w3schools.com/cssref/pr_border-style.asp CSS border styles]. If you don't specify anything here, the box will have a dotted border.
| |
| | |
| == See also ==
| |
| *<code>{{t|color box}}</code>, a more advanced template for creating colored boxes.
| |
| | |
| [[Category:Template]][[Category:Tools]]
| |