打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

目前wiki关闭了自行注册账号的功能,如需注册账号,请查阅Help:注册账号

模板:Breadcrumb:修订间差异

来自RIA | Wiki
Aunst留言 | 贡献
优化可访问性
Aunst留言 | 贡献
简化
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
<includeonly><!--
<includeonly><templatestyles src="Template:Breadcrumb/styles.css" />
--><templatestyles src="Template:Breadcrumb/styles.css" /><div class="template-breadcrumb {{{extraclass|}}}" role="navigation" aria-label="面包屑导航" {{#if:{{{extrastyle|}}}|style="{{{extrastyle}}}"|}}>
<div class="template-breadcrumb {{{extraclass|}}}" role="navigation" aria-label="{{{aria-label|面包屑导航}}}" {{#if:{{{extrastyle|}}}|style="{{{extrastyle}}}"|}}>
{{{content|{{{1|}}}}}}
{{{content|{{{1|}}}}}}
</div><!--
</div></includeonly><noinclude>
--></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

2022年6月9日 (四) 11:08的最新版本

模板文档

本模板用于创建统一的面包屑导航

使用

参数

1
必填参数
导航栏的项目。应为标准wikitext列表。列表项一般为链接。
extraclass
模板的额外CSS类。
extrastyle
模板的额外CSS样式。

示例

最简单用法

{{Breadcrumb|
* [[Category:历史|]]
* [[Category:事件|]]
* [[Category:依时间划分的事件|]]
* [[Category:2018年事件|]]
}}

产生:

额外样式

{{Breadcrumb
  | extrastyle = background-color: azure;
  | 1 =
* [[1]]
* [[2]]
* [[3]]
* [[4]]
}}

产生:

衍生模板

Template:Catnav — 用于创建分类页面的面包屑导航栏。

模板数据

这是用于新版可视化编辑器及其他工具的模板数据文档。

Breadcrumb模板数据

本模板用于创建格式统一的面包屑导航。

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

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

参数描述类型状态
额外CSS类extraclass

无描述

字符串可选
额外CSS样式extrastyle

不包含引号, 需要分号

字符串可选
导航内容content 1

应为标准wikitext列表, 列表项应该是wiki链接

内容必需