更多操作
小无编辑摘要 |
(更新) |
||
第1行: | 第1行: | ||
<includeonly><div | <includeonly> | ||
<center> | |||
<div style="border-radius: 6px; | |||
padding: 9px; | |||
border: 1px solid #d0d0d0; | |||
border-left: 6px solid {{ | |||
#switch: {{{type}}} | |||
| 异常 | Error | 红色 | 红 | Red = #b32424 | |||
| 警告 | Warning | 橙色 | 橙 | Orange = #f28500 | |||
| 注意 | Note | 黄色 | 黄 | Yellow = #ffcc33 | |||
| 信息 | 提示 | Tips | Info | 蓝色 | 蓝 | Blue = #3366cc | |||
| 其他 | Other | 灰色 | 灰 | Grey = #a2a9b1 | |||
| #default = #3366cc | |||
}}; | |||
margin-bottom: 1px; | |||
max-width: 80%; | |||
text-align: left" | |||
<font style="color: {{ | |||
#switch: {{{type}}} | |||
| 异常 | Error | 红色 | 红 | Red = #b32424 | |||
| 警告 | Warning | 橙色 | 橙 | Orange = #f28500 | |||
| 注意 | Note | 黄色 | 黄 | Yellow = #ffcc33 | |||
| 信息 | 提示 | Tips | Info | 蓝色 | 蓝 | Blue = #3366cc | |||
| 其他 | Other | 灰色 | 灰 | Grey = #a2a9b1 | |||
| #default = #3366cc | |||
}}; | |||
font-size: 110%; | |||
font-weight: bold"> | |||
{{{emoji}}} {{{title}}} | |||
</font><br> | |||
{{{content}}} | |||
</div> | |||
</center> | |||
</includeonly> | |||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"type": { | "type": { | ||
"description": "消息框类型", | |||
"description": " | "type": "line", | ||
" | |||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "异常", | ||
" | "警告", | ||
] | "注意", | ||
"信息", | |||
"其他" | |||
], | |||
"default": "信息", | |||
"required": true, | |||
"suggested": true | |||
}, | }, | ||
"title": { | "title": { | ||
"description": "消息框类型", | |||
"description": " | "type": "line", | ||
"type": "line" | |||
"required": true, | "required": true, | ||
" | "suggested": true | ||
}, | }, | ||
"content | "content": { | ||
"description": "消息框内容", | |||
"description": " | "type": "line" | ||
" | |||
}, | }, | ||
"emoji": { | "emoji": { | ||
"description": " | "description": "用于描述消息框的 Emoji", | ||
"type": "line", | "type": "line", | ||
" | "suggestedvalues": [ | ||
"❌", | |||
"⚠", | |||
"❕", | |||
"ℹ", | |||
"⚪" | |||
], | |||
"default": "ℹ", | |||
"required": true, | |||
"suggested": true | |||
} | } | ||
}, | }, | ||
"description": "用于提示、警告等的消息框模板。", | |||
"paramOrder": [ | "paramOrder": [ | ||
"type", | "type", | ||
" | "emoji", | ||
"title", | "title", | ||
"content" | |||
"content | |||
], | ], | ||
" | "format": "block" | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
2023年8月21日 (一) 16:11的版本
用于提示、警告等的消息框模板。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
type | type | 消息框类型
| 单行文本 | 必需 |
emoji | emoji | 用于描述消息框的 Emoji
| 单行文本 | 必需 |
title | title | 消息框类型 | 单行文本 | 必需 |
content | content | 消息框内容 | 单行文本 | 可选 |