Page MenuHomePhabricator

Adding a link with an interwiki prefix in VE doesn't work
Closed, ResolvedPublic0 Estimated Story Points

Description

Adding a link with an interwiki prefix doesn't do what I expect it to do.

In the English Wikipedia I type :fr:ASCII in the link inspector, but what I actually get when I save is fr:ASCII. The software thinks that it's an interlanguage link rather than an inline interwiki link to an article in the French Wikipedia, and doesn't show it in the text.

The colon in the beginning must not be removed if it was typed by the editor.

Event Timeline

If you paste the full external link Parsoid will abbreviate it to an interwiki link. What could be improved is an interface for adding such links with autocomplete.

Jdforrester-WMF set the point value for this task to 8.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.
Gryllida added subscribers: Gryllida, Krenair, Framawiki.

Copied my comment from T188871 which is a duplicate of this task I think:

Yes, it would be nice to have autocomplete too for people who do not yet know the page name.

Suggested look and feel:

wiki-wikilinks.png (1×1 px, 108 KB)

(I "stole" the dropdown appearance from https://stats.wikimedia.org/v2/#/all-projects .)

Deskana claimed this task.
Deskana changed the point value for this task from 8 to 0.
Deskana subscribed.

The original bug here was that writing :fr:ASCII into the link inspector gives you fr:ASCII instead of :fr:ASCII. I just tested this, and this bug appears to be fixed, so I'm closing as resolved.

@Gryllida What you're requesting seems to be a separate thing from this, since this was a bug report and you're making a feature request. It should probably be in a different task.

Maybe unmerge Gryllida's task and/or repurpose it?

I believe I reopened that, please do other necessary changes.