Template:WarnAlt/doc: Difference between revisions
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
severity | severity 1 | Severity of the warning. Can be note, caution, warning or danger. | String | required |
size | size 2 | Size of the warning. Can be large, medium, med or small | String | required |
message | message 3 | The message to show in the warning box. | String | required |