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

来自Jamesqi
跳转至: 导航搜索

 
(未显示同一用户的16个中间版本)
第1行: 第1行:
{|width="100%" style="border:1px solid #cef2e0;"
+
<html><div class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"></html>
|'''您当前所在的位置:'''[[首页]] {{#if:{{{上上上级|}}}| > [[{{{上上上级}}}]] }} {{#if:{{{上上级|}}}| > [[{{{上上级}}}]] }} {{#if:{{{上级|}}}| > [[{{{上级}}}]] [[分类:{{{上级}}}]]|[[分类:{{PAGENAME}}]]}} > {{SUBPAGENAME}}
+
'''导航:'''{{#vardefine:count|1}}
|}
+
<html>
 +
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
    <a itemprop="item" href="</html>/{{urlencode:首页}}<html>">
 +
    <span itemprop="name">首页</span></a>
 +
    <span itemprop="position" content="</html>{{#var:count}}<html>"></span>
 +
</span>
 +
</html>{{#vardefine:count|{{#expr:{{#var:count}}+1}}}}{{#if:{{{上上上级|}}}|
 +
»
 +
<html>
 +
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
    <a itemprop="item" href="</html>/{{urlencode:{{{上上上级}}}}}<html>">
 +
    <span itemprop="name"></html>{{{上上上级}}}<html></span></a>
 +
    <span itemprop="position" content="</html>{{#var:count}}<html>"></span>
 +
</span>
 +
</html> {{#vardefine:count|{{#expr:{{#var:count}}+1}}}}
 +
}}{{#if:{{{上上级|}}}|
 +
»
 +
<html>
 +
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
    <a itemprop="item" href="</html>/{{urlencode:{{{上上级}}}}}<html>">
 +
    <span itemprop="name"></html>{{{上上级}}}<html></span></a>
 +
    <span itemprop="position" content="</html>{{#var:count}}<html>"></span>
 +
</span>
 +
</html> {{#vardefine:count|{{#expr:{{#var:count}}+1}}}}
 +
}}{{#if:{{{上级|}}}|
 +
»
 +
<html>
 +
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
 +
    <a itemprop="item" href="</html>/{{urlencode:{{{上级}}}}}<html>">
 +
    <span itemprop="name"></html>{{{上级}}}<html></span></a>
 +
    <span itemprop="position" content="</html>{{#var:count}}<html>"></span>
 +
</span>
 +
</html>[[分类:{{{上级}}}]]
 +
|
 +
[[分类:{{PAGENAME}}]]
 +
}}<html></div></html>

2023年1月30日 (一) 21:27的最新版本