Difference between revisions of "BreadCrumbs"
From P6 Spheres
(Created page with "<includeonly>{{#if:{{{auto|}}}|<!-- -->{{#vardefine:path|> {{{1|}}}}}<!-- -->|{{#vardefine:path|{{#arraymap:{{{1|}}}|,|x|> x <wbr>|}}}}<!-- -->}}<!-- -->{{#if:{{{2|}}}<!-...") |
|||
| Line 1: | Line 1: | ||
| − | + | <noinclude>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. | Not technically a breadcrumbs path, since it doesn't necessarily match the page(s) the user was previously on. | ||
| Line 31: | Line 17: | ||
<hr> | <hr> | ||
| − | Example: <nowiki>{{BreadCrumbs|Templates > Layout|auto=no}}</nowiki> {{BreadCrumbs|Templates > Layout|auto=no}} | + | Example: <nowiki>{{BreadCrumbs|Templates > Layout|auto=no}}</nowiki> {{BreadCrumbs|Templates > Layout|auto=no}}</noinclude><includeonly><!-- |
| + | |||
| + | -->{{#if:{{{auto|}}}|<!-- | ||
| + | -->{{#vardefine:path|> {{{1|}}}}}<!-- | ||
| + | -->|{{#vardefine:path|{{#arraymap:{{{1|}}}|,|x|> [[x]] <wbr>|}}}}<!-- | ||
| + | -->}}<!-- | ||
| + | |||
| + | -->{{#if:{{{2|}}}<!-- | ||
| + | -->|{{#vardefine:pagename|{{{2}}}}}<!-- | ||
| + | -->|{{#vardefine:pagename|{{SUBPAGENAME}}}}<!-- | ||
| + | -->}}<!-- | ||
| + | |||
| + | -->{|style="max-width:300px; float:right; margin-top: -4px;border: 1px solid #aaa;background-color: #f9f9f9;" | ||
| + | |[[Main Page|Main]] {{#var:path}} > {{#var:pagename}} | ||
| + | |}<!-- | ||
| + | |||
| + | --></includeonly> | ||
Revision as of 19:00, 28 March 2020
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 |
Example: {{BreadCrumbs|Templates,Layout|ThisPage}}
| Main > Templates |
Example: {{BreadCrumbs|Templates > Layout|auto=no}}
| Main > Templates > Layout > BreadCrumbs |