<templatestyles src="Template:Nmbox/styles.css" />
This is a documentation subpage for Template:Fmbox. It contains usage information, categories and other content that is not part of the original Template page. |
[[Category:Template documentation pages{{#translation:}}]]
This template uses Lua: |
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'''.
This template is used on many pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
This template is used in system messages. Changes to it can cause immediate changes to the MediaWiki user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space.The tested changes can then be added in one single edit to this template. Please discuss any changes on the talk page before implementing them. |
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
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Fmbox
[[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>