模板:Fmbox/doc
外观
< 模板:Fmbox
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:Fmbox. It contains usage information, categories and other content that is not part of the original 模板 page. |
| Lua标志 | 使用Lua |
| CSS | This template uses TemplateStyles: |
| 文件:OOjs UI icon alert-warning.svg | 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. |
| 文件:OOjs UI icon notice-warning.svg | 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 模板's /sandbox or /testcases subpage, or in your own user space. 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
· <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
This is the specialized version of the {{mbox}} or "multi-namespace message box" meta-template.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Type | type | Adjusts border and background for the appropriate use-case. Default <code>notice</code> is gray with a blue border.
| 字符串 | 推荐 |
| Image (left) | image | 无描述
| 内容 | 推荐 |
| Image (right) | imageright | 无描述 | 内容 | 可选 |
| CSS Style | style | 无描述 | 字符串 | 可选 |
| Text CSS Style | textstyle | 无描述 | 字符串 | 可选 |
| Text | text | 无描述 | 内容 | 推荐 |
| Small? | small | 无描述
| 布尔 | 可选 |
| Small Image (left) | smallimage | 无描述
| 内容 | 可选 |
| Small Image (right) | smallimageright | 无描述
| 内容 | 可选 |
| Small Text | smalltext | 无描述
| 内容 | 可选 |