Template:Notice

Revision as of 20:52, 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
Explanation
You Type You Get
{{notice
|text=This is a notice.
}}
×
This is a notice.
Add a Heading
Explanation
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
Explanation
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 navy border.
|border=1px solid navy;}}
×
This notice has a navy border.
Prevent Dismissal
Explanation
You Type You Get
Test
Test
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.

Here is one example of a potential notice box.

This code on the template page {{notice|style=background-color:#CCA; |header=This is the bold title of the box! |text=This is the regular text with more detail }}

produces this when the template is used:

×
This is the bold title of the box!
This is the regular text with more detail

Here's another example, this time without the bold line at the top.

This code on the template page {{notice|style=background-color:#FAA; |text=This notice doesn't have a bold title }}


This notice doesn't have a bold title


Use |clear=yes if the notice is interfering with other elements.


×
This is a test
this is also a test


Derivative Templates