Topic on 2017 wikitext editor/Feedback

Suggestion: "Intelligent" interwiki link conversion

11
InsaneHacker (talkcontribs)

Greetings wikitext editors!

I've been using the new editor for a while now, and I really appreciate the way that copying a Wikipedia URL into the editor automatically formats it to be an internal wikilink. It's one of those features that might help newcomers who want to link to another article but don't know how the wikilink system works.

However, when I paste a link from en-wiki onto da-wiki, it's still treated as if it was an internal article on da-wiki. Would it be possible to make an (optional?) feature that detects if the link comes from another wiki and automatically adds the [[:en:]] prefix to the link? This could also apply to interwiki links to other projects (i.e. [[meta:]]).

Would this be possible?

IKhitron (talkcontribs)

As I can remember, I saw phabricator issue on this.

Gżdacz (talkcontribs)
Whatamidoing (WMF) (talkcontribs)

It looks like this will be a "can't have both" issue. We can either:

  1. turn all URLs (from all wikis known to the inter wiki map) into local wiki links, *or*
  2. leave URLs alone.

What's not available for technical reasons (even though we'd all prefer it) is:

  • magically turn local URLs into local wiki links (e.g., [[link]]) and 'foreign' URLs into interwiki links (e.g., [[:m:Link]]).

I haven't talked to the team about this, but I believe that they are open to either of the first two options. They're going with option #2 at the moment, but if you'd rather have option #1, then please speak up.

Gżdacz (talkcontribs)

What about doing both and letting the user choose one in his/her configuration?

I expect that #1 would do better as the default for new users and those editing from IP.

Whatamidoing (WMF) (talkcontribs)

Individual configurations usually create performance problems, and we'd still have to decide on a default setting (which nearly all users would keep).

Gżdacz (talkcontribs)

What kind of performance problem might this configuration option create?

#1 seems to be the right choice for default. I guess that the need to link beyond local wiki comes only later, when users advance in skills and start undertaking more complex edits.

Gżdacz (talkcontribs)

One more comment:

In my opinion #1 is better for newcomers and IPs, #2 is more comfortable for advanced users.

You are asking your question here, where newbies are probably severely underrepresented. Therefore the answers collected here are likely to be biased.

Whatamidoing (WMF) (talkcontribs)

@InsaneHacker, what's your preference between #1 and #2? Even if it's configurable per account, there must be a default/starting position.

InsaneHacker (talkcontribs)

I think #1 would be best as the standard, and #2 as an optional setting.

Whatamidoing (WMF) (talkcontribs)

They did that originally, and we got complaints about it. Perhaps it needs to be smarter about it (translate interlanguage links but not interwiki links, or something like that).

Reply to "Suggestion: "Intelligent" interwiki link conversion"