To contact staff directly or to report bugs, please use Special:Contact.
I'm looking for a way to replicate what happens with references with span ids also known as anchors. For example:
This is a statement[1].
- ↑ This is a reference
To click on the [1] highlights the relevant reference below. Is there any way to replicate this with span ids?
For those unfamiliar with span ids if you click here, you will be directed to the sentence "Ut ac elementum lacus." below. They're used to link to part of the page that isn't directly under a title.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis eu ipsum eget arcu iaculis dignissim et ut nulla. Sed condimentum congue erat at mollis. Aliquam cursus, nulla id porta fermentum, velit massa laoreet turpis, et rhoncus nisi risus sit amet risus. Aliquam in nisl in tortor porta lacinia. Curabitur vestibulum mattis tristique. Quisque in lectus sollicitudin magna tincidunt lacinia. Nunc odio mauris, congue bibendum fermentum vitae, accumsan convallis metus. Ut vitae augue in risus porta suscipit. Ut ac elementum lacus. Proin faucibus mauris pellentesque metus blandit fermentum. Aliquam sapien quam, volutpat sagittis sollicitudin ac, sodales vitae erat. Sed id massa quis justo placerat vulputate vitae non leo. Morbi luctus, elit et scelerisque fringilla, nibh augue rutrum nisl, ac ullamcorper quam lorem vitae lorem. Ut semper neque vitae eros euismod tincidunt. Nulla posuere euismod justo in mattis.
Any ideas? User:Cåm/Signature
- wikipedia:en:template:Ref_label & wikipedia:en:template:Note_label & wikipedia:en:template:Ref & wikipedia:en:template:Note-- 70.24.186.245 08:33, November 9, 2012 (UTC)
- Um you can block the ID Captain<Pikachu 08:42, November 9, 2012 (UTC)
Solution found using CSS: create a class such as .targethilite:target {background-color:#3a3a3a;} which can then be used (span class="targethilite" id="anchorname">TEXT</span>) to highlight the relevant text. Credits to Joeytje50 for this. User:Cåm/Signature