Page MenuHomePhabricator

Adding a new category adds wikitext at the end of the article even if there is some other content after the existing categories
Closed, DuplicatePublic

Description

Steps to reproduce:

  1. Find a page which has some categories and some content after the categories. For example, a page which still has manual interwiki links (e.g. https://de.wikipedia.org/wiki/Nomenklatur_%28Biologie%29) or any biography on de.wikipedia (e.g. https://de.wikipedia.org/wiki/Rolf_Nevanlinna).
  2. Open it for editing in VE, add a new category.
  3. Review the change (or just save).

Expected result:
The wikitext for the new category is placed in its own line after the last existing category.

Actual result:
The wikitext for the new category is placed at the very end, creating a new block of categories, separated by some other content from the other categories.

While in most wikis there shouldn't be many articles with more content after the categories, at least German Wikipedia currently has at least 589,898 articles which use the template Personendaten, which is placed after the categories, which means VE/Parsoid will create wikitext in a form the next source code editor won't be happy with.

Event Timeline

Schnark raised the priority of this task from to Needs Triage.
Schnark updated the task description. (Show Details)
Schnark added a project: VisualEditor.
Schnark subscribed.