跳到正文
编写
登录

模板:顶部海报:修订间差异

更多
迷雾样式迁移​(留言 | 贡献)
统一编年史字体、正文组件与编辑模板;保留原始内容和历史
迷雾样式迁移​(留言 | 贡献)
按新大纲重组编写指南、三类标准页与全模板说明;修复可选信息行结构
 
第1行: 第1行:
<includeonly>{{档案页首|标题={{{title|{{PAGENAME}}}}}|副标题={{{subtitle|探索隐藏在现实边缘的真相}}}}}</includeonly><noinclude>
<includeonly>{{档案页首|标题={{{title|{{PAGENAME}}}}}|副标题={{{subtitle|探索隐藏在现实边缘的真相}}}}}</includeonly><noinclude>
[[编写模板|← 编辑组件手册]]
档案页首的旧接口,使用 title、subtitle 两个英文参数。


编年史统一编辑组件。用法和示例见 [[编写模板]]。
在可视化编辑器中选择“插入 → 模板”,搜索 <code>顶部海报</code>。源代码编辑器中复制下方调用,按参数名填写;不需要写“模板:”前缀。
 
== 效果 ==
<div class="mc-example-preview">
{{顶部海报|title=页面标题|subtitle=内容简介。}}
</div>
 
== 源代码 ==
<div class="mc-example-source"><pre>{{顶部海报|title=页面标题|subtitle=内容简介。}}</pre></div>
 
== 参数 ==
{| class="wikitable"
! 参数名 !! 用法
|-
| <code>title</code> || 区块标题。
|-
| <code>subtitle</code> || 副标题或补充说明。
|}
 
[[模板说明#顶部海报|全部模板说明]] · [[编写指南]]
<templatedata>
<templatedata>
{
{
   "description": "编年史统一编辑组件。用法和示例见 [[编写模板]]。",
   "description": "档案页首的旧接口,使用 title、subtitle 两个英文参数。",
   "format": "block",
   "format": "block",
   "params": {
   "params": {
     "title": {
     "title": {
       "label": "title",
       "label": "title",
       "type": "content"
       "type": "content",
      "description": "区块标题。"
     },
     },
     "subtitle": {
     "subtitle": {
       "label": "subtitle",
       "label": "subtitle",
       "type": "content"
       "type": "content",
      "description": "副标题或补充说明。"
     }
     }
   }
   },
  "paramOrder": [
    "title",
    "subtitle"
  ]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

2026年10月13日 (二) 15:57的最新版本

档案页首的旧接口,使用 title、subtitle 两个英文参数。

在可视化编辑器中选择“插入 → 模板”,搜索 顶部海报。源代码编辑器中复制下方调用,按参数名填写;不需要写“模板:”前缀。

效果

MIST ARCHIVE / FIELD NOTES
页面标题
内容简介。

源代码

{{顶部海报|title=页面标题|subtitle=内容简介。}}

参数

参数名 用法
title 区块标题。
subtitle 副标题或补充说明。

全部模板说明 · 编写指南

档案页首的旧接口,使用 title、subtitle 两个英文参数。

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

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

参数描述类型状态
titletitle

区块标题。

内容可选
subtitlesubtitle

副标题或补充说明。

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