Make VE render sub-references the same as they are rendered on the wiki page in the <references> section.
VE requirement (Epic: T245299: Sub-reference support in VE): An article's sub-references should appear to you, someone in editing in VE, the same way they appear to you when you are viewing that article's sub-references in read mode.
User story:
As an editor editing an article in VE
I want the reference number for subreferences I see when I am editing to be the same as the number I see when reading the article, both for the footnote marker in the text and for the footnote body in the references section
So that I can correctly identify and edit main- and sub-references using VE
Implementation:
- Group and indent refs by "extends" relationship.
- Reflist should have “5.2” numbering. Show footnote body indented and sub-numbered.
- Article footnote markers should have "[5.2]" numbering.
- Copy-and-paste behavior should be unchanged for the footnote markers and the footnote bodies.
- Reader mode should be unchanged, including "Parsoid" read mode.
- Including "Parsoid" read mode. Note that fixing T369614 would make the Parsoid approach transparently consistent with the new approach in this task.~~
[x] Try to avoid making unused list-defined refs visible, or discuss why this is desirable.- Nothing too terrible happens with template-produced refs. These numbers are already nonsense and don't correspond to the reflist, so some damage is okay as long as the ref still looks reasonable.
- Parent and subref should both be editable on click.
Previous work
See https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Cite/+/566729/
Out of scope:
- Don't solve any other numbering issues in VE, for example with template-produced refs.
- Don't worry about clicking into the subref in the reflist
- Don't worry about subref reuse numbering
Deployment:
- We will implement this for beta for now.