Page MenuHomePhabricator

The VisualEditor cannot add or remove list-defined references
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

Adding a reference:

  • Go to an article using list-defined references like this one: https://en.wikipedia.org/wiki/Police_jury
  • Edit the article with the VisualEditor.
  • Click on the "References" section.
  • Click the "Cite" button on the toolbar to add a reference.
  • It will be added to the body text following the references section rather than added to the list-defined references.

Removing a reference:

  • Go to an article using list-defined references like this one: https://en.wikipedia.org/wiki/Police_jury
  • Edit the article with the VisualEditor.
  • Click on the "References" section.
  • Click on one of the listed references.
  • A box will pop up to change the reference, but with no option to remove it.

Removing citations to a reference:

  • Go to an article using list-defined references like this one: https://en.wikipedia.org/wiki/Police_jury
  • Edit the article with the VisualEditor.
  • Remove all citations to a list-defined reference.
  • The reference will disappear from the "References" section.
  • Save the page.
  • There will now be a large, red error message about the unused list-defined reference.

What happens?:

What should have happened instead?:

Adding a reference:

  • The reference should be added between the "references" tags to the other list-defined references.
  • Ideally this should also work with the "reflist" template, but I don't believe that the VisualEditor does much with references within templates.

Removing a reference:

  • There are several ways to handle this; I'm not sure what the preferred method would be. The VisualEditor should offer some way to remove a list-defined reference. As of right now, an editor using the VisualEditor will cause an error when removing all citations to a list-defined reference, and they will have no way to resolve this from within the visual editor.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):