Template:Breadcrumbs: Difference between revisions

Template page
(Automate breadcrumbs instead of using parameters)
No edit summary
Line 1: Line 1:
<templatestyles src="Breadcrumbs/styles.css" /><div class="breadcrumbs">[[Turing Complete Wiki|Turing Complete Wiki]] &gt;
<templatestyles src="Breadcrumbs/styles.css" /><div class="breadcrumbs">[[Turing Complete Wiki|Turing Complete Wiki]] &gt;
{{#ifeq: {{#titleparts:TCWIKI/{{FULLPAGENAME}}|1|-2}} | TCWIKI
{{#ifeq: {{#titleparts:TCWIKI/{{{1|{{FULLPAGENAME}}}}}|1|-2}} | TCWIKI
|   {{SUBPAGENAME}}
|
|  {{#ifeq: {{#titleparts:TCWIKI/{{FULLPAGENAME}}|1|-3}} | TCWIKI
|  {{#ifeq: {{#titleparts:TCWIKI/{{{1|{{FULLPAGENAME}}}}}|1|-3}} | TCWIKI
     |    [[{{#titleparts:{{FULLPAGENAME}}|-1}}|{{#titleparts:{{FULLPAGENAME}}|1|-2}}]] &gt;
     |    [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|-1}}|{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|-2}}]] &gt;
        {{SUBPAGENAME}}
     |    {{#ifeq: {{#titleparts:TCWIKI/{{{1|{{FULLPAGENAME}}}}}|1|-4}} | TCWIKI
     |    {{#ifeq: {{#titleparts:TCWIKI/{{FULLPAGENAME}}|1|-4}} | TCWIKI
         |    [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|-2}}|{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|-3}}]] &gt; <!--
         |    [[{{#titleparts:{{FULLPAGENAME}}|-2}}|{{#titleparts:{{FULLPAGENAME}}|1|-3}}]] &gt;
        -->  [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|-1}}|{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|-2}}]] &gt;
              [[{{#titleparts:{{FULLPAGENAME}}|-1}}|{{#titleparts:{{FULLPAGENAME}}|1|-2}}]] &gt;
         |    ... &gt; <!--
              {{SUBPAGENAME}}
        -->  [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|-1}}|{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|-2}}]] &gt;
         |    ... &gt;
              [[{{#titleparts:{{FULLPAGENAME}}|-1}}|{{#titleparts:{{FULLPAGENAME}}|1|-2}}]] &gt;
              {{SUBPAGENAME}}
         }}
         }}
     }}
     }}
}} </div>
}} <!--
--> {{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1|-1}} <!--
--> </div>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Revision as of 09:34, 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

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