Template:Notice

From The Reed and Rite
Revision as of 21:31, 24 April 2025 by TheRoman (talk | contribs)

Description

This template is a parent template that helps build Notice Templates. It is not intended to be used on its own, but rather to be used to help build other derivative templates.

Usage

Text Only
The only required parameter for this template is text=, which will populate the template with your input.
You Type You Get
{{notice
|text=This is a notice.
}}
×
This is a notice.
Add a Heading
You have the option to also add a bold header by passing header=.
If you wish for the main text to be bold, surround your text= input with triple apostrophes. ('''INPUT''')
You Type You Get
{{notice
|header=This is a header.
|text=This is the regular text.
}}
×
This is a header.
This is the regular text.
Adjust Width
By default, the width of the notice will be 65%.
You can adjust this value by passing width= and defining the width as either a percentage (80%) or a pixel width (300px).
You Type You Get
{{notice
|text=This notice's width is 100%.
|width=100%
}}
×
This notice's width is 100%.
Adjust Alignment
Explanation
You Type You Get
{{notice
|text=This notice is aligned left.
|align=LEFT or RIGHT
}}
×
This notice is aligned left.
×
This notice is aligned right.
Adjust Color
Explanation
You Type You Get
{{notice
|text=This notice is light green.
|color=#bdcca1
}}
×
This notice is light green.
Add a Border
Explanation (Border Help)
You Type You Get
{{notice
|text=This notice has a blue border.
|border=1px solid blue
}}
×
This notice has a blue border.
Prevent Dismissal
Explanation
You Type You Get
{{notice
|text=This notice is not dismissible.
|dismiss=no
}}
This notice is not dismissible.
Clear Other Elements
Explanation
You Type You Get
Without using clear=yes.
{{quote}}{{notice
|text=This notice is not using "clear=yes".
}}
“

A thing someone said. ”

—Who Said It
×
This notice is not using clear=yes.
Using clear=yes.
{{quote}}{{notice
|text=This notice is using "clear=yes".
|clear=yes
}}
“

A thing someone said. ”

—Who Said It
×
This notice is using clear=yes.

Derivative Templates