User story
As a visual editor, I want to create a new subreference and enter its details text, based on an existing reference, and save the page.
Acceptance criteria
- User can pick an existing main reference in the reuse dialog.
- User can add a subreference to this reference.
- User can add more than one subreference to a main reference.
- User can add subreference details text.
- Newly-created subreference appears in page while editing.
- New subreference is saved with page and has the desired wikitext.
Out of scope
- Editing subreference
- Deleting subreference
- Reuse of existing subreferences
- Unnamed main reference
- Illegal wikitext eg. newlines
- Empty details text condition
Developer notes
We have existing code and UI which supported this feature for the "extends" wikitext syntax, this task is about adapting that code to work for the "details" syntax.
The existing entrypoint is through the reuse "kebab" menu.