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