Difference between revisions of "Template:Note box"
From EVE University Wiki
Line 1: | Line 1: | ||
<div style="background-color:#404050; border: 1px solid #9999AD; padding:0.8em; text-align:left; color:#ffffff; overflow:hidden;{{#ifeq:{{{italics}}}|no||font-style:italic}};">{{{1|An interesting note.}}}</div><noinclude> | <div style="background-color:#404050; border: 1px solid #9999AD; padding:0.8em; text-align:left; color:#ffffff; overflow:hidden;{{#ifeq:{{{italics}}}|no||font-style:italic}};">{{{1|An interesting note.}}}</div><noinclude> | ||
== Usage == | == Usage == | ||
− | This template creates a | + | This template creates a text box, which is useful if you would like to add a note into your article, drawing attention to certain details, or to better explain the context of an article or section. Keep in mind that large number of these templates can make a page look cluttered, so use them judiciously. |
<pre>{{ note box | text | italics = no }}</pre> | <pre>{{ note box | text | italics = no }}</pre> | ||
;text | ;text | ||
:The note text inside the box. By default, this text is rendered in italics, but all other wiki-formatting (bold, text color, links, etc) work as normal. If the text you would like to use include an equals sign (<code>=</code>), you need to explicitly declare your text as a numbered parameter (i.e. put <code>1=</code> before your example text), otherwise the template will display nothing. | :The note text inside the box. By default, this text is rendered in italics, but all other wiki-formatting (bold, text color, links, etc) work as normal. If the text you would like to use include an equals sign (<code>=</code>), you need to explicitly declare your text as a numbered parameter (i.e. put <code>1=</code> before your example text), otherwise the template will display nothing. | ||
;italics | ;italics | ||
− | :Add the | + | :Add the parameter <code>italics = no</code> to the template to render the text as non-italic (i.e. normal text). Use this parameter if you would like to have more control over the text formatting (for instance, if you would like to use italics selectively in your note). In most cases, you can omit this parameter. |
=== Examples === | === Examples === | ||
− | <pre>{{note box|The E-UNI does | + | <pre>{{ note box | The E-UNI does not run [[Incursion_sites#Mothership_sites|Incursion Mothership sites]]. }}:</pre> |
− | {{note box|The E-UNI does | + | {{note box|The E-UNI does not run [[Incursion_sites#Mothership_sites|Incursion Mothership sites]].}} |
− | <pre>{{note box|This article includes three ''Wombles''. For articles with more than three ''Wombles'', see | + | |
+ | <pre>{{ note box | This article includes three ''Wombles''. For articles with more than three ''Wombles'', see | ||
* A Box of Wombles | * A Box of Wombles | ||
* Boatload of Wombles | * Boatload of Wombles | ||
− | * Tons of Wombles|italics=no}}:</pre> | + | * {{co|red|Tons of Wombles}} | italics=no }}:</pre> |
{{note box|This article includes three ''Wombles''. For articles with more than three ''Wombles'', see | {{note box|This article includes three ''Wombles''. For articles with more than three ''Wombles'', see | ||
* A Box of Wombles | * A Box of Wombles | ||
* Boatload of Wombles | * Boatload of Wombles | ||
− | * Tons of Wombles|italics=no}} | + | * {{co|red|Tons of Wombles}} | italics=no }} |
+ | |||
+ | |||
+ | <pre>{{ note box | 1=Putting a mathematical formula (2+2=4) inside a text box requires a 1= before the text. }}:</pre> | ||
+ | {{note box|1=Putting a mathematical formula (2+2=4) inside a text box requires a 1= before the text.}} | ||
== See also == | == See also == |
Revision as of 09:00, 20 May 2014
Usage
This template creates a text box, which is useful if you would like to add a note into your article, drawing attention to certain details, or to better explain the context of an article or section. Keep in mind that large number of these templates can make a page look cluttered, so use them judiciously.
{{ note box | text | italics = no }}
- text
- The note text inside the box. By default, this text is rendered in italics, but all other wiki-formatting (bold, text color, links, etc) work as normal. 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. put1=
before your example text), otherwise the template will display nothing. - italics
- Add the parameter
italics = no
to the template to render the text as non-italic (i.e. normal text). Use this parameter if you would like to have more control over the text formatting (for instance, if you would like to use italics selectively in your note). In most cases, you can omit this parameter.
Examples
{{ note box | The E-UNI does not run [[Incursion_sites#Mothership_sites|Incursion Mothership sites]]. }}:
{{ note box | This article includes three ''Wombles''. For articles with more than three ''Wombles'', see * A Box of Wombles * Boatload of Wombles * {{co|red|Tons of Wombles}} | italics=no }}:
{{ note box | 1=Putting a mathematical formula (2+2=4) inside a text box requires a 1= before the text. }}:
See also
{{important note box}}
, a variation on this template, designed for warnings and other important notes.{{example}}
, a text box for examples.{{color box}}
, the general template for creating coloured boxes with text in them.