Шаблон:Breadcrumb — различия между версиями

Материал из Rust Wikipedia
Уважаемые игроки, сейчас содержание проекта осуществляется на собственном энтузиазме и средствах небольшой группы альтруистов. Если Вам нравится проект и Вы заинтересованы в его развитии, то у Вас есть возможность помочь сделать наш портал еще качественнее и интереснее.
Подробнее →
м (top: clean up, replaced: |name= → |name = (2))
 
(не показано 17 промежуточных версий этого же участника)
Строка 1: Строка 1:
<div class="breadcrumb">
+
<div class="breadcrumb nomobile" itemscope itemtype="http://schema.org/BreadcrumbList"><div class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="item">[[Rust{{translation}}|Rust]]</span><meta itemprop="position" content="1" /></div>{{#if:  
<div class="breadcrumb-item"><span itemprop="title">[[Главная страница]]</span></div>
+
{{{srvL|}}} |<div class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> / <span itemprop="item">[[Rust Legacy]][[Категория:Rust Legacy]]</span><meta itemprop="position" content="2" /></div>}}{{#if:
{{#if: {{{Type|}}} | <div class="breadcrumb-item"> > <span itemprop="title">[[{{{Type}}}]]</span> [[категория:{{{Type}}}]]</div>}}
+
{{{lvl1|}}} |<div class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> / <span itemprop="item">[[{{{lvl1}}}{{translation}}|{{{lvl1}}}]]</span><meta itemprop="position" content="2" /></div>}}{{#if:  
{{#if: {{{subType|}}} | <div class="breadcrumb-item"> > <span itemprop="title">[[{{{subType}}}]]</span> [[категория:{{{subType}}}]]</div>}}
+
{{{lvl2|}}} |<div class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> / <span itemprop="item">[[{{{lvl2}}}{{translation}}|{{{lvl2}}}]]</span><meta itemprop="position" content="3" /></div>}}{{#if:
<div class="breadcrumb-item"> > <span>[[{{{name}}}]]</span></div>
+
{{{lvl3|}}} |<div class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> / <span itemprop="item">[[{{{lvl3}}}{{translation}}|{{{lvl3}}}]]</span><meta itemprop="position" content="4" /></div>}}{{#if:
<div style="clear:both"></div>
+
{{{lvl4|}}} |<div class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> / <span itemprop="item">[[{{{lvl4}}}{{translation}}|{{{lvl4}}}]]</span><meta itemprop="position" content="5" /></div>}}<div  
</div>
+
class="breadcrumb-item"> / <span>'''{{{name}}}'''</span></div></div><noinclude>
 +
 
 +
{{breadcrumb
 +
|srvL=.
 +
|lvl1= Линк 1
 +
|lvl2= Линк 2
 +
|lvl3= Линк 3
 +
|lvl4= Линк 4
 +
|name = Имя страницы
 +
}}
 +
 
 +
<pre>
 +
{{breadcrumb
 +
|srvL=
 +
|lvl1= Линк 1
 +
|lvl2= Линк 2
 +
|lvl3= Линк 3
 +
|lvl4= Линк 4
 +
|name = Имя страницы
 +
}}
 +
</pre>
 +
 
 +
 
 +
</noinclude>

Текущая версия на 17:36, 23 мая 2025

{{breadcrumb
|srvL=
|lvl1= Линк 1
|lvl2= Линк 2
|lvl3= Линк 3
|lvl4= Линк 4
|name = Имя страницы
}}