Template:Messagebox: Difference between revisions
No edit summary |
m (Updated template) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- CONTENT INCLUDED IN PAGE --> | |||
<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;"> | |||
< | {{#if: {{{title|}}} | <div style="font-weight:bold;">{{{title}}}</div> | }} | ||
---- | <div> | ||
{{#if: {{{1|}}} | {{{1}}} | {{Error|Missing Argument}} }} | |||
</div> | |||
</div> | |||
< | <!-- CONTENT NOT INCLUDED IN PAGE --> | ||
< | |||
<noinclude> | <noinclude> | ||
==Template usage== | |||
== | |||
A general purpose message box to display notifications on a page. | A general purpose message box to display notifications on a page. | ||
<pre> | |||
<nowiki> | |||
< | {{Messagebox|<content> | ||
| | |title= | ||
|icon= | |||
| | |||
| | |||
}} | }} | ||
</nowiki></ | </nowiki> | ||
</pre> | |||
{| | {| style='cellpadding:0;cellspacing:0;border:none;' | ||
|- | |||
| '''<content>''' || content within the message box | |||
|- | |||
|- | | '''title''' || Optional title | ||
| | |- | ||
|- | | '''icon''' || Optional icon | ||
| | |||
|- | |||
| | |||
|} | |} | ||
== | ==Examples== | ||
<code><nowiki>{{Messagebox| | <code><nowiki>{{Messagebox|There is an error on this page}}</nowiki></code>{{Messagebox|This is an informational message}} | ||
<code><nowiki>{{Messagebox|There is an error on this page|title=error}}</nowiki></code> | |||
{{Messagebox|There is an error on this page|title=Error}} | |||
<code><nowiki>{{Messagebox|There is an error on this page|title=error|icon=error}}</nowiki></code>{{Messagebox|There is an error on this page|title=Error|icon=error}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Todo]] | |||
</noinclude> | </noinclude> |
Latest revision as of 07:22, 20 April 2024
! Missing Argument !
Template usage[edit]
A general purpose message box to display notifications on a page.
{{Messagebox|<content> |title= |icon= }}
<content> | content within the message box |
title | Optional title |
icon | Optional icon |
Examples[edit]
{{Messagebox|There is an error on this page}}
This is an informational message
{{Messagebox|There is an error on this page|title=error}}
Error
There is an error on this page
{{Messagebox|There is an error on this page|title=error|icon=error}}
Error
There is an error on this page