Template:Message: Difference between revisions
Template page
More actions
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Message.css" />{{#tag:div| | <includeonly><templatestyles src="Template:Message.css" />{{#tag:div| | ||
{{#if: {{{title|}}} | {{#tag: | {{#if: {{{title|}}} | | ||
{{#tag:div| | |||
{{#tag:i|| | |||
class=icon-{{#switch: {{{style}}} | class=icon-{{#switch: {{{style}}} | ||
| info = message-circle-question-mark | | info = message-circle-question-mark | ||
| Line 6: | Line 8: | ||
| success = message-circle-heart | | success = message-circle-heart | ||
| warning = message-circle-warning | | warning = message-circle-warning | ||
}} | }} | ||
{{{title}}} }} | }} | ||
{{#tag:span|'''{{{title}}}''' }} | |||
|class=message-title}} | |class=message-title}} | ||
|}} | |}} | ||
Revision as of 12:58, 23 October 2025
A message box containing important information to be made more prominent.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | no description | String | optional |
| Text | text | no description | String | required |
| Style | style | no description
| String | optional |
Example
{{Message|title=Title|text=Warning text!|style=warning}}