Template:Messagebox: Difference between revisions

From Fact or Fiction
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="margin: 5px 10px; border-width:1px 1px 1px 10px; border-color: #824295; border-style: solid; border-radius: 0 10px 0 0; padding:5px;">
<div style="margin: 5px 10px; border-width:1px 1px 1px 10px; border-color: #824295; border-style: solid; border-radius: 0 10px 0 0; padding:5px;">
<div style="font-weight:bold;">{{{title|NOTITLE}}}</div>
{{#if:{{{title|}}}|<div style="font-weight:bold;">{{title}}</div>|}}
<div>{{{1|{{Error|Missing Argument}} }}}</div>
<div>
{{#if:{{{title|}}}|{{{title|}}}|x}}
{{#if:{{{1|}}}
Typo to be corrected
|{{{1|}}}
{{{1|<span style="border: 1px solid red; border-radius:10px; padding: 3px 5px; color:red; font-weight: bold;">! Missing argument !</span>}}}
|{{Error|Missing Argument}}
}}
</div>
</div>
</div>
</includeonly>
</includeonly>
Line 29: Line 31:


==Example==
==Example==
<code><nowiki>{{Messagebox|severity=error|There is an error on this page}}</nowiki></code>
<code><nowiki>{{Messagebox|There is an error on this page}}</nowiki></code>
{{Messagebox|There is an error on this page}}
{{Messagebox|There is an error on this page}}



Revision as of 08:21, 30 March 2024



Purpose

A general purpose message box to display notifications on a page.

Syntax

{{Messagebox | title= | icon= }}

title Optional title
icon Optional icon

Example

{{Messagebox|There is an error on this page}}

There is an error on this page