Extension:BrettCrumbs

What can this extension do?
BrettCrumbs is a play on words for BreadCrumbs Navigation. This form of navigation assumes that you have created your wiki pages in a hierarchy based on the forward slash ("/") character. Used BrettCrumbs name because of vanity and because the BreadCrumbs extensions existed and were plentiful. Unfortunately none did what I needed.

Usage
So to use BrettCrumbs Extension install as described below and then create pages using the "/" character to show sub pages

On the last page (foo/bar/ray) it will have header:
 * create article http://www.yourmediawiki.org?title=foo
 * then create article http://www.yourmediawiki.org?title=foo/bar
 * then create article http://www.yourmediawiki.org?title=foo/bar/ray

home < foo < bar < ray

Useful Macro - SubPage
I created this macro that is useful for creating sub pages. Rather than typing /bar you can just use the macro This becomes useful when you start very deep nesting with long names. To create this macro go to the url http://www.yourmediawiki.org/index.php?title=Template:SubPage&action=edit /|

Instructions
This template is used when creating sub-page links off the current page. This will give the page hierarchy so that the breadcrumbs will be automatically generated. The template can be called in the following ways

Args:
 * Sub Page Location The location of the sub-page
 * Sub Page Name (optional) The displayed name of the sub-page

Example - Typical Page
This would be the mark up of a typical page using the SubPage macro defined above



Download instructions
Please cut and paste the code found below and place it in. Note: stands for the root directory of your MediaWiki installation, the same directory that holds .

Installation
To install this extension, add the following to :