模板:警告卡片:修订间差异
更多
统一编年史字体、正文组件与编辑模板;保留原始内容和历史 |
按新大纲重组编写指南、三类标准页与全模板说明;修复可选信息行结构 |
||
| 第1行: | 第1行: | ||
<includeonly>{{信息提示|类型=警告|标题={{{title|注意}}}|内容={{{content|}}}}}</includeonly><noinclude> | <includeonly>{{信息提示|类型=警告|标题={{{title|注意}}}|内容={{{content|}}}}}</includeonly><noinclude> | ||
突出一项注意事项;参数名使用英文 title 和 content。 | |||
在可视化编辑器中选择“插入 → 模板”,搜索 <code>警告卡片</code>。源代码编辑器中复制下方调用,按参数名填写;不需要写“模板:”前缀。 | |||
== 效果 == | |||
<div class="mc-example-preview"> | |||
{{警告卡片|title=材料提醒|content=填写需要读者注意的具体情况。}} | |||
</div> | |||
== 源代码 == | |||
<div class="mc-example-source"><pre>{{警告卡片|title=材料提醒|content=填写需要读者注意的具体情况。}}</pre></div> | |||
== 参数 == | |||
{| class="wikitable" | |||
! 参数名 !! 用法 | |||
|- | |||
| <code>title</code> || 区块标题。 | |||
|- | |||
| <code>content</code> || 正文内容,支持 Wikitext。 | |||
|} | |||
[[模板说明#警告卡片|全部模板说明]] · [[编写指南]] | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "突出一项注意事项;参数名使用英文 title 和 content。", | ||
"format": "block", | "format": "block", | ||
"params": { | "params": { | ||
"title": { | "title": { | ||
"label": "title", | "label": "title", | ||
"type": "content" | "type": "content", | ||
"description": "区块标题。" | |||
}, | }, | ||
"content": { | "content": { | ||
"label": "content", | "label": "content", | ||
"type": "content" | "type": "content", | ||
"description": "正文内容,支持 Wikitext。" | |||
} | } | ||
} | }, | ||
"paramOrder": [ | |||
"title", | |||
"content" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
2026年10月13日 (二) 15:57的最新版本
突出一项注意事项;参数名使用英文 title 和 content。
在可视化编辑器中选择“插入 → 模板”,搜索 警告卡片。源代码编辑器中复制下方调用,按参数名填写;不需要写“模板:”前缀。
效果
警告
材料提醒
填写需要读者注意的具体情况。
源代码
{{警告卡片|title=材料提醒|content=填写需要读者注意的具体情况。}}参数
| 参数名 | 用法 |
|---|---|
title |
区块标题。 |
content |
正文内容,支持 Wikitext。 |
突出一项注意事项;参数名使用英文 title 和 content。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| title | title | 区块标题。 | 内容 | 可选 |
| content | content | 正文内容,支持 Wikitext。 | 内容 | 可选 |