Template:Fmbox: Difference between revisions
From Madison Pizza Wiki
m Changed protection level for "Template:Fmbox": High-risk template or module; used in system message ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)) |
style |
||
| Line 1: | Line 1: | ||
<templatestyles src="Template:Fmbox/styles.css" /> | |||
{{#invoke:Message box|fmbox}}<noinclude> | {{#invoke:Message box|fmbox}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 14:04, 23 October 2020
| 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.
}}
|
|
