This template is a metatemplate. It is used to build other templates and should not be used standalone, except for testing or simple usage.
This documentation is for a ready template. This message indicates that a template is ready for use, or has recently been repaired. This message may be removed once this template has been used on several pages or once it is verified to work as intended.
The Alert template is a metatemplate which is used to create alerts, also known as callouts or admonitions, to call attention to critical information. It is intended to be used in other templates for messages which are expected to be used on multiple pages.
Usage
The template accepts three parameters:
type: Defines the color of the left border; the type should be chosen according to context, not for aesthetic reasons. Types are described in the next section.
text: Message to be displayed in the box.
icon: Icon to be displayed in the box, if provided. Icons appear on the left side of the message box.
The icon parameter is for images. If an emoji is used as an icon, label should be used instead.
icon size: Size of the icon displayed. Default is 20px.
label: Displays a label such as "warning", "note", or "tip". This is also useful if an emoji is used as the icon instead of an image. Use as follows:
| label = <spanclass{{=}}"alert-icon">&#xHHHH;</span>'''Text:'''
| text = {{{1|}}}
where &#xHHHH; represents the hexadecimal HTML entity representation of the emoji in mind (e.g. use 🙂 for 🙂).