Template:WarnAlt: Difference between revisions

From Caps Wiki
Jump to navigation Jump to search
mNo edit summary
(Undo revision 1499 by DigitalIceAge (talk) Needed)
Tag: Undo
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 = {{Error|The severity argument is required.}}
  | #default = {{Error|The severity argument is required.}}
  | note|1 = {{/note| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | note|1 = {{WarnAlt/note| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | caution|2 = {{/caution| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | caution|2 = {{WarnAlt/caution| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | warning|3 = {{/warning| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | warning|3 = {{WarnAlt/warning| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | danger|4 = {{/danger| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | danger|4 = {{WarnAlt/danger| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
}}<noinclude><templatedata>
}}<noinclude><templatedata>
{
{

Revision as of 05:24, 17 February 2022

Error: The severity argument is required.

Create a warning box to get the users attention

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Severity and Colorseverity 1

The severity of the warning that will also determine the color of the warning.

Suggested values
danger warning caution note
Default
caution
Stringrequired
Warning Box Sizesize 2

The size or type of the warning to be created.

Default
large
Stringdeprecated
Displayed Textmessage 3

The text to be displayed in the warning box.

Example
Caps may retain charge after poweroff
Stringrequired