Template:Breadcrumbs: Difference between revisions

Template page
No edit summary
(Stylize more like built-in breadcrumbs)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Turing Complete Wiki|Turing Complete Wiki]] >
<templatestyles src="Breadcrumbs/styles.css" /><div class="breadcrumbs">
{{#if:{{{2|}}}
{{#ifeq: {{#titleparts:TCWIKI/{{{1|{{FULLPAGENAME}}}}}|1|-2}} | TCWIKI
|  {{#if:{{{1|}}}
|
     |   [[{{{1|}}}|{{{1|}}}]] &gt;
|  {{#ifeq: {{#titleparts:TCWIKI/{{{1|{{FULLPAGENAME}}}}}|1|-3}} | TCWIKI
     |   ... &gt;
     |   &lt; [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|-1}} | {{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|-2}}]]
    }} [[{{{2|}}}|{{{2|}}}]] &gt;
     |   &lt; {{#ifeq: {{#titleparts:TCWIKI/{{{1|{{FULLPAGENAME}}}}}|1|-4}} | TCWIKI
|   {{#if:{{{1|}}}
        |    [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|-2}} | {{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|-3}}]] {{!}} <!--
    | [[{{{1|}}}|{{{1|}}}]] &gt;
        -->  [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|-1}} | {{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|-2}}]]
    | <b></b>
        |   [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}1|1}} | {{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|1}}]] {{!}} <!--
        --> ... {{!}} <!--
        --> [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|-1}} | {{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|-2}}]]
        }}
     }}
     }}
}} '''{{PAGENAME}}'''<br>
}} <!--
--> </div>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 09:55, 19 February 2025

This page has been transcluded from Template:Breadcrumbs/Documentation.


Display a breadcrumbs-style navigation bar. The top level (Turing Complete Wiki) and the current page are always shown. - If there is one intermediate page, it will be treated as the direct parent. - If there are two intermediate pages, the first will be treated as the grandparent and the second will be treated as the direct parent. - If there are more than two intermediate pages, ... will be used to indicate deep nesting, with the direct parent shown.

Usage[edit source]

{{Breadcrumbs}}
{{Breadcrumbs|Page}}
{{Breadcrumbs|Parent/Page}}
{{Breadcrumbs|Grandparent/Parent/Page}}
{{Breadcrumbs|Greatgrandparent/Grandparent/Parent/Page}}
{{Breadcrumbs|Greatgreatgrandparent/Greatgrandparent/Grandparent/Parent/Page}}