Template:Mbox

From Rain World Wiki
(Redirected from Template:Ambox)
Jump to navigation Jump to search
Template Documentation

Details

This is the base template for message boxes, and it lets you create a custom message box. Message boxes let you have an image on the left and right (currently not affected by text direction), a "big" text that can catch your attention, and a small text description. It also lets you add some "below" text which is shown beneath the images and other text, which is often useful for providing more detailed explanations on why the message box was added.

Check out Category:Message box templates for some examples of message boxes in use on the wiki.

Examples

{{mbox
|text=I am a message.
}}
I am a message.
{{mbox
|image=[[File:Needleblinking.gif|class{{=}}pixelated]]
|bigtext=Please read me.
|text=<p>This is me.</p>
}}

Please read me.

This is me.

{{mbox
|image=[[File:Needleblinking.gif|class{{=}}pixelated]]
|below=<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|imageright=[[File:Needleblinking.gif|class{{=}}pixelated]]
|bigtext=Please read me.
|text=<p>This is me.</p>
}}

Please read me.

This is me.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Template Data

This is the TemplateData documentation for this template, used by VisualEditor and other tools.

Displays a message box, usually displaying some kind of helpful notice.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Classesclass

If provided, additional CSS classes to apply to the message box, separated by spaces.

Stringoptional
Imageimage

If provided, image to display on left side. Image is not automatically linked and its full markup should be given.

Contentsuggested
Big Textbigtext

If you want to get someone's attention, add some big text.

Linesuggested
Texttext

Text to put inside the message box.

Contentsuggested
Right Imageimageright

If provided, image to display on right side. Image is not automatically linked and its full markup should be given.

Contentoptional
Below Textbelow

If provided, adds extra text below the images and other text.

Contentoptional