Difference between revisions of "Template:Important note box"
From EVE University Wiki
(Create new template for "important" notes) |
(Moved documentation to Template:Important note box/doc.) |
||
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> | <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> | ||
− | + | {{documentation}} | |
− | + | </noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 02:25, 25 February 2017
Template documentation (for the above template, sometimes hidden or invisible)
- Description
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.
- Dependencies
-
- Uses
- {{Color box}}
- Syntax
-
- {{Important note box|< content >|<width= percentage>|<italics= no>}}
- Parameters
-
- content
- 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 text), otherwise the template will display nothing. - width
- Sets the width of the box. It's recommended to set this as a percentage (of the paragraph width), so
50%
will produce a text box half as wide as the surrounding paragraph. If omitted, the text box will be as wide as the surrounding paragraph. When width is set to less than100%
, the box will be centered. - 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
gives ...{{Important note box| Before undocking for PvP, make sure your medical clone is up to date!}}
gives ...{{Important note box |1= No matter what they say, 1+1=2, but it still needs a "1=" before the text.
gives ...{{Important note box| This is a smaller, centered box|width= 80%}}
{{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}}gives ...
See also
Visit Template:Important note box/doc to edit this text! (How does this work?) (Refresh this text - why?)