Difference between revisions of "Template:Box"

From EVE University Wiki
Jump to: navigation, search
(rewritten box template for general usage)
m (Add some whitespace around the box.)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Usage : <nowiki>{{Box|border_color|text}}</nowiki>
+
<div style='
<includeonly><onlyinclude><div style='border:2px dashed {{{1|#5c5c5c}}};padding: 10px;margin:5px 0;'>{{{2|}}}</div></onlyinclude></includeonly>
+
margin: 0.25em 0.5em;
 
+
border:2px {{{3|dotted}}} {{{2|#5c5c5c}}};
[[Category:Template]]
+
padding: 10px;
 +
'>{{{1|A colored box}}}</div><noinclude>
 +
{{documentation}}</noinclude>

Latest revision as of 11:49, 19 March 2023

A colored box
Template documentation (for the above template, sometimes hidden or invisible)
Description
Creates a box with text.
Syntax
{{Box|<content>|<border color>|<border style>}}
Parameters
content 
The content of the box. This can be as long or short as necessary, and wiki formatting (such as bold text or links) works just fine. Note: If the text you would like to use include an equals sign (=), you need to explicitly declare your text as a numbered parameter (i.e. put 1= before your text), otherwise the template will display nothing.
border color 
Specifies the color for the box' color. Either use a named color (e.g. purple) or the color's hexadecimal code (e.g. #800080). 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 CSS border styles. If you don't specify anything here, the box will have a dotted border.
See also
  • {{color box}}, a more advanced template for creating colored boxes.
Visit Template:Box/doc to edit this text! (How does this work?) (Refresh this text - why?)