Page MenuHomePhabricator

References generated by a template in media captions do not appear in Re-Use Reference list
Closed, ResolvedPublic

Description

Environment- test2, production
Chrome 39, FF 35

1> Cite -> Basic.
2> Insert any citation.
3> In the same Reference dialog, select to insert image.
4> In the media settings dialog insert any citation again.Click to insert the image.
3> Click to insert the reference to the main editor.
4> Open Re-use.Notice the citation inserted in image is not listed in the Re-Use reference dialog.See screenshot

sa.png (351×504 px, 89 KB)

5> Select to insert the reference from the Re-Use dialog.
6> Now delete the reference that you just added. Notice the previously added reference changes to [0].See screenshot
s.png (692×1 px, 76 KB)

Event Timeline

Swainr raised the priority of this task from to Needs Triage.
Swainr updated the task description. (Show Details)
Swainr added a project: VisualEditor.
Swainr added a subscriber: Swainr.
Jdforrester-WMF renamed this task from Citations in image do not appear in Re-Use Reference list. to References in media captions do not appear in Re-Use Reference list.Jan 20 2015, 8:16 PM
Jdforrester-WMF triaged this task as Low priority.
Jdforrester-WMF set Security to None.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

Note: The issue here is not that the ref is added in the media caption. This would work. The issue is, that the ref is generated by a template. - Could be that solving the issue for refs generated by templates resolves this issue as well but I'm not sure. So I'll at least link it but do not close it as duplicate.

T52474: In VisualEditor, references in templates cannot be reused and are numbered separately from references in the text.

WMDE-Fisch renamed this task from References in media captions do not appear in Re-Use Reference list to References generated by a template in media captions do not appear in Re-Use Reference list.Thu, May 11, 8:39 AM
thiemowmde added a subscriber: thiemowmde.

I can't tell when and why this changed, but as of now this works as expected. The references appear in the re-use dialog.

Besides, what the screencast shows is not even possible (any more?). There is no way to put a <ref> in a <ref>. That would at least require the use of {{#tag:ref|…}}, which was never done by VisualEditor, as far as I can tell. What's demoed is still partially possible in VisualEditor but actually creates invalid wikitext. But that's another issue.

This seems to be a perfect example of total confusion on what the actual issue is. The bottom line still seems the issue that references generated by a template can not be reused. I can confirm that the way that this is done in the original task description is not even reproducible anymore. So let's close it. There's the other ticket for the generic problem of re-using references from templates.