Hi, as far as I know it's not possible to achieve that in pure wikitext, but the :target pseudo-class can help you. Suppose you have a page like this:
<div class="section" id="mysection"> Hi! </div> <div class="section" id="yoursection"> Hello! </div> <div class="section" id="anothersection"> Lorem ipsum. </div>
and a MediaWiki:Common.css like this:
.section { display: none; } .section:target { display: inherit; }
All sections will be hidden by default, but when visiting the page with #mysection, #yoursection, #anothersection, the selected one will magically appear.
Il 25/01/2015 17:45, Frank Baxmann ha scritto:
Hi,
I have a simple question about using anchors in links.
Example link: [[SamplePage#SampleAnchor]]
Is there any possible way known to get information about the used anchor in "SamplePage"?
For example with ParserFunction {{#ifeq: <here the anchor text>| compare text|.....}}?
Greetings
Frank Baxmann
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l