Come up with a nice way to edit the target of a link whose anchor is a node
Open, LowPublic8 Story Points

Description

Steps to reproduce:

  1. Create a page, using a wikitext editor, that contains this link: [[Parrot|{{lang|fr|perroquet}}]]
  2. Save the page. Verify that the link exists.
  3. Edit the page in visual mode. Try to remove or change the internal link.
  4. I couldn't do it; could you?
Restricted Application added a project: VisualEditor. · View Herald TranscriptNov 7 2016, 6:38 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Just in case you're wondering whether there are any real uses for this kind of a link, or what else people might want to do, please see an unrelated discussion from today: https://en.wikipedia.org/w/index.php?oldid=748301382#How_to_widen_clickable_space_for_linked_.22I.22.3F

Schnark added a subscriber: Schnark.Nov 8 2016, 8:54 AM

It's possible, though not obvious:

Click on the link, the template flyout will show up.

To remove the link, use "Clear styling" from the format menu (or press ctrl+m).
To change the link, use the link button in the toolbar (or press ctrl+k). This will show the normal link editing flyout.

I can get the normal link editing flyout: just place your cursor at the very start of the link/template, and the flyout automatically appears. I just can't make it do anything useful.

The circle-with-a-slash button (for removing links) in the normal link editing flyout has no effect.

Changing the link doesn't work for me. This is what I get when I try to change the link from "Parrot" to "Example" (cursor to reveal the link flyout; Command-K to open the link dialog):

The resulting wikitext is [[Example]][[Parrot|{{lang|fr|perroquet}}]] – which is no change to the existing link.

If you'd like to try it yourself, then feel free to test in my sandbox: https://en.wikipedia.org/w/index.php?oldid=748335340#Poetry

Interesting. Now I even succeed to get a combined flyout:

Editing the link from there works as expected.

@Whatamidoing-WMF : I've tried to edit like you did, and I was not able to remove the link. However, If i click on the template and click on the link icon on the toolbar, I can edit the link.

@Schnark, how did you get that?!? I've always see that on mockups, never in a live-editing environnement. I'm jealous.

Perhaps the behavior is browser-specific in addition to depending upon exactly how you trigger the link box. I'm running Version 10.0.1 (12602.2.14.0.7) on macOS "Sierra" 10.12.1 (16B2657) at the moment. What are you using, @Schnark?

Elitre added a subscriber: Elitre.Nov 9 2016, 3:24 PM

@Schnark, how did you get that?!? I've always see that on mockups, never in a live-editing environnement. I'm jealous.

I've just managed go get that result (eureka) by selecting the whole word, that includes the template and the link.

Following that process, I can get the combined tool in Firefox 49 but not Safari 10.

Perhaps the behavior is browser-specific in addition to depending upon exactly how you trigger the link box. I'm running Version 10.0.1 (12602.2.14.0.7) on macOS "Sierra" 10.12.1 (16B2657) at the moment. What are you using, @Schnark?

Firefox 46 (I'm neither responsible for nor allowed to update).

It's possible to get the combined flyout by just moving the cursor from left to right. At some point it will eventually show up.

Jdforrester-WMF renamed this task from Potentially valid but complex link can't be edited to Come up with a nice way to edit the target of a link whose anchor is a node.Dec 13 2016, 8:15 PM
Jdforrester-WMF triaged this task as Low priority.
Jdforrester-WMF set the point value for this task to 8.
Jdforrester-WMF moved this task from To Triage to TR1: Releases on the VisualEditor board.