Difference between revisions of "Template:BreadCrumbs"

From Epic Paths
Jump to navigation Jump to search
Tag: Reverted
Tag: Manual revert
Line 30: Line 30:
   -->{{#vardefine:path|> {{{1|}}}}}<!--
   -->{{#vardefine:path|> {{{1|}}}}}<!--
   -->|{{#vardefine:path|{{#arraymap:{{{1|}}}|,|pagename|<!-- If the pagename is a category, we do not use UcWords as that screws up the link
   -->|{{#vardefine:path|{{#arraymap:{{{1|}}}|,|pagename|<!-- If the pagename is a category, we do not use UcWords as that screws up the link
     -->> {{#ifeq:{{#sub:pagename|0|1}}|:|{{link|pagename}}bb|{{link|{{UcWords|pagename}}}}}} <wbr>|}}}}<!--
     -->> {{#ifeq:{{#sub:pagename|0|1}}|:|{{link|pagename}}|{{link|{{UcWords|pagename}}}}}} <wbr>|}}}}<!--
-->}}<!--
-->}}<!--



Revision as of 15:17, 14 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 > Page Layout > BreadCrumbs




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

Main > Templates > Tables > BreadCrumbs




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

Main > Templates > Feats > BreadCrumbs




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

Main > Templates > Layout > ThisPage




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

Main > Templates > Layout > BreadCrumbs