Topic on VisualEditor/Feedback

How to prevent VE from making certain automatic transformations?

6
Bdijkstra (talkcontribs)

In this edit the user fixed a typo, but also there were three unwanted automatic transformations. Is there a way to prevent this?

Alsee (talkcontribs)
197.235.232.83 (talkcontribs)

The media issue is resolved. The second issue is caused by the non-standard "link" with transclusions. Visualeditor / parsoid doesn't deal with it correctly. That transformation is certainly an issue because any change to the document triggers it.

Bdijkstra (talkcontribs)

Great, the media issue is now indeed acceptable. I see however that it still replaces spaces by underscores in some cases.

197.235.232.83 (talkcontribs)

Indeed. To answer the main question, the simplest way to prevent unintended transformations is to avoid using exotic wikitext markup. Transcluding part of a link is not only unusual but it is potentially confusing to new editors. In fact, I was under the impression that such transclusions should only work if prefixed by ":" , e.g.:

{{:Mediawiki:Example}}

Maybe the real issue is that perhaps second transformation should not work even with the current mediawiki parser. It may be an unintended side-effect because there could certainly be a template named "Template:Mediawiki:Example".

Although it doesn't discount the accuracy of your report. Visualeditor should certainly not be transforming things that the user didn't deliberately edit.

Bdijkstra (talkcontribs)

You are right, the link with Mediawiki:-transclusion should be substed; if and when the tracking category is renamed, its links are easy enough to find.

Reply to "How to prevent VE from making certain automatic transformations?"