Community Central
Community Central
Information icon 40px
Header
Notice text
Documentation icon Template documentation
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

The table borders are shown below.
Code Result
{{Notice|border=red}}
Information icon 40px
Header
Notice text
{{Notice|border=orange}}
Information icon 40px
Header
Notice text
{{Notice|border=yellow}}
Information icon 40px
Header
Notice text
{{Notice|border=green}}
Information icon 40px
Header
Notice text
{{Notice|border=blue}}
Information icon 40px
Header
Notice text
{{Notice|border=grey}}
Information icon 40px
Header
Notice text
{{Notice}} (Default: Grey)
Information icon 40px
Header
Notice text

Examples

Code Result
{{Notice|type=Header text}}
Information icon 40px
Header text
Notice text
{{Notice|type=Header text here|info=Body text here}}
Information icon 40px
Header text here
Body text here
{{Notice|type=Header text here|info=Body text here|border=red}}
Information icon 40px
Header text here
Body text here
{{Notice
|type=Header text here
|info=Body text here
|border=yellow
|image=[[File:Site-logo.png|40px]]
}}
Site-logo
Header text here
Body text here
{{Notice
|type=Header text here
|info=Body text here
|border=green
|image=[[File:Site-logo.png|40px]]
|style=box-shadow: 5px 10px 8px #888888; border:1px solid #888;
}}
Site-logo
Header text here
Body text here

See also

  • {{Notice/small}}, the notice template without the heading parameter, and is more suitable for small messages.