Template:WarnAlt: Difference between revisions

From Caps Wiki
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 = {{User:lyiriyah/sandbox/warn/note| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | note|1 = {{WarnAlt/note| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | caution|2 = {{User:lyiriyah/sandbox/warn/caution| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | caution|2 = {{WarnAlt/caution| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | warning|3 = {{User:lyiriyah/sandbox/warn/warning| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | warning|3 = {{WarnAlt/warning| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | danger|4 = {{User:lyiriyah/sandbox/warn/danger| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | danger|4 = {{WarnAlt/danger| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
}}
}}<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"Size": {
"severity": {
"label": "Warning Box Size",
"description": "The size or type of the warning to be created",
"example": "Full, Small, Line",
"type": "string",
"default": "Full",
"deprecated": true,
"required": true
},
"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.",
"example": "Danger, Caution, Note",
             "suggestedvalues": [
             "suggestedvalues": [
      "Danger",
      "danger",
      "Caution",
              "warning",
      "Note"
      "caution",
      "note"
        ],
        ],
"type": "string",
"type": "string",
"default": "Caution",
"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": {
"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

[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