Difference between revisions of "Template:BreadCrumbs"

From Epic Paths
Jump to navigation Jump to search
Tag: Manual revert
 
(16 intermediate revisions by the same user not shown)
Line 5: Line 5:
<hr>
<hr>


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


<hr>
<hr>


Example: <nowiki>{{BreadCrumbs|Templates,Layout}}</nowiki> {{BreadCrumbs|Templates,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|ThisPage}}</nowiki> {{BreadCrumbs|Templates,Layout|ThisPage}}
Example: <nowiki>{{BreadCrumbs|templates,:Category:Feats}}</nowiki> {{BreadCrumbs|templates,:Category:Feats}}<br><br>
 
<hr>
 
Example: <nowiki>{{BreadCrumbs|Templates,Layout|ThisPage}}</nowiki> {{BreadCrumbs|templates,Layout|ThisPage}}<br><br>


<hr>
<hr>
Line 25: Line 29:
-->{{#if:{{{auto|}}}|<!--
-->{{#if:{{{auto|}}}|<!--
   -->{{#vardefine:path|> {{{1|}}}}}<!--
   -->{{#vardefine:path|> {{{1|}}}}}<!--
   -->|{{#vardefine:path|{{#arraymap:{{{1|}}}|,|x|> {{link|x|uc}} <wbr>|}}}}<!--
   -->|{{#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}}|{{link|{{UcWords|pagename}}}}}} <wbr>|}}}}<!--
-->}}<!--
-->}}<!--


Line 33: Line 38:
-->}}<!--
-->}}<!--


-->{|style="max-width:300px; float:right; margin-top: -4px;border: 1px solid #aaa;background-color: #f9f9f9;"
-->{|style="float:right; margin-top: -4px; margin-left:8px; margin-bottom:8px; border:1.5px solid #D35400;background-color: #FEF5E7;"
|[[Main Page|Main]] {{#var:path}} > {{#var:pagename}}
|[[Main Page|Main]] {{#var:path}} > {{#var:pagename}}
|}<!--
|}<!--


--></includeonly>
--></includeonly>

Latest revision as of 19:32, 20 January 2022

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