Template:Fmbox/doc

From Linux Web Expert

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

[<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>]

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

Fmbox/doc

<templatedata> { "description": { "en": "This is the specialized version of the Lua error in mw.lua at line 177: invalid frame ID. or “multi namespace message box” meta-template.", "cs": "Toto je specializovaná verze metašablony Lua error in mw.lua at line 177: invalid frame ID. nebo “multi namespace message box“." }, "format": "block", "params": { "type": { "label": { "en": "Type", "cs": "Typ" }, "suggestedvalues": [ "speedy", "delete", "content", "style", "notice", "move", "protection" ], "type": "string", "default": "notice", "suggested": true }, "image": { "label": { "en": "Image (left)", "cs": "Obrázek (vlevo)" }, "suggestedvalues": [ "none" ], "default": { "en": "Depends on the “type” parameter.", "cs": "Závisí na parametru “type“." }, "suggested": true, "type": "content" }, "imageright": { "label": { "en": "Image (right)", "cs": "Obrázek (vpravo)" }, "type": "content" }, "style": { "label": { "en": "CSS Style", "cs": "Styl CSS" }, "type": "string" }, "textstyle": { "label": { "en": "Text CSS Style", "cs": "Textový styl CSS" }, "type": "string" }, "text": { "label": { "en": "Text", "cs": "Text" }, "suggested": true, "type": "content" }, "small": { "label": { "en": "Small?", "cs": "Malý?" }, "suggestedvalues": [ "", "left", "yes", "1" ], "default": "0", "type": "boolean" }, "smallimage": { "label": { "en": "Small Image (left)", "cs": "Malý obrázek (vlevo)" }, "suggestedvalues": [ "none" ], "default": "{{{image}}}", "type": "content" }, "smallimageright": { "label": { "en": "Small Image (right)", "cs": "Malý obrázek (vpravo)" }, "suggestedvalues": [ "none" ], "default": "{{{imageright}}}", "type": "content" }, "smalltext": { "label": { "en": "Small Text", "cs": "Malý text" }, "default": "{{{text}}}", "type": "content" } } } </templatedata>