Template:WarnAlt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
| warning|3 = {{WarnAlt/warning| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }} | | warning|3 = {{WarnAlt/warning| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }} | ||
| danger|4 = {{WarnAlt/danger| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }} | | danger|4 = {{WarnAlt/danger| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }} | ||
| custom|5 = {{ | | custom|5 = {{WarnAlt/custom| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} | {{{custom_label| {{{4|}}} }}} | {{{custom_icon| {{{5|}}} }}} }} | ||
}}<noinclude><templatedata> | }}<noinclude><templatedata> | ||
{ | { |
Revision as of 18:36, 17 February 2022
Error: 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 | required |
Displayed Text | message 3 | The text to be displayed in the warning box.
| String | required |
Custom Label | custom_label | A custom label to be displayed before the message in boldface. Required when ''severity'' is set to ''custom''.
| String | optional |
Custom Icon | custom_icon | An image file to be displayed as an icon before the label. Required when ''severity'' is set to ''custom''. Do not include ''File:''. Since the custom option displays in a blue theme, blue-colored icons are suggested.
| String | optional |