Page MenuHomePhabricator

Editing existing embedded templates in the article name space with the visual editor
Open, Needs TriagePublic

Description

Now, after editing a embedded template in the source code, the VE output into the source code follows the format statement of JSON definition. The traditional source code editor may be confused when the source text of the template usage is changed from the inline format to the block format or via versa. A specially because in the german wikipedia the documentation of the templates contains copy templates in both forms (inline and block). I suggest a analyses of the existing source code while moving context of the template parameters into the VE mask to find out when a block or inline format is used. (may be a finding a '/n' indicates a block format). The output of the VE into the source text may then distinct two cases:

  1. If he format statement of the JSON definition is equivalent to original source code (block or online), than the defined format is used.
  2. Otherwise a default output format (inline or block as in the original source) is used

This would be much more closer to the source created by a traditional text editor and didn't change any text created by the VE.

Event Timeline

Wivoelke renamed this task from Editing existing source code in rhe article name space with the visual editor to Editing existing embedded templates in the article name space with the visual editor.Feb 16 2018, 3:36 PM