Jump to content

Template:Fmbox/doc

From wikiNonStop
Revision as of 15:44, 11 April 2026 by Majestix (talk | contribs) (Created page with "{{Mbox templates}} {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Lua|Module:Message box{{\sandbox}}}} {{Uses TemplateStyles|Module:Message box/fmbox.css}} {{High-risk}} {{Used in system}} == Parameters == {| class="wikitable" |- ! Parameter ! Options ! Notes |- | type | <code>warning</code> / <code>editnotice</code> / <code>system</code> |- | class | | Additional CSS styling for the message box...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parameters

Parameter Options Notes
type warning / editnotice / system
class Additional CSS styling for the message box (pulled from another stylesheet (Mediawiki:Common.css))
style Additional CSS styling for the message box (manually declared)
image [[File:example.example|40px]] If bank, Auto detected and chosen by type.

Default images:

textstyle CSS formatting for the displayed text
text The message to be displayed
imageright [[File:example.example|40px]] File to be shown on the right side of the message
dir ltr or rtl Text direction; may be used with {{Dir }} and {{Uselang }} or {{Pagelang }}

Example messages

Message type Code Example output
(default)
{{Fmbox
|type =
|text = Example message text.
}}
warning
{{Fmbox
|type = warning
|text = Example message text.
}}
editnotice
{{Fmbox
|type = editnotice
|text = Example message text.
}}
system
{{Fmbox
|type = system
|text = Example message text.
}}

TemplateData

[view · talk · edit]

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

Fmbox

This is the specialized version of the {{mbox}} or "multi-namespace message box" meta-template.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Typetype

Adjusts border and background for the appropriate use-case. Default <code>notice</code> is gray with a blue border.

Suggested values
notice style content delete speedy protection move
Default
notice
Auto value
notice
Stringsuggested
Image (left)image

no description

Suggested values
none
Default
Depends on the “type” parameter.
Contentsuggested
Image (right)imageright

no description

Contentoptional
CSS Stylestyle

no description

Stringoptional
Text CSS Styletextstyle

no description

Stringoptional
Texttext

no description

Contentsuggested
Small?small

no description

Suggested values
{{{small|}}} left yes 1
Default
0
Booleanoptional
Small Image (left)smallimage

no description

Suggested values
none
Default
{{{image}}}
Contentoptional
Small Image (right)smallimageright

no description

Suggested values
none
Default
{{{imageright}}}
Contentoptional
Small Textsmalltext

no description

Default
{{{text}}}
Contentoptional