User:NBarto/sandbox/navigation

Main page This is a testing page for a (now operational) template that creates a navigation bar, similar to the breadcrumbs in subpages. Instead of having to structure the pages into subpages (which can be inconvenient for different reasons) this navigation bar can be used on all pages, and link to all pages (that are editable by normal users). It looks like this:

Navigation: link → link → link → current page

It is, of course, possible to modify the template to get the ordinary breadcrumbs style.

Usage
Only the parent page has to be given as a parameter. Further ancestor pages are determined using LST. Set the parent page using &lt;section&gt; tags: Full title

Set display text (usually an abbreviation) of the current page using:

Displaytext

You may want to surround these by &lt;includeonly&gt;'s. For more details see the template.

Drawbacks
Due to known limitations of LST, it is not possible to embed the &lt;section&gt; tags in the template, which would have given a cleaner wikitext source. See Topic:U0oxpaoliottlmov, T39256.

Example
Click on one of the links below to see how it works, and what the source code looks like.

User:Bart Michels/sandbox/navigation/0

User:Bart Michels/sandbox/navigation/1

User:Bart Michels/sandbox/navigation/2

Also see

 * Extension:Labeled Section Transclusion
 * Extension:Variables
 * Extension:PageVariable
 * Extension:Simple Breadcrumb
 * Extension:BreadCrumbs