[Mediawiki-l] breadcrumbs: tagline with internal links

mrthetooth mrthetooth at burningsea.com
Tue Apr 5 21:15:16 UTC 2011


You might have already tried this, but to link to the Main Page, make sure that there is a space, and that the capitalization is correct:
	
	[[Main Page | MyWiki]]

-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org [mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Scheid, Bernhard
Sent: Tuesday, April 05, 2011 1:50 PM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] breadcrumbs: tagline with internal links

To create a sort of breadcrumbs I use MediaWiki:Tagline (need to change CSS), Extension:ParserFunctions, 

and the following wiki text:

MyWiki 
{{#if: {{NAMESPACE}} | 
> {{NAMESPACE}} 
}}
> {{#titleparts: {{PAGENAME}} | 1 | 1 }} 
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2 }} | 
> {{#titleparts: {{PAGENAME}} | 1 | 2 }} 
}}
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3 }} | 
> {{#titleparts: {{PAGENAME}} | 1 | 3 }} 
}}

This results, for instance in a tagline like this: 

MyWiki > Help > Editing > Lists 

on a page with the title Help:Editing/Lists

Ideally, I would like to add links, for instance 

[[Mainpage|MyWiki]], etc. but this does not work. The code in MediaWiki:Tagline is not parsed into a linktext, even if I try somethig like 
{{fullurl:Mainpage}}, etc.

Any suggestion?

Thx in advance

Bernhard

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l



More information about the MediaWiki-l mailing list