Difference between revisions of "Template:Breadcrumb"

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.
(Added "next" variable and current pagename to breadcrumb trail.)
m (Reduce font size.)
 
Line 16: Line 16:
 
</pre>
 
</pre>
  
</noinclude>&lArr; [[{{{1|Table of Contents}}}]]{{#if: {{{2|}}}|<nowiki> | </nowiki>[[{{{2}}}]] }}{{#if: {{{3|}}}|<nowiki> | </nowiki>[[{{{3}}}]] }}{{#if: {{{4|}}}|<nowiki> | </nowiki>[[{{{4}}}]] }}{{#if: {{{5|}}}|<nowiki> | </nowiki>[[{{{5}}}]] }}<nowiki> | </nowiki><b>{{PAGENAME}}</b>{{#if: {{{next|}}}|<nowiki> | </nowiki>[[{{{next}}}]] }} &rArr;
+
</noinclude><font size=-2>&lArr; [[{{{1|Table of Contents}}}]]{{#if: {{{2|}}}|<nowiki> | </nowiki>[[{{{2}}}]] }}{{#if: {{{3|}}}|<nowiki> | </nowiki>[[{{{3}}}]] }}{{#if: {{{4|}}}|<nowiki> | </nowiki>[[{{{4}}}]] }}{{#if: {{{5|}}}|<nowiki> | </nowiki>[[{{{5}}}]] }}<nowiki> | </nowiki><b>{{PAGENAME}}</b>{{#if: {{{next|}}}|<nowiki> | </nowiki>[[{{{next}}}]] }} &rArr;</font>

Latest revision as of 07:36, 24 July 2010

A simple template to consistently format a breadcrumb trail. Up to five names can be used. The names have to be exact page references. Don't include the current page name, it will be added automatically to the end of the trail. If used with out any variables, it will point to the page Table of Contents. The optional named variable "next" can be used to point to the next page in a sequence.

Usage

{{Breadcrumb|<Enter the First Page Name>|<Optional: Enter another name>|next=<Enter another name>}}

Example:

{{Breadcrumb|Table of Contents|Quality Assurance and Problem Reporting Guidelines}}

As shown below

{{Breadcrumb}}

Table of Contents{{#if: | | [[{{{2}}}]] }}{{#if: | | [[{{{3}}}]] }}{{#if: | | [[{{{4}}}]] }}{{#if: | | [[{{{5}}}]] }} | Breadcrumb{{#if: | | [[{{{next}}}]] }} ⇒