User:NBarto/sandbox/navigation
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 or whatever style you wish.
Usage
editOnly the parent page has to be given as a parameter. Further ancestor pages are determined using LST. Set the parent page using <section> tags:
<section begin=parentpage/> Full title <section end=parentpage/>
Set display text (usually an abbreviation) of the current page using:
<section begin=navabbr/> Displaytext <section end=navabbr/>
You may want to surround these by <includeonly>'s. For more details see the template.
Drawbacks
editDue to known limitations of LST, it is not possible to embed the <section> tags in the template, which would have given a cleaner wikitext source. See Topic:U0oxpaoliottlmov, phab:T39256.
Example
editClick on one of the links below to see how it works, and what the source code looks like.
User:NBarto/sandbox/navigation/0