Template:Message: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
{{#tag:div|{{#tag:i|| | {{#tag:div|{{#tag:i|| | ||
class=icon-{{#switch: {{{style}}} | class=icon-{{#switch: {{{style}}} | ||
| info = message-circle- | | info = message-circle-more | ||
| danger = message-circle- | | danger = message-circle-warning | ||
| success = message-circle-heart | | success = message-circle-heart | ||
| warning = message-circle-warning | | warning = message-circle-warning | ||
| Line 25: | Line 25: | ||
"success" | "success" | ||
], | ], | ||
"default": "info" | "default": "info", | ||
"description": "Message box style, which defines the colours and icon." | |||
}, | }, | ||
"title": { | "title": { | ||
"label": "Title", | "label": "Title", | ||
"type": "string" | "type": "string", | ||
"description": "Message box title, to display next to the icon." | |||
}, | }, | ||
"text": { | "text": { | ||
"label": "Text", | "label": "Text", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true, | ||
"description": "Message box main text." | |||
} | } | ||
}, | }, | ||
Latest revision as of 09:57, 25 October 2025
A message box containing important information to be made more prominent.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Message box title, to display next to the icon. | String | optional |
| Text | text | Message box main text. | String | required |
| Style | style | Message box style, which defines the colours and icon.
| String | optional |
Example
{{Message|title=Title|text=Warning text!|style=warning}}