更多操作
(创建页面,内容为“<includeonly><div class="infoBox {{{class|}}}" style="{{#ifeq:{{{type|}}}|middle|display:flow-root;}}{{#switch:{{{type|none}}}|middle|none={{#if:{{{width|}}}|width:{{{width}}};}}}}max-width:100%;border-left: 10px solid {{{color|#1e90ff}}};"><div class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}};"}}> {{#if:{{{title|}}}|<div class="infoBoxTitle" style="{{{title-style|}}}">{{{title}…”) |
无编辑摘要 |
||
(未显示3个用户的38个中间版本) | |||
第1行: | 第1行: | ||
< | <onlyinclude><center><div style="border-radius:1px;padding:9px;border:1px solid #d0d0d0;border-left:6px solid {{#switch:{{{type}}}|异常|Error|红色|红|Red =#b32424|警告|Warning|橙色|橙|Orange=#f28500|注意|Note|黄色|黄|Yellow=#D4AB30|信息|提示|Tips|Info|蓝色|蓝|Blue=#3366cc|其他|Other|灰色|灰|Grey=#a2a9b1|#default =#3366cc}};margin-bottom:0px;max-width:80%;text-align:left"><font style="color:{{#switch:{{{type}}}|异常|Error|红色|红|Red =#b32424|警告|Warning|橙色|橙|Orange=#f28500|注意|Note|黄色|黄|Yellow=#D4AB30|信息|提示|Tips|Info|蓝色|蓝|Blue=#3366cc|其他|Other|灰色|灰|Grey=#a2a9b1|#default =#3366cc}};font-size:110%;font-weight:bold">{{{emoji}}} {{{title}}}</font> <font style="font-size:80%;font-style:italic">{{#if: {{{add time|}}}|({{{add time}}})|<!-- do not display anything if add time is not provided -->}}</font><br>{{{content}}}</div></center></onlyinclude> | ||
</div></ | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "type": { | ||
"description": "消息框类型 异常(红)、警告(橙)、注意(黄)、信息(蓝)、其他(灰)", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"异常", | |||
"警告", | |||
"注意", | |||
"信息", | |||
"其他" | |||
], | |||
"default": "信息", | |||
"required": true, | |||
"suggested": true | |||
" | |||
}, | }, | ||
"content": {}, | "title": { | ||
" | "description": "消息框标题", | ||
" | "type": "line", | ||
"required": true, | |||
"suggested": true | |||
}, | |||
"content": { | |||
"description": "消息框内容", | |||
"type": "unbalanced-wikitext", | |||
"required": false, | |||
"suggested": true | |||
}, | |||
"emoji": { | |||
"description": "用于描述消息框的 Emoji", | |||
"type": "line", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"add time": { | |||
"label": "模板添加时间", | |||
"description": "模板被添加的时间", | |||
"type": "date", | |||
"default": "2024-12-31" | |||
} | |||
}, | }, | ||
"description": "用于提示、警告等的消息框模板。", | |||
"paramOrder": [ | "paramOrder": [ | ||
"type", | "type", | ||
" | "emoji", | ||
"title", | "title", | ||
"content", | "content", | ||
" | "add time" | ||
], | |||
"format": "block" | |||
} | }</templatedata> | ||
</templatedata> | [[分类:模板的模板]] | ||
2024年3月19日 (二) 12:46的最新版本
{{{emoji}}} {{{title}}}
{{{content}}}
{{{content}}}
用于提示、警告等的消息框模板。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
type | type | 消息框类型 异常(红)、警告(橙)、注意(黄)、信息(蓝)、其他(灰)
| 单行文本 | 必需 |
emoji | emoji | 用于描述消息框的 Emoji | 单行文本 | 必需 |
title | title | 消息框标题 | 单行文本 | 必需 |
content | content | 消息框内容 | wikitext片段 | 推荐 |
模板添加时间 | add time | 模板被添加的时间
| 日期 | 可选 |