Template:WarnAlt: Difference between revisions

From Caps Wiki
Jump to navigation Jump to search
m (Lyiriyah moved page User:Lyiriyah/sandbox/warn to Template:WarnAlt: For testing TemplateData)
(change arg types)
Line 11: Line 11:
<templatedata>
<templatedata>
{
{
    "description": "Add warnings about possible dangers",
"description": "Add warnings about possible dangers",
    "params": {
"params": {
        "severity": {
"severity": {
            "description": "Severity of the warning. Can be note, caution, warning or danger.",
"description": "Severity of the warning. Can be note, caution, warning or danger.",
            "required": true,
"required": true,
 
"aliases": [
            "aliases": ["1"]
"1"
        },
],
        "size": {
"type": "string"
            "description": "Size of the warning. Can be large, medium, med or small",
},
            "required": true,
"size": {
            "aliases": ["2"]
"description": "Size of the warning. Can be large, medium, med or small",
        },
"required": true,
        "message": {
"aliases": [
            "description": "The message to show in the warning box.",
"2"
            "required": true,
],
            "aliases": ["3"]
"type": "string"
        }
},
    }
"message": {
"description": "The message to show in the warning box.",
"required": true,
"aliases": [
"3"
],
"type": "string"
}
},
"maps": {
"test": {}
}
}
}
</templatedata>
</templatedata>
{{User:Lyiriyah/sandbox/warn/test}}
{{User:Lyiriyah/sandbox/warn/test}}
</noinclude>
</noinclude>

Revision as of 17:15, 11 February 2022

The severity argument is required.


Add warnings about possible dangers

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
severityseverity 1

Severity of the warning. Can be note, caution, warning or danger.

Stringrequired
sizesize 2

Size of the warning. Can be large, medium, med or small

Stringrequired
messagemessage 3

The message to show in the warning box.

Stringrequired

Note:

Small: NOTE NOTE This is a test

Medium:

NOTE NOTE This is a test

Large:

NOTE This is a test


Warning:

Small: WARNING WARNING This is a test

Medium:

WARNING WARNING This is a test

Large:

WARNING This is a test


Caution:

Small: CAUTION CAUTION This is a test

Medium:

CAUTION CAUTION This is a test

Large:

CAUTION This is a test


Danger:

Small: DANGER DANGER This is a test

Medium:

DANGER DANGER This is a test

Large:

DANGER This is a test