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
Line 3: Line 3:
<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>
<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>
</center>
</center>
</includeonly><noinclude>{{Mbox/Doc}}</noinclude>
</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 06:04, 21 May 2024

Template documentation
Note: portions of the template sample may not be visible without values provided. View or edit this documentation. (About template documentation)

What is {{Mbox}}

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

Mbox is used in: Category:Notice_templates

How to use

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

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



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