“模板:导航条”的版本间的差异

来自Jamesqi
跳转至: 导航搜索

第1行: 第1行:
<div class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">'''您当前所在的位置:'''<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">[[首页]]</span> {{#if:{{{上上上级|}}}| » <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">[[{{{上上上级}}}]]</span> }} {{#if:{{{上上级|}}}| » <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">[[{{{上上级}}}]]</span> }} {{#if:{{{上级|}}}| » <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">[[{{{上级}}}]]</span> [[分类:{{{上级}}}]]|[[分类:{{PAGENAME}}]]}} » {{SUBPAGENAME}}</div>
+
<div class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">
 +
'''您当前所在的位置:'''
 +
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
<html>
 +
  <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
    <a itemprop="item" href="</html>{{urlencode:首页}}<html>">
 +
    <span itemprop="name">首页</span></a>
 +
    <meta itemprop="position" content="1" />
 +
</html>
 +
</span>
 +
{{#if:{{{上上上级|}}}|
 +
»
 +
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
[[{{{上上上级}}}]]
 +
</span>  
 +
}}
 +
{{#if:{{{上上级|}}}|
 +
»
 +
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
[[{{{上上级}}}]]
 +
</span>  
 +
}}
 +
{{#if:{{{上级|}}}|
 +
»
 +
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
<html>
 +
  <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
    <a itemprop="item" href="</html>{{urlencode:{{{上级}}}}}<html>">
 +
    <span itemprop="name">{{{上级}}}</span></a>
 +
    <meta itemprop="position" content="1" />
 +
</html>
 +
</span>
 +
[[分类:{{{上级}}}]]
 +
|
 +
[[分类:{{PAGENAME}}]]
 +
}}
 +
»
 +
{{SUBPAGENAME}}
 +
</div>

2018年11月20日 (二) 11:59的版本