跳到正文
编写
登录

模板:底部导航条:修订间差异

更多
Musicraft​(留言 | 贡献)
无编辑摘要
迷雾样式迁移​(留言 | 贡献)
按新大纲重组编写指南、三类标准页与全模板说明;修复可选信息行结构
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
<div style="background:linear-gradient(90deg,#0d0d13 0%,#111119 50%,#0d0d13 100%);border-top:2px solid {{{accent|#64b5f6}}};padding:{{{padding|18px 24px}}};text-align:center;font-family:Consolas,monospace;">{{#if:{{{href1|}}}|[{{{href1|}}} <span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color1|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text1|Link}}}</span>]|{{#if:{{{page1|}}}|[[{{{page1|}}}|<span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color1|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text1|{{{page1|}}}}}}</span>]]}}}} {{#if:{{{href2|}}}|[{{{href2|}}} <span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color2|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text2|Link}}}</span>]|{{#if:{{{page2|}}}|[[{{{page2|}}}|<span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color2|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text2|{{{page2|}}}}}}</span>]]}}}} {{#if:{{{href3|}}}|[{{{href3|}}} <span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color3|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text3|Link}}}</span>]|{{#if:{{{page3|}}}|[[{{{page3|}}}|<span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color3|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text3|{{{page3|}}}}}}</span>]]}}}} {{#if:{{{href4|}}}|[{{{href4|}}} <span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color4|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text4|Link}}}</span>]|{{#if:{{{page4|}}}|[[{{{page4|}}}|<span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color4|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text4|{{{page4|}}}}}}</span>]]}}}} {{#if:{{{href5|}}}|[{{{href5|}}} <span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color5|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text5|Link}}}</span>]|{{#if:{{{page5|}}}|[[{{{page5|}}}|<span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color5|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text5|{{{page5|}}}}}}</span>]]}}}} {{#if:{{{href6|}}}|[{{{href6|}}} <span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color6|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text6|Link}}}</span>]|{{#if:{{{page6|}}}|[[{{{page6|}}}|<span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color6|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text6|{{{page6|}}}}}}</span>]]}}}} {{#if:{{{href7|}}}|[{{{href7|}}} <span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color7|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text7|Link}}}</span>]|{{#if:{{{page7|}}}|[[{{{page7|}}}|<span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color7|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text7|{{{page7|}}}}}}</span>]]}}}} {{#if:{{{href8|}}}|[{{{href8|}}} <span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color8|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text8|Link}}}</span>]|{{#if:{{{page8|}}}|[[{{{page8|}}}|<span style="display:inline-block;margin:0 4px;padding:5px 18px;border:1px solid #2a2a38;border-radius:20px;background:#14141c;color:{{{color8|#888}}};font-size:0.83rem;letter-spacing:0.05em;">{{{text8|{{{page8|}}}}}}</span>]]}}}}
<includeonly><div class="mc-reading-nav">{{#if:{{{text1|}}}|<span>{{#if:{{{href1|}}}|[{{{href1}}} {{{text1}}}]|[[{{{page1|首页}}}|{{{text1}}}]]}}</span>}}{{#if:{{{text2|}}}|<span>{{#if:{{{href2|}}}|[{{{href2}}} {{{text2}}}]|[[{{{page2|首页}}}|{{{text2}}}]]}}</span>}}{{#if:{{{text3|}}}|<span>{{#if:{{{href3|}}}|[{{{href3}}} {{{text3}}}]|[[{{{page3|首页}}}|{{{text3}}}]]}}</span>}}{{#if:{{{text4|}}}|<span>{{#if:{{{href4|}}}|[{{{href4}}} {{{text4}}}]|[[{{{page4|首页}}}|{{{text4}}}]]}}</span>}}{{#if:{{{text5|}}}|<span>{{#if:{{{href5|}}}|[{{{href5}}} {{{text5}}}]|[[{{{page5|首页}}}|{{{text5}}}]]}}</span>}}{{#if:{{{text6|}}}|<span>{{#if:{{{href6|}}}|[{{{href6}}} {{{text6}}}]|[[{{{page6|首页}}}|{{{text6}}}]]}}</span>}}{{#if:{{{text7|}}}|<span>{{#if:{{{href7|}}}|[{{{href7}}} {{{text7}}}]|[[{{{page7|首页}}}|{{{text7}}}]]}}</span>}}{{#if:{{{text8|}}}|<span>{{#if:{{{href8|}}}|[{{{href8}}} {{{text8}}}]|[[{{{page8|首页}}}|{{{text8}}}]]}}</span>}}</div></includeonly><noinclude>
最多八组底部入口;每组使用 text、page 或 href 加数字编号。
 
在可视化编辑器中选择“插入 → 模板”,搜索 <code>底部导航条</code>。源代码编辑器中复制下方调用,按参数名填写;不需要写“模板:”前缀。
 
== 效果 ==
<div class="mc-example-preview">
{{底部导航条|text1=首页|page1=首页|text2=ARG 档案|page2=ARG档案}}
</div>
</div>
<noinclude>
== 使用说明 ==
导航条模板,支持 1~8 个胶囊按钮导航项。


=== 示例 ===
== 源代码 ==
<pre>
<div class="mc-example-source"><pre>{{底部导航条|text1=首页|page1=首页|text2=ARG 档案|page2=ARG档案}}</pre></div>
{{DarkNav|page1 = Puzzle档案  |text1 = PUZZLE档案
 
|page2 = 工具和科普  |text2 = 工具科普
== 参数 ==
|page3 = 编辑守则    |text3 = 编辑守则
{| class="wikitable"
|page4 = 首页        |text4 = 返回首页  |color4 = #fff
! 参数名 !! 用法
}}
|-
</pre>
| <code>text1</code> || 第 1 个入口的显示文字。
|-
| <code>href1</code> || 第 1 个入口的外部网址。
|-
| <code>page1</code> || 第 1 个入口的站内页面名。
|-
| <code>text2</code> || 第 2 个入口的显示文字。
|-
| <code>href2</code> || 第 2 个入口的外部网址。
|-
| <code>page2</code> || 第 2 个入口的站内页面名。
|-
| <code>text3</code> || 第 3 个入口的显示文字。
|-
| <code>href3</code> || 第 3 个入口的外部网址。
|-
| <code>page3</code> || 第 3 个入口的站内页面名。
|-
| <code>text4</code> || 第 4 个入口的显示文字。
|-
| <code>href4</code> || 第 4 个入口的外部网址。
|-
| <code>page4</code> || 第 4 个入口的站内页面名。
|-
| <code>text5</code> || 第 5 个入口的显示文字。
|-
| <code>href5</code> || 第 5 个入口的外部网址。
|-
| <code>page5</code> || 第 5 个入口的站内页面名。
|-
| <code>text6</code> || 第 6 个入口的显示文字。
|-
| <code>href6</code> || 第 6 个入口的外部网址。
|-
| <code>page6</code> || 第 6 个入口的站内页面名。
|-
| <code>text7</code> || 第 7 个入口的显示文字。
|-
| <code>href7</code> || 第 7 个入口的外部网址。
|-
| <code>page7</code> || 第 7 个入口的站内页面名。
|-
| <code>text8</code> || 第 8 个入口的显示文字。
|-
| <code>href8</code> || 第 8 个入口的外部网址。
|-
| <code>page8</code> || 第 8 个入口的站内页面名。
|}
 
[[模板说明#底部导航条|全部模板说明]] · [[编写指南]]
<templatedata>
{
  "description": "最多八组底部入口;每组使用 text、page 或 href 加数字编号。",
  "format": "block",
  "params": {
    "text1": {
      "label": "text1",
      "type": "content",
      "description": "第 1 个入口的显示文字。"
    },
    "href1": {
      "label": "href1",
      "type": "content",
      "description": "第 1 个入口的外部网址。"
    },
    "page1": {
      "label": "page1",
      "type": "content",
      "description": "第 1 个入口的站内页面名。"
    },
    "text2": {
      "label": "text2",
      "type": "content",
      "description": "第 2 个入口的显示文字。"
    },
    "href2": {
      "label": "href2",
      "type": "content",
      "description": "第 2 个入口的外部网址。"
    },
    "page2": {
      "label": "page2",
      "type": "content",
      "description": "第 2 个入口的站内页面名。"
    },
    "text3": {
      "label": "text3",
      "type": "content",
      "description": "第 3 个入口的显示文字。"
    },
    "href3": {
      "label": "href3",
      "type": "content",
      "description": "第 3 个入口的外部网址。"
    },
    "page3": {
      "label": "page3",
      "type": "content",
      "description": "第 3 个入口的站内页面名。"
    },
    "text4": {
      "label": "text4",
      "type": "content",
      "description": "第 4 个入口的显示文字。"
    },
    "href4": {
      "label": "href4",
      "type": "content",
      "description": "第 4 个入口的外部网址。"
    },
    "page4": {
      "label": "page4",
      "type": "content",
      "description": "第 4 个入口的站内页面名。"
    },
    "text5": {
      "label": "text5",
      "type": "content",
      "description": "第 5 个入口的显示文字。"
    },
    "href5": {
      "label": "href5",
      "type": "content",
      "description": "第 5 个入口的外部网址。"
    },
    "page5": {
      "label": "page5",
      "type": "content",
      "description": "第 5 个入口的站内页面名。"
    },
    "text6": {
      "label": "text6",
      "type": "content",
      "description": "第 6 个入口的显示文字。"
    },
    "href6": {
      "label": "href6",
      "type": "content",
      "description": "第 6 个入口的外部网址。"
    },
    "page6": {
      "label": "page6",
      "type": "content",
      "description": "第 6 个入口的站内页面名。"
    },
    "text7": {
      "label": "text7",
      "type": "content",
      "description": "第 7 个入口的显示文字。"
    },
    "href7": {
      "label": "href7",
      "type": "content",
      "description": "第 7 个入口的外部网址。"
    },
    "page7": {
      "label": "page7",
      "type": "content",
      "description": "第 7 个入口的站内页面名。"
    },
    "text8": {
      "label": "text8",
      "type": "content",
      "description": "第 8 个入口的显示文字。"
    },
    "href8": {
      "label": "href8",
      "type": "content",
      "description": "第 8 个入口的外部网址。"
    },
    "page8": {
      "label": "page8",
      "type": "content",
      "description": "第 8 个入口的站内页面名。"
    }
  },
  "paramOrder": [
    "text1",
    "href1",
    "page1",
    "text2",
    "href2",
    "page2",
    "text3",
    "href3",
    "page3",
    "text4",
    "href4",
    "page4",
    "text5",
    "href5",
    "page5",
    "text6",
    "href6",
    "page6",
    "text7",
    "href7",
    "page7",
    "text8",
    "href8",
    "page8"
  ]
}
</templatedata>
</noinclude>
</noinclude>

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

最多八组底部入口;每组使用 text、page 或 href 加数字编号。

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

效果

源代码

{{底部导航条|text1=首页|page1=首页|text2=ARG 档案|page2=ARG档案}}

参数

参数名 用法
text1 第 1 个入口的显示文字。
href1 第 1 个入口的外部网址。
page1 第 1 个入口的站内页面名。
text2 第 2 个入口的显示文字。
href2 第 2 个入口的外部网址。
page2 第 2 个入口的站内页面名。
text3 第 3 个入口的显示文字。
href3 第 3 个入口的外部网址。
page3 第 3 个入口的站内页面名。
text4 第 4 个入口的显示文字。
href4 第 4 个入口的外部网址。
page4 第 4 个入口的站内页面名。
text5 第 5 个入口的显示文字。
href5 第 5 个入口的外部网址。
page5 第 5 个入口的站内页面名。
text6 第 6 个入口的显示文字。
href6 第 6 个入口的外部网址。
page6 第 6 个入口的站内页面名。
text7 第 7 个入口的显示文字。
href7 第 7 个入口的外部网址。
page7 第 7 个入口的站内页面名。
text8 第 8 个入口的显示文字。
href8 第 8 个入口的外部网址。
page8 第 8 个入口的站内页面名。

全部模板说明 · 编写指南

最多八组底部入口;每组使用 text、page 或 href 加数字编号。

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

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

参数描述类型状态
text1text1

第 1 个入口的显示文字。

内容可选
href1href1

第 1 个入口的外部网址。

内容可选
page1page1

第 1 个入口的站内页面名。

内容可选
text2text2

第 2 个入口的显示文字。

内容可选
href2href2

第 2 个入口的外部网址。

内容可选
page2page2

第 2 个入口的站内页面名。

内容可选
text3text3

第 3 个入口的显示文字。

内容可选
href3href3

第 3 个入口的外部网址。

内容可选
page3page3

第 3 个入口的站内页面名。

内容可选
text4text4

第 4 个入口的显示文字。

内容可选
href4href4

第 4 个入口的外部网址。

内容可选
page4page4

第 4 个入口的站内页面名。

内容可选
text5text5

第 5 个入口的显示文字。

内容可选
href5href5

第 5 个入口的外部网址。

内容可选
page5page5

第 5 个入口的站内页面名。

内容可选
text6text6

第 6 个入口的显示文字。

内容可选
href6href6

第 6 个入口的外部网址。

内容可选
page6page6

第 6 个入口的站内页面名。

内容可选
text7text7

第 7 个入口的显示文字。

内容可选
href7href7

第 7 个入口的外部网址。

内容可选
page7page7

第 7 个入口的站内页面名。

内容可选
text8text8

第 8 个入口的显示文字。

内容可选
href8href8

第 8 个入口的外部网址。

内容可选
page8page8

第 8 个入口的站内页面名。

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