Page MenuHomePhabricator

Superscript links from citation template { { rma } } do not function in Minerva
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Go to this testcase page: https://en.wikipedia.org/wiki/Template:Rma/testcases
  • Click on one of the the theme links beneath "different skins with these links" in the box at the top of the page.
  • Click on one of the superscript callout links like "[L2]".
  • On Vector (2022), Vector legacy, or Monobook: the browser jumps to the reference and highlights it (expected behavior)
  • On MinervaNeue (mobile): no change is observed

What happens?:

On only MinervaNeue, the superscript links generated by the { { rma } } have no effect when tapping them. If you long-press and copy the link it appears to be the same link as any of the desktop themes.

What should have happened instead?:

Either:

  • The browser should jump down to the linked reference,
  • Or there should be a citation popup.

Other information (browser name/version, screenshots, etc.):

See https://en.wikipedia.org/wiki/Template_talk:Rma for more details.

This bug was observed on a Samsung Galaxy phone (Android, Chrome), a Lenovo ThinkPad laptop (Windows 10, Firefox/Edge/Chrome), and an iPad (iOS, Safari).

With Javascript disabled in the browser: the links work correctly under Minerva. (Tested on Windows 10 with Firefox.)

Event Timeline

This is probably because Minerva shows references as popups instead of navigating to the reference's section. The <sup class="reference"> makes Minerva think this should happen here too, but it doesn't.

Does this template need to use the reference class? I can't see any specific styling attached to that class in neither Minerva nor Vector, so I think it's unnecessary. When I remove that class (even just with the browser inspector), the link starts working.

Edit: I see that that class is necessary for reference tooltips to work in the desktop version. In which case the fix might not be so simple.

Thanks for the feedback. I've updated the sandbox template to (1) remove the reference class for mobile links, and (2) prefix the anchor link with "CITEREF" for the desktop popup. I will ping other editors on Wikipedia and see if this works consistently.