btw. if someone gives me the php class where I can find this info it's
enough too.
I use it in programming an extension anyway...
On 25.01.2015 19:24, Ricordisamoa wrote:
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
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l