Template:Mbox/Doc: Difference between revisions

From Hazeron Wiki
Jump to navigation Jump to search
(Lets try this.)
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=What is <nowiki>{{Mbox}}</nowiki>=
==What is <nowiki>{{Mbox}}</nowiki>==
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:
For example it is used in:
* [[Template:Delete]]
* [[Template:Revision]]
* [[Template:Revision]]
* [[Template:HaxusNeeded]]
* [[Template:HaxusNeeded]]


=How to use=
==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.
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:<br>
That said, here are some examples:<br>
  <nowiki>{{Mbox</nowiki>
  <nowiki>{{Mbox</nowiki>
  <nowiki>| Icon = </nowiki>
  <nowiki>| icon = </nowiki>
  <nowiki>| colorborder = </nowiki>
  <nowiki>| colorborder = </nowiki>
  <nowiki>| colorbackground = </nowiki>
  <nowiki>| colorbackground = </nowiki>
Line 19: Line 20:


Suggested icons:
Suggested icons:
* [[File:Imbox_content.png|Imbox_content.png]]
* [[File:Imbox_content.png|Imbox_content.png]] Imbox_content.png
* [[File:Imbox_deletion.png|Imbox_deletion.png]]
* [[File:Imbox_deletion.png|Imbox_deletion.png]] Imbox_deletion.png
* [[File:Imbox_notice.png|Imbox_notice.png]]
* [[File:Imbox_notice.png|Imbox_notice.png]] Imbox_notice.png


===Examples===
===Examples===


  <nowiki>{{Mbox</nowiki>
  <nowiki>{{Mbox</nowiki>
  <nowiki>| Icon = </nowiki>
  <nowiki>| icon = </nowiki>
  <nowiki>| colorborder = </nowiki>
  <nowiki>| colorborder = </nowiki>
  <nowiki>| colorbackground = </nowiki>
  <nowiki>| colorbackground = </nowiki>
Line 34: Line 35:


{{Mbox
{{Mbox
| Icon =  
| icon =  
| colorborder =  
| colorborder =  
| colorbackground =  
| colorbackground =  
Line 42: Line 43:


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


{{Mbox
{{Mbox
| Icon = Imbox_content.png
| icon = Imbox_content.png
| colorborder =  
| colorborder =  
| colorbackground =  
| colorbackground =  
Line 58: Line 59:


  <nowiki>{{Mbox</nowiki>
  <nowiki>{{Mbox</nowiki>
  <nowiki>| Icon = Imbox_content.png</nowiki>
  <nowiki>| icon = Imbox_notice.png</nowiki>
  <nowiki>| colorborder = </nowiki>
  <nowiki>| colorborder = darkred</nowiki>
  <nowiki>| colorbackground = </nowiki>
  <nowiki>| colorbackground = red</nowiki>
  <nowiki>| colortext = </nowiki>
  <nowiki>| colortext = yellow</nowiki>
  <nowiki>| text = </nowiki>
  <nowiki>| text = This is also a test.</nowiki>
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>


{{Mbox
{{Mbox
| Icon = Imbox_notice.png
| icon = Imbox_notice.png
| colorborder = darkred
| colorborder = darkred
| colorbackground = red
| colorbackground = red
| colortext = yellow
| colortext = yellow
| text = This is also a test.
| text = This is also a test.
}}
You can also change the width of the border and float the box to the right:
<nowiki>{{Mbox</nowiki>
<nowiki>| icon = Imbox_notice.png</nowiki>
<nowiki>| colorborder = black</nowiki>
'''<nowiki>| bwidth = 2px</nowiki>'''
'''<nowiki>| floatright = yes</nowiki>'''
<nowiki>| colorbackground = blue</nowiki>
<nowiki>| colortext = yellow</nowiki>
<nowiki>| text = This is an extra test.</nowiki>
<nowiki>}}</nowiki>
{{Mbox
| icon = Imbox_notice.png
| colorborder = black
| bwidth = 2px
| floatright = yes
| colorbackground = blue
| colortext = yellow
| text = This an extra test.
}}
}}

Latest revision as of 06:22, 27 February 2024

What is {{Mbox}}

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

For example it is used in:

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:

  • Imbox_content.png Imbox_content.png
  • Imbox_deletion.png Imbox_deletion.png
  • Imbox_notice.png Imbox_notice.png

Examples

{{Mbox
| icon = 
| colorborder = 
| colorbackground = 
| colortext = 
| text = 
}}
{{Mbox
| icon = Imbox_content.png
| colorborder = 
| colorbackground = 
| colortext = 
| text = This is a test.
}}
This is a test.
{{Mbox
| icon = Imbox_notice.png
| colorborder = darkred
| colorbackground = red
| colortext = yellow
| text = This is also a test.
}}
This is also a test.

You can also change the width of the border and float the box to the right:

{{Mbox
| icon = Imbox_notice.png
| colorborder = black
| bwidth = 2px
| floatright = yes
| colorbackground = blue
| colortext = yellow
| text = This is an extra test.
}}
This an extra test.