“模板:导航条”的版本间的差异
来自Jamesqi
(未显示同一用户的11个中间版本) | |||
第1行: | 第1行: | ||
− | <div class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"> | + | <html><div class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"></html> |
− | ''' | + | '''导航:'''{{#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> | ||
− | < | + | <span itemprop="position" content="</html>{{#var:count}}<html>"></span> |
− | </ | ||
</span> | </span> | ||
− | {{#if:{{{上上上级|}}}| | + | </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>"> | |
− | </span> | + | <span itemprop="name"></html>{{{上上上级}}}<html></span></a> |
− | }} | + | <span itemprop="position" content="</html>{{#var:count}}<html>"></span> |
− | {{#if:{{{上上级|}}}| | + | </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>"> | |
− | </span> | + | <span itemprop="name"></html>{{{上上级}}}<html></span></a> |
− | }} | + | <span itemprop="position" content="</html>{{#var:count}}<html>"></span> |
− | {{#if:{{{上级|}}}| | + | </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> | ||
− | < | + | <span itemprop="position" content="</html>{{#var:count}}<html>"></span> |
− | </ | ||
</span> | </span> | ||
− | [[分类:{{{上级}}}]] | + | </html>[[分类:{{{上级}}}]] |
| | | | ||
[[分类:{{PAGENAME}}]] | [[分类:{{PAGENAME}}]] | ||
− | }} | + | }}<html></div></html> |
− | |||
− | |||
− | </div> |