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

模板:警告卡片:修订间差异

来自迷雾wiki
创建页面,内容为“<div style="background: #161616; border: 1px solid #333; border-left: 4px solid #ff3333; border-radius: 4px; padding: 25px; margin-bottom: 25px;"> <h2 style="border-bottom: 1px dashed #444; margin-top: 0; color: #fff; font-size: 1.4rem; padding-bottom: 10px; letter-spacing: 1px;"> <span style="background: #ff3333; color: #000; padding: 2px 6px; font-size: 0.8rem; vertical-align: middle; margin-right: 10px; font-weight: bold;">{{{tag|TOP_SECRET}}}</s…”
 
无编辑摘要
 
第1行: 第1行:
<div style="background: #161616; border: 1px solid #333; border-left: 4px solid #ff3333; border-radius: 4px; padding: 25px; margin-bottom: 25px;">
<div style="background: #161616; border: 1px solid #333; border-left: 4px solid #ff3333; border-radius: 4px; padding: 25px; margin-bottom: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); overflow: hidden;">
     <h2 style="border-bottom: 1px dashed #444; margin-top: 0; color: #fff; font-size: 1.4rem; padding-bottom: 10px; letter-spacing: 1px;">
     <h2 style="border-bottom: 1px dashed #444; margin-top: 0; color: #fff; font-size: 1.4rem; padding-bottom: 10px; letter-spacing: 1px; font-family: Consolas, monospace; display: flex; align-items: center;">
         <span style="background: #ff3333; color: #000; padding: 2px 6px; font-size: 0.8rem; vertical-align: middle; margin-right: 10px; font-weight: bold;">{{{tag|TOP_SECRET}}}</span>
         <span style="color: #ff3333; margin-right: 10px; font-size: 1.2em;"></span>  
         {{{title}}}
         <span>{{{title|System Warning}}}</span>
     </h2>
     </h2>
     <div style="color: #bbb; line-height: 1.7; margin-top: 15px;">
     <div style="color: #bbb; line-height: 1.6; margin-top: 15px; font-size: 0.95rem; word-wrap: break-word;">
        {{{content}}}
{{{content}}}
        <div style="margin-top: 20px; text-align: right;">
            [[{{{link}}}|<span style="border: 1px solid #ff3333; color: #ff3333; padding: 8px 20px; text-decoration: none; font-size: 0.9rem; transition: 0.3s;">{{{linktext|ACCESS FILE >>}}}</span>]]
        </div>
     </div>
     </div>
</div>
</div>
第14行: 第11行:
<templatedata>
<templatedata>
{
{
"params": {
    "params": {
"tag": {},
        "title": {
"title": {},
            "label": "标题",
"content": {},
            "description": "警告框的标题",
"link": {},
            "type": "string",
"linktext": {}
            "required": true
}
        },
        "content": {
            "label": "内容",
            "description": "具体的警告内容,支持多行文本",
            "type": "content",
            "required": true
        }
    },
    "description": "MIST风格的警告/提示卡片"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

2025年11月30日 (日) 08:14的最新版本

System Warning

{{{content}}}

MIST风格的警告/提示卡片

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

参数描述类型状态
标题title

警告框的标题

字符串必需
内容content

具体的警告内容,支持多行文本

内容必需