Actions

Template

Difference between revisions of "BreadCrumbs"

From Gulf of Fallen Stars

 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{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.
-->|{{#vardefine:path|> {{#replace:{{{1|}}}|,|<wbr> > <wbr>}} >}}<!--
+
 
-->|{{#vardefine:path|>}}<!--
+
Not technically a breadcrumbs path, since it doesn't necessarily match the page(s) the user was previously on.
-->}}<!--
+
 
 +
<hr>
 +
 
 +
Example: <nowiki>{{BreadCrumbs}}</nowiki> {{BreadCrumbs}}
  
-->{{#if:{{{2|}}}<!--
+
<hr>
-->|{{#vardefine:pagename|{{{2}}}}}<!--
 
-->|{{#vardefine:pagename|{{SUBPAGENAME}}}}<!--
 
-->}}<!--
 
  
-->{{BreadCrumbsLayout|[[Main Page|Main]] {{#var:path}} {{#var:pagename}}}}<!--
+
Example: <nowiki>{{BreadCrumbs|Templates,Layout}}</nowiki> {{BreadCrumbs|Templates,Layout}}
  
--></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.
+
<hr>
  
Not technically a breadcrumbs path, since it doesn't necessarily match the page(s) the user was previously on.
+
Example: <nowiki>{{BreadCrumbs|World Creation,World Creation/World Tags}}</nowiki> {{BreadCrumbs|World Creation,World Creation/World Tags}}
  
 
<hr>
 
<hr>
  
Example: <nowiki>{{BreadCrumbs|[[Templates]], Layout}}</nowiki> {{BreadCrumbs|[[Templates]],Layout}}
+
Example: <nowiki>{{BreadCrumbs|Templates,Layout|ThisPage}}</nowiki> {{BreadCrumbs|Templates,Layout|ThisPage}}
  
 
<hr>
 
<hr>
  
Example: <nowiki>{{BreadCrumbs|[[Templates]], Layout|ThisPage}}</nowiki> {{BreadCrumbs|[[Templates]],Layout|ThisPage}}
+
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|> {{link|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>

Latest revision as of 12:42, 3 April 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 > Layout > BreadCrumbs

Example: {{BreadCrumbs|World Creation,World Creation/World Tags}}

Main > World Creation > World Tags > BreadCrumbs

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

Main > Templates > Layout > ThisPage

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

Main > Templates > Layout > BreadCrumbs