模板:介绍(无警告):修订间差异
更多
统一编年史字体、正文组件与编辑模板;保留原始内容和历史 |
按新大纲重组编写指南、三类标准页与全模板说明;修复可选信息行结构 |
||
| 第2行: | 第2行: | ||
{{{主要内容|}}} | {{{主要内容|}}} | ||
</div></div></includeonly><noinclude> | </div></div></includeonly><noinclude> | ||
旧文章使用的介绍框,标题与主要内容可填写。 | |||
在可视化编辑器中选择“插入 → 模板”,搜索 <code>介绍(无警告)</code>。源代码编辑器中复制下方调用,按参数名填写;不需要写“模板:”前缀。 | |||
== 效果 == | |||
<div class="mc-example-preview"> | |||
{{介绍(无警告)|标题=介绍|主要内容=在这里介绍记录对象和范围。}} | |||
</div> | |||
== 源代码 == | |||
<div class="mc-example-source"><pre>{{介绍(无警告)|标题=介绍|主要内容=在这里介绍记录对象和范围。}}</pre></div> | |||
== 参数 == | |||
{| class="wikitable" | |||
! 参数名 !! 用法 | |||
|- | |||
| <code>标题</code> || 简短区块标题。 | |||
|- | |||
| <code>主要内容</code> || 介绍正文。 | |||
|} | |||
[[模板说明#介绍(无警告)|全部模板说明]] · [[编写指南]] | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "旧文章使用的介绍框,标题与主要内容可填写。", | ||
"format": "block", | "format": "block", | ||
"params": { | "params": { | ||
"标题": { | "标题": { | ||
"label": "标题", | "label": "标题", | ||
"type": "content" | "type": "content", | ||
"description": "简短区块标题。" | |||
}, | }, | ||
"主要内容": { | "主要内容": { | ||
"label": "主要内容", | "label": "主要内容", | ||
"type": "content" | "type": "content", | ||
"description": "介绍正文。" | |||
} | } | ||
} | }, | ||
"paramOrder": [ | |||
"标题", | |||
"主要内容" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||