Template:WarnAlt/doc: Difference between revisions
Jump to navigation
Jump to search
m (Lyiriyah moved page User:Lyiriyah/sandbox/warn/doc to Template:WarnAlt/doc: For testing TemplateData) |
(Real doc page) |
||
Line 1: | Line 1: | ||
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]]. | |||
<templatedata> | |||
{ | |||
"description": "Add warnings about possible dangers", | |||
"params": { | |||
"severity": { | |||
"description": "Severity of the warning. Can be note, caution, warning or danger.", | |||
"required": true, | |||
"aliases": [ | |||
"1" | |||
], | |||
"type": "string" | |||
}, | |||
"size": { | |||
"description": "Size of the warning. Can be large, medium, med or small", | |||
"required": true, | |||
"aliases": [ | |||
"2" | |||
], | |||
"type": "string" | |||
}, | |||
"message": { | |||
"description": "The message to show in the warning box.", | |||
"required": true, | |||
"aliases": [ | |||
"3" | |||
], | |||
"type": "string" | |||
} | |||
} | |||
} | |||
</templatedata> |
Revision as of 17:19, 11 February 2022
This template is an intended replacement for the {{warn}}
template. It has four different severity levels and three different sizes, which are demonstrated here.
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 |