Difference between revisions of "Template:Mbox"

From Appropedia
Jump to navigation Jump to search
(One intermediate revision by the same user not shown)
(No difference)

Revision as of 13:03, 26 October 2020

Template documentation[edit]

This is the {{mbox}} or message box meta-template. It is used to build message box templates such as {{References}} or {{Disambiguation}}. It offers several different colours, uses default images if no image parameter is given and it has some other features.

Usage

Basic usage

{{Mbox|This text will be visible on mobile and desktop devices alike.}}

Will produce:

Advanced usage

{{Mbox
|type = serious
|background = #faa
|image = Sickcartoon.png
|head = This text will be visible on mobile and desktop devices alike.
|body = This text will be visible on mobile devices only after the user touches the message box.
|foot = This text will also be visible on mobile devices only after the user touches the message box.
|category = Examples
}}

Will produce:

See also