**Goal: understand why VE is not able to recognize and process references produced by templates
Output: an explanation of the problem and feasibility assessment of solving it.**
==Problem statements==
I am an editor using visual editor.
I'm trying to reuse a reference that comes from an image caption.
But I have no access to references embedded in image captions and such (galleries, …).
Because VE doesn't recognize and list such references in the reuse dialog.
**Notes**
* References added in a caption will also then not show up in the list when using the re-use tab within the rest of the article. See https://phabricator.wikimedia.org/T87134
* References added within a template (like an infobox) show up in the list now (see resolved ticket T53289), but they are not editable (T52896).
* This is likely a bigger problem, there are other cards which seem to be related to the invisibility of refs inside a template transclusion.//
I am an editor using visual editor
I'm trying to identify and work with existing references in an article.
But the numbers in the body of the article don't match the numbers in the <references> section at the bottom of the article.
Because VE apparently gets confused when some <ref> are not in the article but in a template.
I am an editor using visual editor.
I'm trying to copy and paste an existing citation to reuse it for the first time in the article.
But the reference instance is given an automatic number by VE that already exists on the article page, and VE doesn't warn me before saving.
Because a reference named ":0" already exists (maybe inside of a template transclusion?) and a new name like ":0" is assigned which already exists on the page. Also VE doesn't preview the error message, even if there is one after the page is saved.
**Notes**
* References added within a template (like an infobox) show up in the list now (see resolved ticket T53289), but they are not editable (T52896).
* This is likely a bigger problem, there are other cards which seem to be related to the invisibility of refs inside a template transclusion.//
See also:
* {T52474}
* {T215867}
* {T150612}
* https://app.asana.com/0/1203688298459190/1204011426355425
* https://app.asana.com/0/1203688298459190/1204063551050056