Template:Breadcrumbs/Documentation: Difference between revisions

Template page
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Display a breadcrumbs-style navigation bar.
Display a breadcrumbs-style navigation bar. The top level ([[Turing Complete Wiki|Turing Complete Wiki]]) and the current page are always shown.
- The top level ([[Turing Complete Wiki|Turing Complete Wiki]]) is always shown as the first (top) link.
- If there is one parameter, it will be treated as the direct parent.
- If there are two parameters, the first will considered as the grandparent and will be shown after the top level. If the first parameter is blank, a <code>...</code> breadcrumb will be inserted to indicate nesting deeper than 4 levels.
- If there are two parameters, the first will be treated as the grandparent and the second will be treated as the direct parent.
- The second parameter (or only parameter, if there is only one) is the direct parent, and will always be shown.
- 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.
- The current page is always shown at the end.


== Usage ==
== Usage ==
<pre>
<pre>
{{Breadcrumbs}}
{{Breadcrumbs|My Parent Page}}
{{Breadcrumbs|My Parent Page}}
{{Breadcrumbs|My Grandparent Page|My Parent Page}}
{{Breadcrumbs|My Grandparent Page|My Parent Page}}
Line 12: Line 12:
</pre>
</pre>


{{Breadcrumbs}}
{{Breadcrumbs|My Parent Page}}
{{Breadcrumbs|My Parent Page}}
{{Breadcrumbs|My Grandparent Page|My Parent Page}}
{{Breadcrumbs|My Grandparent Page|My Parent Page}}
{{Breadcrumbs||My Parent Page}}
{{Breadcrumbs||My Parent Page}}

Latest revision as of 01:26, 14 January 2025

Display a breadcrumbs-style navigation bar. The top level (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 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 parameters and the first parameter is left blank, it will be replaced with ... to indicate nesting greater than four levels deep.

Usage[edit source]

{{Breadcrumbs}}
{{Breadcrumbs|My Parent Page}}
{{Breadcrumbs|My Grandparent Page|My Parent Page}}
{{Breadcrumbs||My Parent Page}}