Template:WarnAlt: Difference between revisions

From Caps Wiki
Jump to navigation Jump to search
m (Add templatedata on parameters)
mNo edit summary
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|}}} }}}
{{#switch: {{{severity| {{{1|}}} }}}
  | #default = The severity argument is required.
  | #default = The severity argument is required.
Line 8: Line 11:
}}
}}
<noinclude>
<noinclude>
{{WarnAlt/doc}}
<templatedata>
<templatedata>
{
{

Revision as of 15:17, 13 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.

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