Template:Mbox: Difference between revisions

From Eco - English Wiki
[checked revision][checked revision]
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><center>
<includeonly>
{| style="border-style: solid; border-width: 5px; border-color: {{{colorborder|}}}; background-color:{{{colorbackground|}}}; color: {{{colortext|}}};"
<center>
| style="vertical-align:middle; text-align:center;"  
<div class="alert alert-{{#if:{{{color|}}}|{{{color}}}|primary}}" {{#if:{{{colorborder|}}}|style="border-style: solid; border-width: 5px; border-color: {{{colorborder}}};" }}role="alert">{{#if:{{{icon|}}}|<i class="fa fa-2x {{{icon}}}"></i>|<i class="fa fa-2x fa-info-circle"></i>}} {{{text}}}</div>
| {{#if:{{{icon|}}}|         {{{icon}}}             |<i class="fa-solid fa-triangle-exclamation"></i>}}
</center>
{{#if:{{{text|}}}|{{!}} style="vertical-align:middle;" {{!}} {{{text}}}|}}
</includeonly><noinclude>{{Mbox/Doc}}</noinclude>
|}
</center></includeonly><noinclude>{{Mbox/Doc}}</noinclude>

Latest revision as of 11:46, 30 April 2024

What is {{Mbox}}[edit source]

The {{Mbox}} template is a standard text box with an icon.

Mbox is used in: Category:Notice_templates

How to use[edit source]

This template it most of all used to create other templates, there is no need to use this directly on a page.

That said, here are some examples:

{{Mbox
| icon = 
| colorborder = 
| colorbackground = 
| colortext = 
| text = 
}}

Suggested icons:

  • - fa-info-circle
  • - fa-exclamation-circle
  • - fa-ban

and many other Font Awesome icons

Examples[edit source]

 {{Mbox
| icon = 
| colorborder = 
| color = 
| text = This is a test.
}}



{{Mbox
| icon = fa-ban
| colorborder = Pink
| color= danger
| text = This is also a test.
}}