Template:WarnAlt: Difference between revisions
Jump to navigation
Jump to search
m (Lyiriyah moved page User:Lyiriyah/sandbox/warn to Template:WarnAlt: For testing TemplateData) |
(change arg types) |
||
Line 11: | Line 11: | ||
<templatedata> | <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" | |||
} | |||
}, | |||
"maps": { | |||
"test": {} | |||
} | |||
} | } | ||
</templatedata> | </templatedata> | ||
{{User:Lyiriyah/sandbox/warn/test}} | {{User:Lyiriyah/sandbox/warn/test}} | ||
</noinclude> | </noinclude> |
Revision as of 17:15, 11 February 2022
The severity argument is required.
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 |
Note:
Medium:
NOTE This is a test |
Large:
NOTE This is a test
Warning:
Medium:
WARNING This is a test |
Large:
WARNING This is a test
Caution:
Medium:
CAUTION This is a test |
Large:
CAUTION This is a test
Danger:
Medium:
DANGER This is a test |
Large:
DANGER This is a test