打开/关闭菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

检测到您可能正在使用存疑的代理服务器访问寻星知识库。为了避免匿名用户使用代理服务器恶意破坏,我们已经限制了您在寻星的部分权限(例如编辑和创建账户)。

您可以关闭代理使用国内真实IP或联系寻星团队为您的IP添加白名单,从而使用寻星知识库的全部功能。如果您曾经正常注册过寻星知识库账户,则您在当前情况下登录将解除部分限制。

如果您已经使用正常的IP访问寻星知识库,但仍然出现此消息,请您尝试刷新缓存或联系寻星团队。

模板:消息框:修订间差异

✨寻星知识库——携手与您,寻觅群星。
无编辑摘要
无编辑摘要
 
(未显示3个用户的30个中间版本)
第1行: 第1行:
<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-width: 1px 1px 1px 8px;border-style: solid;padding-left: 8px;border-color:#dfdfdf #dfdfdf #dfdfdf {{{color|#1e90ff}}};">
<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 class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}};" }}>{{#if:{{{title|}}}|
    <div class="infoBoxTitle" style="margin: 3px auto;padding: 0;font-weight: 700;font-size: 1.25em">{{{title}}}</div>}}
    <div class="infoBoxIcon" style="display: table-cell;padding: 2px 0 2px .5em;vertical-align: middle;">{{{leftimage|[[image:Icon-info.png|{{#if:{{{smallimage|}}}|25px|50px}}|link=]]}}}</div>
    <div class="infoBoxText" style="display: table-cell;padding: .25em .5em .25em 1.3em;width: 100%;">{{{text|{{{content|{{{1|'''警告:你还没有添加任何内容!'''}}}}}}}}}</div>{{#if:{{{below|}}}|
    <div class="infoBoxBelow" style="margin: 0 auto;padding: 0;text-align: center;">{{{below}}}</div>}}</div>
</div></includeonly>
<noinclude>


<templatedata>
<templatedata>
{
{
"params": {
"params": {
"class": {},
"type": {
"type": {
"label": "信息框类型",
"description": "消息框类型 异常(红)、警告(橙)、注意(黄)、信息(蓝)、其他(灰)",
"description": "指定信息框的类型,可选值为 \"middle\" 或 \"none\"。如果设置为 \"middle\",则会添加 display:flow-root; 样式,如果设置为 \"none\",则会添加 max-width:100%; 样式。",
"type": "line",
"example": "middle",
"autovalue": "",
"suggestedvalues": [
"suggestedvalues": [
"middle",
"异常",
"none"
"警告",
]
"注意",
"信息",
"其他"
],
"default": "信息",
"required": true,
"suggested": true
},
},
"width": {},
"color": {},
"backgroundColor": {},
"title": {
"title": {
"label": "标题",
"description": "消息框标题",
"description": "信息框的“标题”参数,如果有提供标题,则会在信息框中显示一个具有自定义样式的标题(text-style)。",
"type": "line",
"example": "此条目怎么怎么情况",
"type": "line"
},
"title-style": {},
"icon-style": {},
"leftimage": {},
"smallimage": {},
"text-style": {},
"content-style": {},
"text": {
"required": true,
"required": true,
"label": "正文",
"suggested": true
"description": "对“此条目......”的补充说明",
"type": "unbalanced-wikitext"
},
},
"content": {},
"content": {
"below": {
"description": "消息框内容",
"description": "在信息框内容下方添加其他文本或元素(补充说明?)。{{#if:{{{below|}}}|<div class=\"infoBoxBelow\" style=\"{{{below-style|}}}\">{{{below}}}</div>}}"
"type": "unbalanced-wikitext",
},
"required": false,
"below-style": {
"suggested": true
"description": "自定义below区域的CSS样式。"
},
},
"emoji": {
"emoji": {
"description": "当图标用的emoji符号,可以输入多个",
"description": "用于描述消息框的 Emoji",
"type": "line",
"type": "line",
"example": "😅🤡😅"
"required": true,
"suggested": true
},
"add time": {
"label": "模板添加时间",
"description": "模板被添加的时间",
"type": "date",
"default": "2024-12-31"
}
}
},
},
"description": "用于提示、警告等的消息框模板。",
"paramOrder": [
"paramOrder": [
"text",
"class",
"type",
"type",
"width",
"emoji",
"color",
"backgroundColor",
"title",
"title",
"title-style",
"icon-style",
"leftimage",
"smallimage",
"text-style",
"content-style",
"content",
"content",
"below",
"add time"
"below-style",
],
"emoji"
"format": "block"
]
}</templatedata>
}
[[分类:模板的模板]]
</templatedata>
</noinclude>

2024年3月19日 (二) 12:46的最新版本

{{{emoji}}} {{{title}}}
{{{content}}}

用于提示、警告等的消息框模板。

模板参数

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

参数描述类型状态
typetype

消息框类型 异常(红)、警告(橙)、注意(黄)、信息(蓝)、其他(灰)

推荐值
异常警告注意信息其他
默认值
信息
单行文本必需
emojiemoji

用于描述消息框的 Emoji

单行文本必需
titletitle

消息框标题

单行文本必需
contentcontent

消息框内容

wikitext片段推荐
模板添加时间add time

模板被添加的时间

默认值
2024-12-31
日期可选
寻星知识库使用 Cookie 技术提升您的浏览体验,这需要在您的浏览器存储部分信息。禁用 Cookie 将导致部分功能无法正常使用。 寻星团队将严格遵守隐私政策,并尽可能保护您的信息安全。 继续浏览寻星知识库,视为您同意启用 Cookie 并生成、存储相关数据。