跳到正文
编写
登录

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

更多
Musicraft​(留言 | 贡献)
创建页面,内容为“<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;"> <div style="position: absolute; top: 10px; left: 10px; opacity: 0.1; font-family: monospace; font-size: 12px; text-align: left; pointer-events: none;"> > SYSTEM_INIT... OK<br>> PROTOCOL... ACTIVE </div> <div style="max-width: 1…”
 
迷雾样式迁移​(留言 | 贡献)
按新大纲重组编写指南、三类标准页与全模板说明;修复可选信息行结构
 
(未显示2个用户的3个中间版本)
第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 两个英文参数。
        > SYSTEM_INIT... OK<br>> PROTOCOL... ACTIVE
 
    </div>
在可视化编辑器中选择“插入 → 模板”,搜索 <code>顶部海报</code>。源代码编辑器中复制下方调用,按参数名填写;不需要写“模板:”前缀。
    <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);">
== 效果 ==
            {{{title|MIST ARG WIKI}}}
<div class="mc-example-preview">
        </h1>
{{顶部海报|title=页面标题|subtitle=内容简介。}}
        <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 style="margin-top: 30px; display: inline-block; background: #1a1a1a; padding: 10px 25px; border-radius: 4px; border: 1px solid #333;">
            <span style="color: #ff3333;">●</span> 档案: <b style="color: #fff;">{{NUMBEROFARTICLES}}</b>
            <span style="color: #444; margin: 0 10px;">|</span>
            <span style="color: #00ff00;">●</span> 调查员: <b style="color: #fff;">{{NUMBEROFUSERS}}</b>
        </div>
    </div>
</div>
</div>
== 源代码 ==
<div class="mc-example-source"><pre>{{顶部海报|title=页面标题|subtitle=内容简介。}}</pre></div>
== 参数 ==
{| class="wikitable"
! 参数名 !! 用法
|-
| <code>title</code> || 区块标题。
|-
| <code>subtitle</code> || 副标题或补充说明。
|}
[[模板说明#顶部海报|全部模板说明]] · [[编写指南]]
<templatedata>
{
  "description": "档案页首的旧接口,使用 title、subtitle 两个英文参数。",
  "format": "block",
  "params": {
    "title": {
      "label": "title",
      "type": "content",
      "description": "区块标题。"
    },
    "subtitle": {
      "label": "subtitle",
      "type": "content",
      "description": "副标题或补充说明。"
    }
  },
  "paramOrder": [
    "title",
    "subtitle"
  ]
}
</templatedata>
</noinclude>

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

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

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

效果

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

源代码

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

参数

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

全部模板说明 · 编写指南

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

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

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

参数描述类型状态
titletitle

区块标题。

内容可选
subtitlesubtitle

副标题或补充说明。

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