跳转到内容

模板:Fmbox

来自天灾之下:危险连接资料站
模板文档

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

This is the specialized version of the {{mbox}} or "multi-namespace message box" meta-template.

模板参数[编辑模板数据]

此模板首选参数换行的代码块格式。

参数描述类型状态
Typetype

Adjusts border and background for the appropriate use-case. Default <code>notice</code> is gray with a blue border.

推荐值
notice style content delete speedy protection move
默认值
notice
自动值
notice
字符串推荐
Image (left)image

无描述

推荐值
none
默认值
Depends on the “type” parameter.
内容推荐
Image (right)imageright

无描述

内容可选
CSS Stylestyle

无描述

字符串可选
Text CSS Styletextstyle

无描述

字符串可选
Texttext

无描述

内容推荐
Small?small

无描述

推荐值
{{{small|}}} left yes 1
默认值
0
布尔可选
Small Image (left)smallimage

无描述

推荐值
none
默认值
{{{image}}}
内容可选
Small Image (right)smallimageright

无描述

推荐值
none
默认值
{{{imageright}}}
内容可选
Small Textsmalltext

无描述

默认值
{{{text}}}
内容可选