Page MenuHomePhabricator

T52474 causes templated refs used multiple times to appear blank
Open, LowPublic

Description

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 added a subscriber: Josve05a.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 19 2015, 12:08 PM

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 https://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Josve05a/Moton_Field_Municipal_Airport&oldid=29920093

Josve05a set Security to None.
Amire80 triaged this task as High priority.May 4 2015, 1:15 PM
Amire80 added a subscriber: Amire80.May 4 2015, 2: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.

ssastry added a subscriber: ssastry.May 4 2015, 5:08 PM

@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.
Amire80 moved this task from Needs Triage to CX6 on the ContentTranslation board.Jul 2 2015, 5:05 PM
Amire80 moved this task from CX6 to Upstream on the ContentTranslation board.Jul 6 2015, 2:40 PM

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 https://en.wikipedia.org/wiki/Larissa 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.