Template:WarnAlt: Difference between revisions

From Caps Wiki
Jump to navigation Jump to search
No edit summary
(Gets rid of errant line breaks)
Line 1: Line 1:
<!--This template is just selection logic. The actual dialogs are all stored in subpages.-->
<!--This template is just selection logic. The actual dialogs are all stored in subpages.--><!--Check input validity-->{{#switch: {{{severity| {{{1|}}} }}}
 
<!--Check input validity-->
 
{{#switch: {{{severity| {{{1|}}} }}}
  | #default = The severity argument is required.
  | #default = The severity argument is required.
  | note|1 = {{User:lyiriyah/sandbox/warn/note| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}
  | note|1 = {{User:lyiriyah/sandbox/warn/note| {{{size| {{{2|}}} }}} | {{{message| {{{3|}}} }}} }}

Revision as of 04:49, 17 February 2022

The severity argument is required.

Create a warning box to get the users attention

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Warning Box SizeSize

The size or type of the warning to be created

Default
Full
Example
Full, Small, Line
Stringdeprecated
Severity and ColorSeverity

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

Suggested values
Danger Caution Note
Default
Caution
Example
Danger, Caution, Note
Stringrequired
Displayed TextMessage

The text to be displayed in the warning box

Example
Caps may retain charge after poweroff
Stringrequired