Template:WarnAlt/doc: Difference between revisions

From Caps Wiki
Jump to navigation Jump to search
(Real doc page)
(add headers and syntax section.)
Line 1: Line 1:
==Documentation==
This template is an intended replacement for the <code><nowiki>{{</nowiki>[[Template:warn|warn]]<nowiki>}}</nowiki></code> template. It has four different severity levels and three different sizes, which are demonstrated [[Template:WarnAlt/test|here]].
This template is an intended replacement for the <code><nowiki>{{</nowiki>[[Template:warn|warn]]<nowiki>}}</nowiki></code> template. It has four different severity levels and three different sizes, which are demonstrated [[Template:WarnAlt/test|here]].
===Syntax===
For the source editor, the syntax is <code><nowiki>{{WarnAlt|<note|caution|warning|danger>|<large|medium/med|small>|<message>}}</nowiki></code>.<br>
The visual editor provides a nice popup box where you can fill in all the data, but the same arguments apply.


<templatedata>
<templatedata>

Revision as of 17:22, 11 February 2022

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