模板:Breadcrumb:修订间差异
来自RIA | Wiki
更多操作
新模板 |
fix |
||
| 第1行: | 第1行: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><templatestyles src="Template:Breadcrumb/styles.css" /><div class="template-breadcrumb {{{extraclass|}}}" {{#if:{{{extrastyle|}}}|}}> | --><templatestyles src="Template:Breadcrumb/styles.css" /><div class="template-breadcrumb {{{extraclass|}}}" {{#if:{{{extrastyle|}}}|style="{{{extrastyle}}}"|}}> | ||
{{{content|{{{1|}}}}}} | {{{content|{{{1|}}}}}} | ||
</div><!-- | </div><!-- | ||
2022年3月19日 (六) 22:23的版本
本模板用于创建统一的面包屑导航。
使用
参数
- 1
- 必填参数
- 导航栏的项目。应为标准wikitext列表。列表项一般为链接。
- extraclass
- 模板的额外CSS类。
- extrastyle
- 模板的额外CSS样式。
示例
最简单用法
{{Breadcrumb|
* [[Category:历史|]]
* [[Category:事件|]]
* [[Category:依时间划分的事件|]]
* [[Category:2018年事件|]]
}}
产生:
额外样式
{{Breadcrumb
| extrastyle = background-color: azure;
| 1 =
* [[1]]
* [[2]]
* [[3]]
* [[4]]
}}
产生:
衍生模板
Template:Catnav — 用于创建分类页面的面包屑导航栏。
模板数据
本模板用于创建格式统一的面包屑导航。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 额外CSS类 | extraclass | 无描述 | 字符串 | 可选 |
| 额外CSS样式 | extrastyle | 不包含引号, 需要分号 | 字符串 | 可选 |
| 导航内容 | content 1 | 应为标准wikitext列表, 列表项应该是wiki链接 | 内容 | 必需 |