Jump to content

Template:Mbox

From The Hall of Mirrors
Revision as of 17:49, 4 September 2026 by Devaccount01 (talk | contribs) (Created page with "<table class="msgbox {{#if: {{{classes|}}}|{{{classes}}}|}}" style="{{#if: {{{border|}}}|border-color: {{{border}}};|}} {{#if: {{{background|}}}|background: {{{background}}};|}} {{#if: {{{color|}}}|color: {{{color}}};|}}"> <tr> <td class="msgboximg" style="min-width:{{{min-width|50}}}px;"> {{#if: {{{image|}}}| [[File:{{{image}}}|{{{iwidth|50}}}px|{{{pic-align|center}}}|{{{caption|}}}]] }} </td> <td>{{{text|}}}</td> </tr> </table> {{Mbox | text = This is some awesome tex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
W image caption
W image caption
This is some awesome text!

Template loop detected: Template:Mbox



Usage

Creates a message box that can be used by other templates.

{{Mbox
| text = Text inside the box
| image = Example.png
| iwidth = 50
| caption = Image caption
| border = #ddd
| background = #fff
| color = #000
| min-width = 50
| pic-align = center
| classes = custom-class
}}

Parameters

  • text — Text displayed inside the box.
  • image — Optional image. Use the file name only.
  • iwidth — Image width. Defaults to 50px.
  • caption — Optional image caption.
  • border — Border color.
  • background — Background color.
  • color — Text color.
  • min-width — Minimum width of the image cell. Defaults to 50px.
  • pic-align — Image alignment. Defaults to center.
  • classes — Optional CSS classes.