Note: parts of or the entire template might not be visible without values provided.
Description
This template is used as a base for notice templates.
Usage
Type {{Notice|parameter=value|...}} on a page. This template can be used standalone, or as a base for other notice templates.
Note: This template does not show up on mobile.
Syntax
{{Notice
|image =
|border =
|style =
|type =
|info =
|id =
}}
Parameters
- Id (
id) - Custom HTML Id, used for styling in CSS.
- Class (
class) - Custom HTML Class, used for styling in CSS.
- Image (
image) - A custom image added at the left side. See Help:Adding images for additional information.
- Header (
type) - The main header for the notice template. Shows up in bold.
- Border color (
border) - The color of the separator between the Header and the body text. Has several types (type in lowercase):
- red
- orange
- yellow
- green
- blue
- purple
- grey (Default)
- Text (
info,text) - The main text of the template.
- CSS Style (
style) - Custom CSS styles for the base template container.
Notice borders
| Code | Result |
|---|---|
| {{Notice|border=red}} | |
| {{Notice|border=orange}} | |
| {{Notice|border=yellow}} | |
| {{Notice|border=green}} | |
| {{Notice|border=blue}} | |
| {{Notice|border=grey}} | |
| {{Notice}} (Default: Grey) |
Examples
| Code | Result |
|---|---|
{{Notice|type=Header text}}
|
|
{{Notice|type=Header text here|info=Body text here}}
|
|
{{Notice|type=Header text here|info=Body text here|border=red}}
|
|
{{Notice
|
|
{{Notice
|
See also
- {{Notice/small}}, the notice template without the heading parameter, and is more suitable for small messages.