Currently references coming from template transclusions are not very well represented when using the VE. This is the root for several problems when dealing with them in the UI.
See for example
{T215867}
{T52474}
To fix some of these issues, especially with correctly numbering the references, avoid naming collisions and make transcluded references more visible to user they should probably be part of the `ve.dm.InternalList` of the document.
**Acceptance criteria:**
[] All references from transclusions are part of the internalList of the current document
[] It should be possible to distinguish references coming from template transclusions from other references
[] Ideally it should be possible to identify which reference was transcluded from which template
**Note:**
This is **not** about **re-using** of references coming from template transclusions. That's a pretty big, complicated and in parts unclear task.
**Maybe related:**
{T214241}