Page MenuHomePhabricator

References section created with complex div tags in Content Translation
Closed, ResolvedPublic


Related to T105483.
When I imported the references section from Catalan to English it converted very awkwardly in the code, even though the visual output looks the same.

The original code looked like this:


But the output from the Content Translation tool in english wikipedia looked like this:

<div class="reflist" id="cx481" style=" list-style-type:decimal;" data-source="481" data-cx-state="source" data-cx-weight="28" contenteditable="true">
<references /></div>

Here's the relevant diff:

Event Timeline

Wittylama raised the priority of this task from to Needs Triage.
Wittylama updated the task description. (Show Details)
Wittylama added a project: ContentTranslation.
Wittylama added a subscriber: Wittylama.
Amire80 triaged this task as Medium priority.Jul 10 2015, 8:00 PM
Amire80 set Security to None.
Amire80 moved this task from Needs Triage to CX6 on the ContentTranslation board.

You wont see the data attributes and contenteditabe in the div now since we remove it before publishing. The div may be still there because of differences in adaptation between reflist template and <references/>. We are working on improving the general template support in CX. More at

Etonkovidova claimed this task.
Etonkovidova added a subscriber: Etonkovidova.

Checked in CX2 along with other tickets on reference issues, e.g. T109174: ContentTranslation inserts HTML source when adapting {{Cite journal}} from English to Czech, Chinese ). The references and reference list handled different without many issues that were reported in CX1.