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

来自Jamesqi
跳转至: 导航搜索

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

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