User Story:
As a Wikitext user I want to be able to create a sub-reference by adding the details attribute to an existing reference.
Acceptance criteria:
- The reference should be visible after saving the article / getting a preview using the legacy parser
- In the article with the [1.1] sub-ref numbering as with extends
- In the reference list with the sub-ref numbering and indentation as with extends
- The solution should also work for named and list defined references
- VE should at least not remove the attribute, but can ignore it
- Add error cases to this document.
- For error cases see the follow-up story in T386212: Handle error cases with invalid uses of the `details` attribute in Wikitext and legacy parsing
Out of scope;
- VE is out of scope.
- Duplicates don't need to be merged, yet. Every duplicate gets a new number.
- Implementing error handling, but we can obviously leave breadcrumbs where it makes sense.