Template:Callout core
Jump to navigation
Jump to search
This template is used on approximately 16,700 pages and changes may be widely noticed.
Template Documentation
Different types of notifications in one template. Created as a basis for other templates.
Usage
This template is usually written in a column. To use it, insert {{Callout core}} on the desired page and specify the parameters described below under the template name in the following format:
| Parameter | Description | Example | Preview |
|---|---|---|---|
mode
|
Switches the template modes. Avaliable modes: compact, inline.
|
| mode = inline |
Hello, World!
|
Default mode
| Parameter | Description | Example | Preview |
|---|---|---|---|
1 or text
|
Your text.
text in other templates that are based on this template. The named parameter breaks the lists.
|
| Hello, World! |
Hello, World!
|
| text = Hello, World! |
Hello, World!
| ||
imageand image2
|
| image = Gnome app science.png |
Hello, World!
| |
imagesizeand image2size
|
Default value: 32px. | | imagesize = 64px |
Hello, World!
|
imagecommentand image2comment
|
| imagecomment = Hello, World! |
Hello, World!
| |
color
|
Notification color (RGB only). | | color = 115 200 35 |
Hello, World!
|
opacity
|
Controls the alpha channel for the specified color. It takes values from 0 to 100 and picks a percentage within a range specified in the core. Default value: 0. |
| opacity = 75 |
Hello, World!
|
preset
|
The color options provided by the template.
Avaliable values:
|
| preset = info |
Hello, World!
|
| preset = warning |
Hello, World!
| ||
location
|
Experimental feature. | | location = bottom |
Hello, World!
|
Compact mode
Same as the default mode, but with a smaller padding. Below are a couple of examples.
Hello, World!
Hello, World!
This is useful when a simple notice takes up too much space in the article.
Inline mode
| Parameter | Description | Example | Preview |
|---|---|---|---|
1 or text
|
Your text.
text in other templates that are based on this template. The named parameter breaks the lists.
|
| Hello, World! |
Hello, World!
|
| text = Hello, World! |
Hello, World!
| ||
image
|
Notification icon. | | image = Important template.png |
|
imagesize
|
Notification icon size (Highly recommended to specify since most icons support high DPI.) Default value: 16px. |
| imagesize = 10px |
|
type
|
Notification type. | | type = Important |
|
color
|
Notification color (RGB only). | | color = 240 211 0 |
Components
- Presets ‒ a set of colors for standardizing the default mode.