Thx,
this was just a sample.
In detail I have 10 different links on the calling page. All to the same
SamplePage.
But on sample page I want to call a template, and each of the 10 links
shall pass a different parameter into the template call.
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