Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Message: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><templatestyles src="Template:Message.css" />{{#tag:div|
<includeonly><templatestyles src="Template:Message.css" />{{#tag:div|
  {{#if {{{title|}}} |  
{{#if {{{title|}}} |  
    {{#tag:div|
{{#tag:div|
      {{#tag:span
{{#tag:span
        {{#tag:i||
{{#tag:i||
          class=icon-{{#switch: {{{style}}}
class=icon-{{#switch: {{{style}}}
            | info = message-circle-question-mark
| info = message-circle-question-mark
            | danger = message-circle-x
| danger = message-circle-x
            | success = message-circle-heart
| success = message-circle-heart
            | warning = message-circle-warning
| warning = message-circle-warning
          }}
}}
        }}
}}
      {{#tag:span|{{{title}}} }}
{{#tag:span|{{{title}}} }}
    |class=message-title}}  
|class=message-title}}  
  |}}
|}}
 
{{{text}}}
  {{{text}}}
|class=message-{{{style|info}}} message}}</includeonly><noinclude>
|class=message-{{{style|info}}} message}}</includeonly><noinclude>
<templatedata>
<templatedata>

Revision as of 12:43, 23 October 2025

A message box containing important information to be made more prominent.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Stylestyle

no description

Suggested values
info danger warning success
Default
info
Stringoptional
Titletitle

no description

Stringoptional
Texttext

no description

Stringrequired

Example

{{Message|title=Title|text=Warning text!|style=warning}}

{{{text}}}

Supported Styles

{{{text}}}

{{{text}}}

{{{text}}}

{{{text}}}