“模板:导航条”的版本间的差异
来自Jamesqi
第1行: | 第1行: | ||
<div class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"> | <div class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"> | ||
'''导航:'''{{#vardefine:count|1}} | '''导航:'''{{#vardefine:count|1}} | ||
+ | <html> | ||
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> | <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="</html>{{#var:count}}<html>" /> | <meta itemprop="position" content="</html>{{#var:count}}<html>" /> | ||
− | </ | + | </span> |
− | </ | + | </html>{{#vardefine:count|{{#expr:{{#var:count}}+1}}}}{{#if:{{{上上上级|}}}| |
» | » | ||
+ | <html> | ||
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> | <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"></html>{{{上上上级}}}<html></span></a> | ||
<meta itemprop="position" content="</html>{{#var:count}}<html>" /> | <meta itemprop="position" content="</html>{{#var:count}}<html>" /> | ||
− | </ | + | </span> |
− | </ | + | </html> {{#vardefine:count|{{#expr:{{#var:count}}+1}}}} |
}}{{#if:{{{上上级|}}}| | }}{{#if:{{{上上级|}}}| | ||
» | » | ||
+ | <html> | ||
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> | <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"></html>{{{上上级}}}<html></span></a> | ||
<meta itemprop="position" content="</html>{{#var:count}}<html>" /> | <meta itemprop="position" content="</html>{{#var:count}}<html>" /> | ||
− | </ | + | </span> |
− | </ | + | </html> {{#vardefine:count|{{#expr:{{#var:count}}+1}}}} |
}}{{#if:{{{上级|}}}| | }}{{#if:{{{上级|}}}| | ||
» | » | ||
+ | <html> | ||
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> | <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"></html>{{{上级}}}<html></span></a> | ||
<meta itemprop="position" content="</html>{{#var:count}}<html>" /> | <meta itemprop="position" content="</html>{{#var:count}}<html>" /> | ||
− | |||
</span> | </span> | ||
− | [[分类:{{{上级}}}]] | + | </html>[[分类:{{{上级}}}]] |
| | | | ||
[[分类:{{PAGENAME}}]] | [[分类:{{PAGENAME}}]] | ||
}} | }} | ||
</div> | </div> |