Page MenuHomePhabricator

VisualEditor: Links to disambiguation pages should be highlighted in a different color
Closed, ResolvedPublic

Description

This is related to bug 61072 and bug 50240.

Please consider marking all links to disambiguation pages in a different color, not just in the link inspector tool itself, but in the regular text that editors see when typing in VisualEditor. This will help editors realize that there is something different (and probably wrong) with links that were previously added to the page.


Version: unspecified
Severity: enhancement

Details

Reference
bz70738

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:54 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz70738.

They already are! (Or rather can be.) I implemented a way to color them in 066283dde745fcc372ffab8d753962858813d032 (the links on the editing surface now have a .mw-disambig class that can be styled with user/site CSS). I also did the same functionality in the MW parser (8cc16d021410f49fa12a2f35c97cdac51adf4380, this is not rolled out yet).

I'm not sure if we want to actually color them. Colors can be distracting/confusing, especially if it's not clear what they mean. MediaWiki has been providing a .mw-redirect CSS class in parser output for years and it was never styled in any way, as far as I know. (Some special pages mark redirects with italics, though.)

For the record, such coloring functionality has sometimes been implemented by gadgets. pl.wp has a opt-in gadget to color redirects green and disambigs maroon and add a form to the page to selectively correct the links; ru.wp has some tool enabled for everyone that gives disambigs pink background with red outline (or had, last time I checked). I am not aware of any such thing on the English Wikipedia (but I'd be love to learn about it if it exists).

BD2412 has specifically requested that this be available to everyone, not just for himself/people using a script.

This is (effectively) a duplicate of bug 7936 (which is only asking for Special:AllPages, but we'd also change it in the content display). It's nothing particularly specific to VisualEditor; VE just follows MW's lead here.

  • This bug has been marked as a duplicate of bug 7936 ***