Page MenuHomePhabricator

T52474 causes templated refs used multiple times to appear blank
Closed, ResolvedPublic


SInce T52474: In VisualEditor, references in templates cannot be reused and are numbered separately from references in the text. causes the numbering to be wonkey, it also doesn't recognize that there is any content in a reference which is "based" in an infobox and re-used in the article.
(E.g. <ref name=1>text</ref> in infobox and <ref name=1 /> in the article, make the footnote in the article show as blank.) See the video.

Event Timeline

Josve05a raised the priority of this task from to Needs Triage.
Josve05a updated the task description. (Show Details)
Josve05a subscribed.

This is also causing errors when translating articles using CX, which copies the reference, but doesn't copy the "content" that is for the reference. See

Amire80 triaged this task as High priority.May 4 2015, 1:15 PM

Oh, noticed that it's more of a Parsoid bug, so maybe I shouldn't prioritize it myself. But for what it's worth, it affects ContentTranslation in an important way.

@Amire80 Can you provide more details about what the Parsoid bug is? The HTML should have the right data-mw properties that point to the content independent of whether the <ref> is in top-level or template content.

Jdforrester-WMF renamed this task from T52474 causes refs used multiple times to appear blank to T52474 causes templated refs used multiple times to appear blank.May 8 2015, 1:45 AM
Jdforrester-WMF lowered the priority of this task from High to Low.
Jdforrester-WMF moved this task from To Triage to TR6: Visual diffs on the VisualEditor board.

From the duplicate task:
English Wikipedia Greek census11 references cannot be inspected or adapted in ContentTranslation and VisualEditor; To reproduce it, try to edit the first reference in using VisualEditor, or to translate that article from English to another language using CX and to click the reference.

It appears that this reference is inserted using some very clever template code, which neither VE nor CX are able to handle.

ssastry claimed this task.

This is not an issue anymore. VE handles it correctly.