Page MenuHomePhabricator

support custom wikilink procedure per-wiki
Open, LowPublic


When adding a wikilink, Visual Editor provides a dialog with autocomplete for local main namespace articles. There is no autocomplete or easy way to add link to an article from another wiki. The contributor is only able to do this if they know the relevant interwiki prefix ('w', 'meta', 'commons') and already know the target page name.

VisualEditor also does not currently know of custom templates, like this one, which some wikis use for wikilinking.

It would be nice to have this all fixed.

Example interface from one of the comments:

Event Timeline

Gryllida created this task.Mar 4 2018, 7:39 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 4 2018, 7:39 PM
Framawiki edited subscribers, added: Framawiki; removed: VisualEditor.
Krenair added a subscriber: Krenair.Mar 4 2018, 9:39 PM

If you paste in the full URL as an external link to VE, Parsoid actually appears to insert an interwiki link where possible
E.g. if I make some text like 'asd', and turn it into a link to then the wikitext it will save it is actually [[mw:MediaWiki|asd]]

Hi Krenair. This is nice, but it would be nice to have autocomplete too for people who do not yet know the page name.

Suggested look and feel:

(I "stole" the dropdown appearance from .)

I'm not sure how to incorporate custom W template into the suggestion. Perhaps list it under 'Wikipedia - English (custom)' but that would be confusing. :-(

Perhaps the best solution here is to allow custom definitions for some entries, for example, define 'English Wikipedia' as {{W|enwp page name|text to show}} despite showing the user the :w: prefix when they are searching for the page.

Probably a duplicate of T133535

Elitre reopened this task as Open.Mar 9 2018, 10:56 AM
Gryllida updated the task description. (Show Details)Mar 12 2018, 4:45 AM
Deskana triaged this task as Low priority.Aug 17 2018, 10:33 AM
Deskana moved this task from To Triage to Freezer on the VisualEditor board.
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptJul 25 2019, 7:49 AM
Thomas_Shafee added a comment.EditedJul 25 2019, 7:51 AM

Just a note to say this would be extremely valuable for WikiJournals, since almost all links in them are interwiki links pointing to wikipedia articles. (discussion, draft technical wishlist)

Mu301 added a subscriber: Mu301.Nov 19 2019, 7:44 PM