Template:Breadcrumbs: Difference between revisions

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