跳到正文
编写
登录

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

更多
Musicraft​(留言 | 贡献)
无编辑摘要
迷雾样式迁移​(留言 | 贡献)
统一编年史字体、正文组件与编辑模板;保留原始内容和历史
第1行: 第1行:
<div style="background:#161b22; border:1px solid #30363d; border-left:4px solid #f85149; border-radius:10px; padding:20px 24px; margin:16px 0; box-shadow:0 4px 20px rgba(248,81,73,0.08); overflow:hidden;">
<includeonly>{{信息提示|类型=警告|标题={{{title|注意}}}|内容={{{content|}}}}}</includeonly><noinclude>
<div style="display:flex; align-items:center; gap:10px; margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid #21262d;">
[[编写模板|← 编辑组件手册]]
<span style="color:#f85149; font-size:1.25rem; line-height:1; flex-shrink:0;">⚠</span>
 
<span style="color:#e6edf3; font-size:1rem; font-weight:700; letter-spacing:0.3px; font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;">{{{title|System Warning}}}</span>
编年史统一编辑组件。用法和示例见 [[编写模板]]。
</div>
<div style="color:#8b949e; font-size:0.875rem; line-height:1.75; font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; word-break:break-word;">
{{{content}}}
</div>
</div>
<noinclude>
<templatedata>
<templatedata>
{
{
    "params": {
  "description": "编年史统一编辑组件。用法和示例见 [[编写模板]]。",
        "title": {
  "format": "block",
            "label": "标题",
  "params": {
            "description": "警告框的标题",
    "title": {
            "type": "string",
      "label": "title",
            "required": true
      "type": "content"
        },
        "content": {
            "label": "内容",
            "description": "具体的警告内容,支持多行文本",
            "type": "content",
            "required": true
        }
     },
     },
     "description": "迷雾Wiki风格的警告/提示卡片"
     "content": {
      "label": "content",
      "type": "content"
    }
  }
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

2026年10月13日 (二) 13:33的版本

← 编辑组件手册

编年史统一编辑组件。用法和示例见 编写模板。

编年史统一编辑组件。用法和示例见 [[编写模板]]。

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

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

参数描述类型状态
titletitle

无描述

内容可选
contentcontent

无描述

内容可选
迷雾 Wiki
搜索迷雾 Wiki
阅读设置