Actions

Template

Difference between revisions of "BreadCrumbs"

From P6 Spheres

 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
  
 
Example: <nowiki>{{BreadCrumbs|Templates,Layout}}</nowiki> {{BreadCrumbs|Templates,Layout}}
 
Example: <nowiki>{{BreadCrumbs|Templates,Layout}}</nowiki> {{BreadCrumbs|Templates,Layout}}
 +
 +
<hr>
 +
 +
Example: <nowiki>{{BreadCrumbs|Templates,Layout/Tables}}</nowiki> {{BreadCrumbs|Templates,Layout/Tables}}
  
 
<hr>
 
<hr>
Line 21: Line 25:
 
-->{{#if:{{{auto|}}}|<!--
 
-->{{#if:{{{auto|}}}|<!--
 
   -->{{#vardefine:path|> {{{1|}}}}}<!--
 
   -->{{#vardefine:path|> {{{1|}}}}}<!--
   -->|{{#vardefine:path|{{#arraymap:{{{1|}}}|,|x|> [[x]] <wbr>|}}}}<!--
+
   -->|{{#vardefine:path|{{#arraymap:{{{1|}}}|,|x|> {{link|x}} <wbr>|}}}}<!--
 
-->}}<!--
 
-->}}<!--
  

Latest revision as of 13:21, 8 May 2021

Used to create a hierarchy path that floats right. Automatically includes the "Main" page link and current page name. Any pages in the hierarchy between these two pages should be included by the author as the first variable.

Not technically a breadcrumbs path, since it doesn't necessarily match the page(s) the user was previously on.


Example: {{BreadCrumbs}}

Main > BreadCrumbs

Example: {{BreadCrumbs|Templates,Layout}}

Main > Templates > Layout > BreadCrumbs

Example: {{BreadCrumbs|Templates,Layout/Tables}}

Main > Templates > Tables > BreadCrumbs

Example: {{BreadCrumbs|Templates,Layout|ThisPage}}

Main > Templates > Layout > ThisPage

Example: {{BreadCrumbs|Templates > Layout|auto=no}}

Main > Templates > Layout > BreadCrumbs