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

来自Jamesqi
跳转至: 导航搜索

第10行: 第10行:
 
»
 
»
 
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
[[{{{上上上级}}}]]
+
<html>
 +
    <a itemprop="item" href="</html>{{urlencode:{{{上上上级}}}}}<html>">
 +
    <span itemprop="name"></html>{{{上上上级}}}<html></span></a>
 +
    <meta itemprop="position" content="</html>{{#var:count}}<html>" />
 +
</html>
 
</span> {{#vardefine:count|{{#expr:{{#var:count}}+1}}}}
 
</span> {{#vardefine:count|{{#expr:{{#var:count}}+1}}}}
 
}}{{#if:{{{上上级|}}}|
 
}}{{#if:{{{上上级|}}}|
 
»
 
»
 
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
[[{{{上上级}}}]]
+
<html>
 +
    <a itemprop="item" href="</html>{{urlencode:{{{上上级}}}}}<html>">
 +
    <span itemprop="name"></html>{{{上上级}}}<html></span></a>
 +
    <meta itemprop="position" content="</html>{{#var:count}}<html>" />
 +
</html>
 
</span> {{#vardefine:count|{{#expr:{{#var:count}}+1}}}}
 
</span> {{#vardefine:count|{{#expr:{{#var:count}}+1}}}}
 
}}{{#if:{{{上级|}}}|
 
}}{{#if:{{{上级|}}}|
第22行: 第30行:
 
<html>
 
<html>
 
     <a itemprop="item" href="</html>{{urlencode:{{{上级}}}}}<html>">
 
     <a itemprop="item" href="</html>{{urlencode:{{{上级}}}}}<html>">
     <span itemprop="name">{{{上级}}}</span></a>
+
     <span itemprop="name"></html>{{{上级}}}<html></span></a>
 
     <meta itemprop="position" content="</html>{{#var:count}}<html>" />
 
     <meta itemprop="position" content="</html>{{#var:count}}<html>" />
 
</html>
 
</html>

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