Goal: understand what the problem is and what may need to be done to solve it.
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 add a reused reference to an image caption, or to a template parameter.
But I cannot reuse references from the main text in e.g. the template dialog or an image caption.
Because The VE dialogs don't list references from outside of the image caption. The template dialog doesn't have access to the citation dialog at all.
Notes
- T62919: VisualEditor: "Use an Existing Reference" option remains disabled for a reference inside Media Settings while there is a reference available to re-use in the page
- T63505: Reusing references inside the VE template dialog
Results
- Appears to be trivial for images and galleries thanks to changes to the VE data model that have been made in the meantime (see T49344). Implementation ticket is T336417.
- Fundamentally different for templates and other sub-documents. Out of scope for the moment. Needs separate investigation/spike if we want to fix this as well.
See also: