Template:Mbox/Doc: Difference between revisions

From Eco - English Wiki
[unchecked revision][checked revision]
(https://www.hazeron.com/wiki/index.php/Template:Mbox/Doc)
 
No edit summary
Tag: 2017 source edit
 
(15 intermediate revisions by 2 users not shown)
Line 2: Line 2:
The <nowiki>{{Mbox}}</nowiki> template is a standard text box with an icon.
The <nowiki>{{Mbox}}</nowiki> template is a standard text box with an icon.


For example it is used in:
Mbox is used in: [[:Category:Notice_templates]]
* [[Template:Delete]]
* [[Template:Revision]]
* [[Template:HaxusNeeded]]


=How to use=
=How to use=
Line 20: Line 17:


Suggested icons:
Suggested icons:
* [[File:Imbox_content.png|Imbox_content.png]] Imbox_content.png
* <i class="fa fa-2x fa-info-circle"></i> - fa-info-circle
* [[File:Imbox_deletion.png|Imbox_deletion.png]] Imbox_deletion.png
* <i class="fa fa-2x fa-exclamation-circle"></i> - fa-exclamation-circle
* [[File:Imbox_notice.png|Imbox_notice.png]] Imbox_notice.png
* <i class="fa fa-2x fa-ban"></i> - fa-ban
 
and many other Font Awesome icons


===Examples===
===Examples===
 
  <nowiki>{{Mbox</nowiki>
<nowiki>{{Mbox</nowiki>
  <nowiki>| icon = </nowiki>
  <nowiki>| icon = </nowiki>
  <nowiki>| colorborder = </nowiki>
  <nowiki>| colorborder = </nowiki>
  <nowiki>| colorbackground = </nowiki>
  <nowiki>| color = </nowiki>
<nowiki>| colortext = </nowiki>
  <nowiki>| text = This is a test.</nowiki>
  <nowiki>| text = </nowiki>
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>


Line 38: Line 35:
| colorborder =  
| colorborder =  
| colorbackground =  
| colorbackground =  
| colortext =
| text =
}}
<nowiki>{{Mbox</nowiki>
<nowiki>| icon = Imbox_content.png</nowiki>
<nowiki>| colorborder = </nowiki>
<nowiki>| colorbackground = </nowiki>
<nowiki>| colortext = </nowiki>
<nowiki>| text = This is a test.</nowiki>
<nowiki>}}</nowiki>
{{Mbox
| icon = Imbox_content.png
| colorborder =
| colorbackground =
| colortext =
| text = This is a test.
| text = This is a test.
}}
}}


  <nowiki>{{Mbox</nowiki>
  <nowiki>{{Mbox</nowiki>
  <nowiki>| icon = Imbox_notice.png</nowiki>
  <nowiki>| icon = fa-ban</nowiki>
  <nowiki>| colorborder = darkred</nowiki>
  <nowiki>| colorborder = Pink</nowiki>
  <nowiki>| colorbackground = red</nowiki>
  <nowiki>| color= danger</nowiki>
<nowiki>| colortext = yellow</nowiki>
  <nowiki>| text = This is also a test.</nowiki>
  <nowiki>| text = This is also a test.</nowiki>
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>


{{Mbox
{{Mbox
| icon = Imbox_notice.png
| icon = fa-ban
| colorborder = darkred
| colorborder = red
| colorbackground = red
| color = danger
| colortext = yellow
| text = This is also a test.
| text = This is also a test.
}}
}}

Latest revision as of 11:45, 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.
}}