Extension:BreadCrumbs (Kimon)

Description
Shows a list of visited pages during the user's session. Very useful when you want to know how you arrived wherever you are.

If the page being visited is already on the list, then the list does not grow (no dupes) and if it were a prior page, the list shrinks.

Also, a new user preference is created to allow users to optionally have this feature enabled to them. The new T/F flag is added to the "Misc." tab of the user preferences.

The line with the links is placed at the bottom of the page but, all formatting options can be easily modified by editing the accompanying CSS.

See the bottom of this page for a sample

Bread crumbs: Main Page &gt; Category:All extensions &gt; Extension:BreadCrumbs (Kimon)

Parameters

 * $wgBreadCrumbsDelimiter:Defines the delimiter to use between the individual bread crumbs. The default value is " &gt; ".
 * $wgBreadCrumbsCount:Specifies the number of items to include in the list. Default is 5.

Installation
Follow these steps to install the extension:

1. Create a directory under "extensions" called "BreadCrumbs"

2. Create a new file called "BreadCrumbs.php" and paste the following code:

3. Create a new file called "BreadCrumbs.css" and paste the following code:

4. Append this line of code to the end of your LocalSettings.php

5. Activate the breadcrumb in your user preferences ("Misc" tab, checkbox "Use breadcrumbs")

Alternative style
If you prefer a grey background rather than yellow, and to position it at the top rather than bottom of the page, then try this CSS instead in step 3:

Workaround for MediaWiki v1.16 and beyond
Special:Preferences has been changed in MediaWiki v1.16. To get the extension to work, delete or comment out this snippet from BreadCrumbs.php. It will now work, but it will appear for all users rather than being an option in preferences:

Note: This work-around does not work on v1.16. Commenting/Deleting the above snippet, produces this error:
 * Detected bug in an extension! Hook BreadCrumbs::output failed to return a value; should return true to continue hook processing or false to abort.

--JSingleton 13:35, 1 September 2010 (UTC)

Wikis using this extension

 * Klusopedia - A Dutch wiki for Home Improvement and DIY instructions, tips and tricks!