Forums: Helping Hand > Reference popups

Use the following template for a nicely presented post:

{{Forum post|Write your message here!|~~~~}}

I have enabled popups when you hover your mouse pointer over a reference tag. It will show the reference without having to click or scroll to the bottom of an article. A reader (whose name escapes me) requested this a while ago and I thought I'd give it a try and see how the community likes/dislikes it. Please try it out and give feedback here.
Moviesign (talk) 17:28, October 16, 2017 (UTC)

First observations: Using the little gear menu on a reference popup, I turned off the animation and set the popup delay to 600 ms. This puts the delay at about the same speed as if you hover over a wikilink, and I don't want to waste those 300ms that it takes to animate the popup. With these settings, I find the popups tolerable and actually very nice. The links inside the popup work.
Moviesign (talk) 18:22, October 16, 2017 (UTC)

That works perfectly. :D It even works on footnotes. :D I have no complaints, except a minor note that the left margin is about a pixel short, cropping the text. But that's hardly noticeable. My only real concern is that, since some readers don't seem to know what the little numbers mean, they won't realise. I'll advertise it in the next Current Clack.
— BadCatMan (talk) 10:58, October 17, 2017 (UTC)

I think readers who use the refs/notes at all will figure it out pretty quickly, but since we pride ourselves on our references, a clack about it would not be out of place. :)
Moviesign (talk) 13:43, October 17, 2017 (UTC)

I tried this out in Monobook and I'm not seeing the left margin problem that you report. The text is fully legible on my two browsers (Firefox on Linux and Firefox on Windows 10). What browser/operating system are you using? I might be able to tweak the CSS, but I have to be able to reproduce the problem.
Moviesign (talk) 13:48, October 17, 2017 (UTC)

I also love this feature! And I did not encounter the margin problem. I did stumble upon some instances where it did not work however, though I cannot see why. E.g. in Bar-lgura, first line, reference 5, or in many but not all citations in Huzuz. By the way, the feature was originally requested here by User:Zeromaru X .
Daranios (talk) 19:21, October 17, 2017 (UTC)

It seems to have issues with characters like : and # in the name field of the <ref> tags. I fixed Bar-lgura by removing those. I will look into running the bot over our pages and replacing those chars with something else.
Moviesign (talk) 19:57, October 17, 2017 (UTC)

I would like to run the bot over a bazillion pages and change : and # in the name field of the <ref> tags into a different character that doesn't break the reference popups. I can use the underscore _ or a period, but would rather not use a dash since we use this to set off the page number. Anybody have a preference? Speak up soon or I will make an executive decision.
Moviesign (talk) 01:44, October 18, 2017 (UTC)

I was waiting for this :) Thanks Movie.
Zero (talk) 01:55, October 18, 2017 (UTC)

I'm using Firefox 52.4.0 on Windows XP. It's only visible on certain symbols: A, {, and H. I also see it on section titles starting with A or V, so it might be a Monobook skin margin issue. I'm not yet sure if it's my CSS or not.
— BadCatMan (talk) 02:58, October 18, 2017 (UTC)

FYI, I love this.
~ Lhynard (talk) 15:51, December 5, 2017 (UTC)

My bot is currently running over 19K+ pages and replacing : and # with a period in the name parameter of all <ref> tags. For the record, the regular expressions I'm using are:
Find Replace with
(<ref name="[^:#"]*)(:|#)([^:#"]+)([:#]+)([^:#"]*") $1.$3.$5
(<ref name="[^:#"]*)(:|#)([^:#"]*") $1.$3

This will detect up to two occurrences of the bad symbols (and must be specified in the order shown). I've noticed that there are a few references that don't put the name inside double quotes, so this change will not affect those, but the ones I saw also did not have the bad characters. So after this bot run, if you find any pages where the popup references don't work, please let me know.

Moviesign (talk) 17:34, December 16, 2017 (UTC)