Template:Fmbox/doc

Revision as of 14:49, 24 June 2022 by BruceBeachWikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<templatestyles src="Template:Nmbox/styles.css" />

<templatestyles src="Template:Flatlist/styles.css"/>
  • <templatestyles src="Template:Mono/styles.css"/>{{ambox}}
  • <templatestyles src="Template:Mono/styles.css"/>{{cmbox}}
  • <templatestyles src="Template:Mono/styles.css"/>{{fmbox}}
  • <templatestyles src="Template:Mono/styles.css"/>{{imbox}}
  • <templatestyles src="Template:Mono/styles.css"/>{{nmbox}}
  • <templatestyles src="Template:Mono/styles.css"/>{{ombox}}
  • <templatestyles src="Template:Mono/styles.css"/>{{tmbox}}

[[Category:Template documentation pages{{#translation:}}]]

Lua error: Module:TNT:158: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.

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

[[Category:TemplateData documentation{{#translation:}}]]

<templatedata> {

"description": "This is the specialized version of the

or “multi namespace message box” meta-template.",

"format": "block", "params": { "type": { "label": "Type", "suggestedvalues": [ "speedy", "delete", "content", "style", "notice", "move", "protection" ], "type": "string", "default": "notice", "suggested": true }, "image": { "label": "Image (left)", "suggestedvalues": [ "none" ], "default": "Depends on the “type” parameter.", "suggested": true, "type": "content" }, "imageright": { "label": "Image (right)", "type": "content" }, "style": { "label": "CSS Style", "type": "string" }, "textstyle": { "label": "Text CSS Style", "type": "string" }, "text": { "label": "Text", "suggested": true, "type": "content" }, "small": { "label": "Small?", "suggestedvalues": [ "", "left", "yes", "1" ], "default": "0", "type": "boolean" }, "smallimage": { "label": "Small Image (left)", "suggestedvalues": [ "none" ], "default": "{{{image}}}", "type": "content" }, "smallimageright": { "label": "Small Image (right)", "suggestedvalues": [ "none" ], "default": "{{{imageright}}}", "type": "content" }, "smalltext": { "label": "Small Text", "default": "{{{text}}}", "type": "content" } } } </templatedata>