Template:Messagebox: Difference between revisions
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;"> | {{#if:{{{title|}}}|<div style="font-weight:bold;">{{title}}</div>|}} | ||
<div> | |||
{{#if:{{{ | {{#if:{{{1|}}} | ||
|{{{1|}}} | |||
|{{Error|Missing Argument}} | |||
}} | |||
</div> | |||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Line 29: | Line 31: | ||
==Example== | ==Example== | ||
<code><nowiki>{{Messagebox | <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