Difference between revisions of "Template:BreadCrumbs"

From Epic Paths
Jump to navigation Jump to search
Line 5: Line 5:
<hr>
<hr>


Example: <nowiki>{{BreadCrumbs}}</nowiki> {{BreadCrumbs}}
Example: <nowiki>{{BreadCrumbs}}</nowiki> {{BreadCrumbs}}<br><br>


<hr>
<hr>


Example: <nowiki>{{BreadCrumbs|templates,page layout}}</nowiki> {{BreadCrumbs|templates,page layout}}
Example: <nowiki>{{BreadCrumbs|templates,page layout}}</nowiki> {{BreadCrumbs|templates,page layout}}<br><br>


<hr>
<hr>


Example: <nowiki>{{BreadCrumbs|templates,layout/tables}}</nowiki> {{BreadCrumbs|templates,layout/tables}}
Example: <nowiki>{{BreadCrumbs|templates,layout/tables}}</nowiki> {{BreadCrumbs|templates,layout/tables}}<br><br>


<hr>
<hr>


Example: <nowiki>{{BreadCrumbs|templates,layout:tables}}</nowiki> {{BreadCrumbs|templates,layout:tables}}
Example: <nowiki>{{BreadCrumbs|templates,:Category:Combat}}</nowiki> {{BreadCrumbs|templates,:Category:Combat}}<br><br>


<hr>
<hr>


Example: <nowiki>{{BreadCrumbs|Templates,Layout|ThisPage}}</nowiki> {{BreadCrumbs|templates,Layout|ThisPage}}
Example: <nowiki>{{BreadCrumbs|Templates,Layout|ThisPage}}</nowiki> {{BreadCrumbs|templates,Layout|ThisPage}}<br><br>


<hr>
<hr>
Line 29: Line 29:
-->{{#if:{{{auto|}}}|<!--
-->{{#if:{{{auto|}}}|<!--
   -->{{#vardefine:path|> {{{1|}}}}}<!--
   -->{{#vardefine:path|> {{{1|}}}}}<!--
   -->|{{#vardefine:path|{{#arraymap:{{{1|}}}|,|pagename|> {{link|{{UcWords|pagename}}}} <wbr>|}}}}<!--
   -->|{{#vardefine:path|{{#arraymap:{{{1|}}}|,|pagename|> {{link|{{UcWords|pagename}}}} dd<wbr>|}}}}<!--
-->}}<!--
-->}}<!--



Revision as of 15:51, 6 August 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,page layout}}

Main > Templates dd> Page Layout dd > BreadCrumbs




Example: {{BreadCrumbs|templates,layout/tables}}

Main > Templates dd> Tables dd > BreadCrumbs




Example: {{BreadCrumbs|templates,:Category:Combat}}

Main > Templates dd> dd > BreadCrumbs




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

Main > Templates dd> Layout dd > ThisPage




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

Main > Templates > Layout > BreadCrumbs