Template:Callout core

From Valve Developer Community
Jump to navigation Jump to search
Icon-callout-warning.png
This template is used on approximately 16,700 pages and changes may be widely noticed.
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Template Documentation
Icon-translate.png Documentation language
...

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:

{{Callout core | parameter1 = value | parameter2 = value }}
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.
Icon-Important.pngImportant: Do not use 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
and
image2
| image = Gnome app science.png
Gnome app science.png
Hello, World!
imagesize
and
image2size
Default value: 32px.
| imagesize = 64px
Gnome app science.png
Hello, World!
imagecomment
and
image2comment
| imagecomment = Hello, World!
Hello, World!
Hello, World!
color Notification color (RGB only).
| color = 115 200 35
Gnome app science.png
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
Gnome app science.png
Hello, World!
preset The color options provided by the template.

Avaliable values:

  • info
  • important
  • warning
  • todo
| preset = info
Hello, World!
Hello, World!
| preset = warning
Hello, World!
Hello, World!
location Experimental feature.
| location = bottom
Gnome app science.png
Hello, World!

Compact mode

Same as the default mode, but with a smaller padding. Below are a couple of examples.

Hello, World!
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.
Icon-Important.pngImportant: Do not use 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
Important template.pngHello, World!
imagesize Notification icon size (Highly recommended to specify since most icons support high DPI.)
Default value: 16px.
| imagesize = 10px
Important template.pngHello, World!
type Notification type.
| type = Important
Important template.pngImportant:Hello, World!
color Notification color (RGB only).
| color = 240 211 0
Important template.pngImportant:Hello, World!

Components

  • Presets ‒ a set of colors for standardizing the default mode.

See also