Template:Alert: Difference between revisions
From Aphelium
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
</div> | </div> | ||
<templatedata> | <templatedata> | ||
{"description":"An alert", "params":{"type": {"label": "Type", "type": "string", "required": true, "example": "info", "suggestedvalues": ["info", "warning", "danger", "success"]}}} | { | ||
"description": "An alert box", | |||
"params": { | |||
"type": { | |||
"label": "Type", | |||
"type": "string", | |||
"required": true, | |||
"example": "info", | |||
"suggestedvalues": [ | |||
"info", | |||
"warning", | |||
"danger", | |||
"success" | |||
] | |||
}, | |||
"content": { | |||
"label": "Content", | |||
"description": "The content of the alert", | |||
"example": "This is an info box", | |||
"type": "content", | |||
"required": true | |||
} | |||
}, | |||
"format": "block" | |||
} | |||
</templatedata> | </templatedata> |
Revision as of 12:49, 20 May 2023
{{{content}}}
An alert box
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type | no description
| String | required |
Content | content | The content of the alert
| Content | required |