Page MenuHomePhabricator

"Insert Link" dialog doesn't recognize input like "Foo|Bar"
Closed, DeclinedPublic

Description

I have the text snippet:

südpfälzische Dialekte|südpfälzischen Dialekte

selected, and want to enclose it in double square brackets
using the "insert link" button (which unnecessaraily loads
an extra subwindow, and unnecessarily makes me click an OK
button in it) but I get an error message saying something
like "malformed link" and have the OK button grayed. Why?

There is nothing wrong with the link. When I entered [[ ]]
manually, I got what was intended and it worked.


Version: unspecified
Severity: enhancement
URL: http://de.wikipedia.org/w/index.php?title=Diskussion:Pf%C3%A4lzische_Dialekte&action=edit&section=21

Details

Reference
bz25617

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:12 PM
bzimport added a project: WikiEditor.
bzimport set Reference to bz25617.
bzimport added a subscriber: Unknown Object (MLST).

It's doing this because "foo|bar" is not a valid title. You meant to create a link to "foo" with text "bar"; the current way to do this with the dialog is to write "foo", select that, open the dialog and change the link text there.

I hate all this unnecessary complicated stuff. We had a button doing exatly the service I want in the old editing interface.
(I don't object adding possibilities, even adding "Are you sure" & "... damn sure?" popups as users want them, but I want simple things simple, and not loose good working functionality)

Still valid, but lowest priority. Moving to WikiEditor.

NOTE: This report specific to the link dialog feature and doesn't happen when using the basic WikiEditor button for links.

Ideally, and again under dialog mode, if a user were to highlight südpfälzische Dialekte|südpfälzischen Dialekte then invoke the link dialog, content to the left of the | separator should be auto-populated into the Target page or URL: field while the content to the right of the separator should be auto-populated into the Text to display: field.

What happens now is everything highlighted -- including the separator -- is auto-populated to both fields.

While it may be nice to have the link dialog be that intuitive, if you're fluent enough to be building complex, internal and/or anchored wiki-links, why in blazes would you go through the hassle of using the link dialog vs link-button in the first place? Personally I wouldn't even consider this a bug -- more like a requested enhancement.

TheDJ claimed this task.

I am totally supporting GOIII on this. If you know so much about wikitext, then type wikitext and don't bother with the link dialog. "you are not the target audience" :)

We want to accommodate new and non-Wikitext users. That needs to be done in a logical way.