Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Important note box: Difference between revisions

Template page
Create new template for "important" notes
 
m Rewrite to use {{Color box}} as meta template.
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div style="background-color:#841c2d; border: 2px solid #e17385; padding:0.8em; text-align:left; color:#ffffff; overflow:hidden;{{#ifeq:{{{italics}}}|no||font-style:italic}};">{{{1|An important note.}}}</div><noinclude>
{{Color box
== Usage ==
|border= #e17385
This template creates a text box for important content or warnings, to avoid it getting lost in the flow of an article. Keep in mind that large number of these templates can make a page look cluttered, so use them judiciously.
|width= {{{width|auto}}}
<pre>{{ important note box | text | italics = no }}</pre>
|color= #841c2d
;text
|align= left
: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.
|text= white
;italics
|italics= {{{italics|}}}
: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.
|{{{1|An important note.}}}
=== Examples ===
}}<noinclude>
<pre>{{ important note box | Before undocking for PvP, make sure your medical clone is up to date! }}:</pre>
{{documentation}}
{{ important note box | Before undocking for PvP, make sure your medical clone is up to date! }}
</noinclude>
 
 
<pre>{{ important note box | '''WARNING!'''
 
Taking your Carrier into low-sec without support is a ''very'' bad idea.
 
Don't be an expensive killmail! | italics=no }}:</pre>
{{ important note box | '''WARNING!'''
 
Taking your Carrier into low-sec without support is a ''very'' bad idea.
 
Don't be an expensive killmail! | italics=no }}
 
 
<pre>{{ important note box | 1=No matter what they say, 1+1=2, but it still needs a "1=" before the text. }}:</pre>
{{ important note box | 1=No matter what they say, 1+1=2, but it still needs a "1=" before the text. }}
 
== See also ==
*<code>{{t|note box}}</code>, a variation on this template, designed for general notes and explanations.
*<code>{{t|example}}</code>, a text box for examples.
*<code>{{t|color box}}</code>, the general template for creating coloured boxes with text in them.
 
[[Category:Template]]