Template:Breadcrumbs/Documentation: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
Display a breadcrumbs-style navigation bar.  The top level ([[Turing Complete Wiki|Turing Complete Wiki]]) and the current page are always shown.
Display a breadcrumbs-style navigation bar.  The top level ([[Turing Complete Wiki|Turing Complete Wiki]]) and the current page are always shown.
- If there is one parameter, it will be treated as the direct parent.
- If there is one intermediate page, it will be treated as the direct parent.
- If there are two parameters, the first will be treated as the grandparent and the second 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 two parameters and the first parameter is left blank, it will be replaced with <code>...</code> to indicate nesting greater than four levels deep.
- If there are more than two intermediate pages, <code>...</code> will be used to indicate deep nesting, with the direct parent shown.


== Usage ==
== Usage ==
<pre>
<pre>
{{Breadcrumbs}}
{{Breadcrumbs}}
{{Breadcrumbs|My Parent Page}}
{{Breadcrumbs|Page}}
{{Breadcrumbs|My Grandparent Page|My Parent Page}}
{{Breadcrumbs|Parent/Page}}
{{Breadcrumbs||My Parent Page}}
{{Breadcrumbs|Grandparent/Parent/Page}}
{{Breadcrumbs|Greatgrandparent/Parent/Page}}
{{Breadcrumbs|Greatgreatgrandparent/Parent/Page}}
</pre>
</pre>


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

Revision as of 09:12, 19 February 2025

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/Parent/Page}}
{{Breadcrumbs|Greatgreatgrandparent/Parent/Page}}