Page MenuHomePhabricator

If Template:! is actually transcluded on a page, VisualEditor still displays it as a pipe.
Open, LowPublic

Description

{{!}} appears as a pipe in both the source and visual editors. {{!|foo}} displays as a pipe in VisualEditor but when the page is saved (or previewed from the source editor) it transcludes the actual content of Template:!, which is a soft redirect notice. This is misleading; VisualEditor also allows parameters to be set on {{!}} as though it were a normal template, and the user is unlikely to be aware of the problem until they have saved the page.

{{!}} should be treated specially by VisualEditor; the user should probably be told in some way that it isn't a template, and they definitely shouldn't be allowed to set parameters on it. If there are parameters set on it when the editor is opened, then VisualEditor should not misleadingly display a pipe.

NB: this is all observed while editing the English Wikipedia, although I presume this doesn't make much difference.

Event Timeline

GKFX created this task.Dec 11 2017, 12:38 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 11 2017, 12:38 PM
GKFX updated the task description. (Show Details)Dec 11 2017, 12:41 PM
Deskana triaged this task as Low priority.Dec 12 2017, 7:51 PM
Deskana added a subscriber: Deskana.

{{!}} is now a magic word. According to the documentation of this magic word, it does not support any parameters. This means that {{!|foo}} is not a valid use of the magic word, so the behaviour of this wikitext is not really defined. Fixing a preview issue for poorly defined wikitext is not of immediate priority.

Deskana moved this task from To Triage to Freezer on the VisualEditor board.Dec 12 2017, 7:52 PM