Actions

Template

Difference between revisions of "BreadCrumbs"

From Gulf of Fallen Stars

Line 1: Line 1:
 
<includeonly>{{#if:{{{1|}}}<!--
 
<includeonly>{{#if:{{{1|}}}<!--
 +
-->|{{#vardefine:path|> {{#replace:{{{1|}}}|,|<wbr> > <wbr>}} >}}<!--
 +
-->|{{#vardefine:path|>}}<!--
 +
-->}}<!--
  
-->|{{BreadCrumbsLayout|[[Main Page|Main]] > {{#replace:{{{1|}}}|,|<wbr> > <wbr>}} > {{SUBPAGENAME}}}}<!--
+
-->{{#if:{{{2|}}}<!--
 +
-->|{{#vardefine:pagename|{{{2}}}}}<!--
 +
-->|{{#vardefine:pagename|{{SUBPAGENAME}}}}<!--
 +
-->}}<!--
  
-->|{{BreadCrumbsLayout|[[Main Page|Main]] > {{SUBPAGENAME}}}}}}<!--
+
-->{{BreadCrumbsLayout|[[Main Page|Main]] {{#var:path}} {{#var:pagename}}}}<!--
  
 
--></includeonly><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.
 
--></includeonly><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.
 +
 +
<hr>
  
 
Example: <nowiki>{{BreadCrumbs|[[Templates]], Layout}}</nowiki> {{BreadCrumbs|[[Templates]],Layout}}
 
Example: <nowiki>{{BreadCrumbs|[[Templates]], Layout}}</nowiki> {{BreadCrumbs|[[Templates]],Layout}}
 +
 +
<hr>
 +
 +
Example: <nowiki>{{BreadCrumbs|[[Templates]], Layout|ThisPage}}</nowiki> {{BreadCrumbs|[[Templates]],Layout|ThisPage}}

Revision as of 08:37, 24 January 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|[[Templates]], Layout}} Template:BreadCrumbsLayout


Example: {{BreadCrumbs|[[Templates]], Layout|ThisPage}} Template:BreadCrumbsLayout