ElScheid, Bernhard wrote:
Sorry for yet another small problem:
I discovered that it should be possible to turn the page subtitle (which is usually
hidden by CSS) into a good way to show "breadcrumbs" adding some magic words to
MediaWiki:Tagline. The only problem: Links are not parsed correctly, neither in Wikicode
nor in HTML (actually both ways are not parsed at all).
Example:
{{SITENAME}}
{{#if: {{NAMESPACE}} |
{{NAMESPACE}}
}}
{{BASEPAGENAME}}
{{#if: {{#titleparts:
{{PAGENAME}} | 1 | 2 }} |
{{#titleparts: {{PAGENAME}} | 1 | 2 }}
}}
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3 }} |
{{#titleparts: {{PAGENAME}} | 1 | 3 }}
}}
Ideally, something like [[Main Page|{{SITENAME}}]], etc. should work. Any solution?
Thx
Bernhard
What do you have against the breadcrumbs that appear automatically on
namespaces with subpages?
To make that work, change at Skin.php wfMsgExt( 'tagline', 'parsemag' )
to wfMsgExt( 'bernhard-breadcrumbs', 'parse' ) and you will be able to
add that code to MediaWiki:bernhard-breadcrumbs