Template:WarnAlt: Difference between revisions
Jump to navigation
Jump to search
(Gets rid of errant line breaks) |
No edit summary |
||
Line 1: | Line 1: | ||
<!--This template is just selection logic. The actual dialogs are all stored in subpages.--><!--Check input validity-->{{#switch: {{{severity| {{{1|}}} }}} | <!--This template is just selection logic. The actual dialogs are all stored in subpages.--><!--Check input validity-->{{#switch: {{{severity| {{{1|}}} }}} | ||
| #default = The severity argument is required. | | #default = <div class="error">The severity argument is required.</div> | ||
| note|1 = {{ | | note|1 = {{WarnAlt/note| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }} | ||
| caution|2 = {{ | | caution|2 = {{WarnAlt/caution| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }} | ||
| warning|3 = {{ | | warning|3 = {{WarnAlt/warning| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }} | ||
| danger|4 = {{ | | danger|4 = {{WarnAlt/danger| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }} | ||
}} | }}<noinclude> | ||
<noinclude> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "severity": { | ||
"label": "Severity and Color", | "label": "Severity and Color", | ||
"description": "The severity of the warning that will also determine the color of the warning. | "description": "The severity of the warning that will also determine the color of the warning.", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "danger", | ||
" | "warning", | ||
" | "caution", | ||
"note" | |||
], | ], | ||
"type": "string", | "type": "string", | ||
"default": " | "default": "caution", | ||
"required": true | "required": true, | ||
"aliases": [ "1" ] | |||
}, | |||
"size": { | |||
"label": "Warning Box Size", | |||
"description": "The size or type of the warning to be created.", | |||
"type": "string", | |||
"default": "large", | |||
"deprecated": true, | |||
"required": true, | |||
"aliases": [ "2" ] | |||
}, | }, | ||
" | "message": { | ||
"label": "Displayed Text", | "label": "Displayed Text", | ||
"description": "The text to be displayed in the warning box", | "description": "The text to be displayed in the warning box.", | ||
"example": "Caps may retain charge after poweroff", | "example": "Caps may retain charge after poweroff", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true, | ||
"aliases": [ "3" ] | |||
} | } | ||
}, | }, |
Revision as of 04:59, 17 February 2022
The severity argument is required.
Create a warning box to get the users attention
Parameter | Description | Type | Status | |
---|---|---|---|---|
Severity and Color | severity 1 | The severity of the warning that will also determine the color of the warning.
| String | required |
Warning Box Size | size 2 | The size or type of the warning to be created.
| String | deprecated |
Displayed Text | message 3 | The text to be displayed in the warning box.
| String | required |