Template:Notice
Documentation
This template is used for creating notices/alerts. Basic usage:
{{Notice |This is My Heading! |Here's some text. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
If the content of the title or the note text contains an equals (=
) symbol, the parameter must be named/numbered. The title parameter is |1=
, |title=
, |heading=
, or |header=
. The additional note parameter is |2=
or |note=
. It is always safest to name/number these parameters, in case the content changes to include a =
later.
If you want no heading/title, use:
{{Notice |2=Here's some text. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
or
{{Notice |note=Here's some text. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
Customizing appearance
|width=
– changes the size, using CSS unit values, e.g. 35%
or 25em
; defaults to 80%
Do not use fixed pixel widths (e.g. 50px
or you'll break the device-scalability of the content.
|float=left
or |float=right
– used to move the box left or right. Should usually also use the |width=
parameter to make it smaller, or there won't be much point.
|border-width=
– change the border width. It is safe to us px
here. The default is 3px
|border-width=
– change the border style, using standard CSS terms. The default is solid
|border-color=
– change the border color, using standard HTML hex codes like #664499
or CSS color names like LightGrey
. The default is Green
Example:
{{Notice |title=<span style="color: Red;">Warning!</span> |note=If you do this, your game asplode! |width=15em |float=left |border-color=Red}}
Gives: