Titan Network

More Titan Projects => ParagonWiki => Topic started by: Aggelakis on August 20, 2011, 07:16:21 PM

Title: Odd question: Breadcrumbs
Post by: Aggelakis on August 20, 2011, 07:16:21 PM
How are the breadcrumbs implemented on Paragon Wiki? The little links at the top of the page that show up automatically if you are on a subpage, e.g.
http://paragonwiki.com/wiki/Keyes_Island_Reactor_Trial/Strategy
...has a link to Keyes Island Reactor Trial at the top, placed automatically by the wiki.

I'm creating a wiki for various personal uses, and have looked at several breadcrumb options, but none of them look like they function the way PWiki's does. I've searched this forum to no avail. (I can't find the old forums, to search there in case they're older than the Titan merge.) Are they called something else?
Title: Re: Odd question: Breadcrumbs
Post by: Sekoia on August 20, 2011, 09:27:41 PM
That's part of the subpage functionality. You have to have subpages enabled on the main namespace for it to work. And the parent page has to also exist. For instance, compare these two pages:

Ghost Widow's Embrace: Accuracy/Recharge (http://paragonwiki.com/wiki/Ghost_Widow%27s_Embrace:_Accuracy/Recharge)
Adjusted Targeting: To Hit Buff/Endurance (http://paragonwiki.com/wiki/Adjusted_Targeting:_To_Hit_Buff/Endurance)

The first has no breadcrumbs because there's no page "Ghost Widow's Embrace: Accuracy". The second has breadcrumbs because there is a page "Adjusted Targeting: To Hit Buff".

Note that there's no easy way to suppress the breadcrumbs on specific pages where you may not want them. Note also that you have to use subpage syntax; you can't, for example, have breadcrumbs that lead to "Adjusted Targeting" in the above unless you were to name the recipes like "Adjusted Targeting/To Hit Buff".

Mediawiki's Help:Subpages (http://www.mediawiki.org/wiki/Help:Subpages) may be helpful for further reading.
Title: Re: Odd question: Breadcrumbs
Post by: Aggelakis on August 21, 2011, 04:48:59 AM
Ooohh, SUBPAGES! That's why I couldn't find it in the official documentation. Subpages. Pppbbthhhh. Breadcrumbs, dag nabbit!

Wahoo! It works! I just had to add a line to LocalSettings.php and I have breadcrumbs!