Template:WarnAlt/doc

From Caps Wiki
Revision as of 17:22, 11 February 2022 by Lyiriyah (talk | contribs) (add headers and syntax section.)
Jump to navigation Jump to search

Documentation

This template is an intended replacement for the {{warn}} template. It has four different severity levels and three different sizes, which are demonstrated here.

Syntax

For the source editor, the syntax is {{WarnAlt|<note|caution|warning|danger>|<large|medium/med|small>|<message>}}.
The visual editor provides a nice popup box where you can fill in all the data, but the same arguments apply.

Add warnings about possible dangers

Template parameters

ParameterDescriptionTypeStatus
severityseverity 1

Severity of the warning. Can be note, caution, warning or danger.

Stringrequired
sizesize 2

Size of the warning. Can be large, medium, med or small

Stringrequired
messagemessage 3

The message to show in the warning box.

Stringrequired