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 2: | Line 2: | ||
{| style="border-style: solid; border-width: 5px; border-color: {{{colorborder|}}}; background-color:{{{colorbackground|}}}; color: {{{colortext|}}};" | {| style="border-style: solid; border-width: 5px; border-color: {{{colorborder|}}}; background-color:{{{colorbackground|}}}; color: {{{colortext|}}};" | ||
| style="vertical-align:middle; text-align:center;" | | style="vertical-align:middle; text-align:center;" | ||
| {{#if:{{{icon|}}}| | | {{#if:{{{icon|}}}|{{{icon}}}|<i class="fa-solid fa-triangle-exclamation"></i>}} | ||
{{#if:{{{text|}}}|{{!}} style="vertical-align:middle;" {{!}} {{{text}}}|}} | {{#if:{{{text|}}}|{{!}} style="vertical-align:middle;" {{!}} {{{text}}}|}} | ||
|} | |} | ||
</center></includeonly><noinclude>{{Mbox/Doc}}</noinclude> | </center></includeonly><noinclude>{{Mbox/Doc}}</noinclude> |
Revision as of 15:00, 29 April 2024
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. }}
style="vertical-align:middle; text-align:center;" | This is a test. |
{{Mbox | icon = fa-ban | colorborder = Pink | color= danger | text = This is also a test. }}
style="vertical-align:middle; text-align:center;" | fa-ban | This is also a test. |