跳到正文
编写
登录

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

更多
Musicraft​(留言 | 贡献)
无编辑摘要
迷雾样式迁移​(留言 | 贡献)
按新大纲重组编写指南、三类标准页与全模板说明;修复可选信息行结构
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
<div style="background: linear-gradient(180deg, #1a0505 0%, #0d0d0d 100%); border-bottom: 1px solid #333; padding: 60px 20px; text-align: center; position: relative; overflow: hidden; margin: -1rem -1rem 20px -1rem;">
<includeonly>{{档案页首|标题={{{title|{{PAGENAME}}}}}|副标题={{{subtitle|探索隐藏在现实边缘的真相}}}}}</includeonly><noinclude>
    <div style="position: absolute; top: 10px; left: 10px; opacity: 0.1; font-family: monospace; font-size: 12px; text-align: left; pointer-events: none;">
档案页首的旧接口,使用 title、subtitle 两个英文参数。
        > 系统设置... 完成<br>
 
        > 解码中...
在可视化编辑器中选择“插入 → 模板”,搜索 <code>顶部海报</code>。源代码编辑器中复制下方调用,按参数名填写;不需要写“模板:”前缀。
    </div>
 
    <div style="max-width: 1000px; margin: 0 auto; position: relative; z-index: 2;">
== 效果 ==
        <h1 style="font-size: 3rem; margin: 0; font-weight: 700; letter-spacing: 4px; color: #fff; text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);">
<div class="mc-example-preview">
            {{{title|MIST ARG WIKI}}}
{{顶部海报|title=页面标题|subtitle=内容简介。}}
        </h1>
        <div style="width: 40px; height: 4px; background-color: #ff3333; margin: 20px auto;"></div>
        <p style="font-size: 1.1rem; color: #888; margin-top: 10px; font-family: Consolas, monospace;">
            > {{{subtitle|欢迎来到真相的边缘}}}
        </p>
    </div>
</div>
</div>
<noinclude>
 
== 源代码 ==
<div class="mc-example-source"><pre>{{顶部海报|title=页面标题|subtitle=内容简介。}}</pre></div>
 
== 参数 ==
{| class="wikitable"
! 参数名 !! 用法
|-
| <code>title</code> || 区块标题。
|-
| <code>subtitle</code> || 副标题或补充说明。
|}
 
[[模板说明#顶部海报|全部模板说明]] · [[编写指南]]
<templatedata>
<templatedata>
{
{
"params": {
  "description": "档案页首的旧接口,使用 title、subtitle 两个英文参数。",
"title": {},
  "format": "block",
"subtitle": {}
  "params": {
}
    "title": {
      "label": "title",
      "type": "content",
      "description": "区块标题。"
    },
    "subtitle": {
      "label": "subtitle",
      "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
阅读设置