Difference between revisions of "Template:Box/doc"

From EVE University Wiki
Jump to: navigation, search
m
m (Update for template rewrite.)
 
Line 1: Line 1:
<noinclude>{{main|Template:Box}}</noinclude>
+
; Description
== Usage ==
+
: Creates a box with text.
Creates a box with text.
 
<pre><nowiki>{{ Box | border_color | text | border_style }}</nowiki></pre>
 
=== Syntax ===
 
;border_color
 
: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 ==
+
; Syntax
*<code>{{t|color box}}</code>, a more advanced template for creating colored boxes.
+
: {{T|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 [https://www.w3schools.com/cssref/css_colors.php named color] (e.g. <code>purple</code>) or the color's [https://www.w3schools.com/cssref/css_colors_legal.php 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 [https://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
 +
* {{T|color box}}, a more advanced template for creating colored boxes.
  
 
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 11:14, 19 March 2023

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.