This task is about creating a subref of an existing main ref, using the==User story:
As a VE reuse dialog. The final subref might look like:user,
```when I use there's already a named reference with main content
and I use the sub-menu in the reuse dialog to add a sub-reference for that reference
<ref name="mainthen I can create a new sub-ref" details="p. 123" />erence that's referring the main content of the former
==Acceptance criteria:
GIVEN:
```
based on a normal ref like:<ref name="book">Miller</ref>
```
<WHEN I add a sub-ref name="reusing `main-ref">Book name</ref>` with the content `page 1`
```
Currently, we're only supporting the main+details form. Additional internal attributes may be necessary, and VE code which expects `isMainRefBodyWithDetails` or `isMainWithDetails` needs to be supplemented to support this other use case.THEN a new sub-ref with the same name is added
Currently, these subrefs are being saved as if they are main refs:
```
<ref>p. 123</refref name="book">Miller</ref>
<ref name="book" details="page 1" />
```
instead, the content should be saved in the "details" attribute.
This work will mostly be in `ve.dm.MWReferenceNode.static.toDomElements`