Alert
Overview
The Alert scope function allows you to create a basic panel that contains wiki formatted text. Creating an alert is accomplished by three opening curly brackets which denote the scope of the alert, then alert function call with the parameters that define the type of alert within parenthesis. Next would be the content of the alert which is then terminated with three closing curly brackets.
Unlike Card, a header is optional for alerts.
Prototype
Alert(string {styleName}, string {titleText})
Parameters
- Name: styleName {Optional}
- Type: string
- Default: default
- Values: default, primary, secondary, light, dark, success, info, warning, danger
- Description: The style of the alert.
- Name: titleText {Optional}
- Type: string
- Description: The header of the alert, this is displayed at the top of the alert as a large header text.
Examples
Standard alert:
{{ Alert(Primary)
This is the body content.
}}
Alert with a header:
{{ Alert(Primary, This is the header)
This is the body content.
}}
See Also
Function Calling Convention
Scope Function
Instruction Function
Standard Function
Related
- Scope Function - Scope functions apply a function over a defined scope of wiki text.