模板:提示:修订间差异
来自「荏苒之境」
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的2个中间版本) | |||
第9行: | 第9行: | ||
"type": "content", | "type": "content", | ||
"required": true | "required": true | ||
}, | }, | ||
"类型": { | "类型": { | ||
第29行: | 第25行: | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
"类型" | "类型" | ||
], | ], | ||
"format": " | "format": "block" | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category: 模板]] | |||
</noinclude> | </noinclude> |
2025年8月12日 (二) 09:27的最新版本
此模板使用的样式:模板:提示/style.css
.tip {
margin-top: 0.5em;
margin-bottom: 0.5em;
font-size: 0.9em;
border-left: 4px solid #AAAAAA;
padding: 0.5em 1em;
}
.tip-normal {
border-color: #667a99;
background: #f0f6ff;
}
.tip-warning {
border-color: #ffdf44;
background: #fffae0;
}
.tip-error {
border-color: #ff8989;
background: #ffeded;
}
Hello world
示例代码:
{{提示
| Hello world
}}
Hello world
示例代码:
{{提示
| Hello world
| 类型 = 警告
}}
Hello world
示例代码:
{{提示
| Hello world
| 类型 = 错误
}}
用于显示提示信息的组件。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
1 | 1 | 提示内容。 | 内容 | 必需 |
类型 | 类型 | 提示信息的类型,将根据不同类型选择不同的颜色样式。
| 字符串 | 可选 |