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|
 
<span>
<span>
{{#tag:i||
{{#tag:i||
Line 18: Line 16:


{{{text}}}
{{{text}}}
|class=message-{{{style|info}}} message
|class=message-{{{style|info}}} message
}}
}}




Line 31: Line 26:


</div></includeonly><noinclude>
</div></includeonly><noinclude>
This template can be used to add message boxes to other pages, using a list of supported styles.
<templatedata>
 
== Example ==
<pre><nowiki>{{Message|title=Title|text=Warning text!|style=warning}}</nowiki></pre> {{Message|Warning text!|style=warning}}
 
== Supported Styles ==
 
{{Message|info (Default)|style=info}}
{{Message|warning|style=warning}}
{{Message|danger|style=danger}}
{{Message|success|style=success}}
 
[[Category:Templates]]
</noinclude><templatedata>
{
{
"params": {
"params": {
Line 72: Line 54:
}
}
</templatedata>
</templatedata>
This template can be used to add message boxes to other pages, using a list of supported styles.
== Example ==
<pre><nowiki>{{Message|title=Title|text=Warning text!|style=warning}}</nowiki></pre> {{Message|Warning text!|style=warning}}
== Supported Styles ==
{{Message|info (Default)|style=info}}
{{Message|warning|style=warning}}
{{Message|danger|style=danger}}
{{Message|success|style=success}}
[[Category:Templates]]
</noinclude>

Revision as of 12:33, 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

This template can be used to add message boxes to other pages, using a list of supported styles.

Example

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

{{{text}}}

Supported Styles

{{{text}}}

{{{text}}}

{{{text}}}

{{{text}}}