Template:Mbox/Doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→How to use) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 72: | Line 72: | ||
| 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:
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. |