This ticket is done when Parsoid includes explicit footnote numbers in reflist HTML. The approach can be incremental and rough for now.
Note that the status quo is already broken for both parsers, for example in the "Notes" section on this page: https://en.wikipedia.org/wiki/2024_United_States_presidential_election#Notes the list numbering is only alpha due to a custom class "reflist-lower-alpha" added in wikitext:
<templatestyles src="Reflist/styles.css" /><div class="reflist reflist-lower-alpha"><references group="lower-alpha" /></div>
Without that code, the footnote markers "[a]" would not match the reflist numbers "1."
Acceptance criteria
- Show the localized reflist number somehow in the reflist item.
Suggested implementation:
- ~~Parsoid outputs a CSS custom property --footnote-number like we've already done in visual editor:
<li style="--footnote-number: "1.";">, with the correct footnote marker for custom groups. Punctuation can be ignored for the moment.~~
- Parsoid outputs a data-mw-footnote-number attribute with the rendered marker symbol.
- Parsoid renders these symbols in the li::marker, at a lower precedence than on-wiki customizations if possible.
- Number punctuation must match the content language, before we make this the default rendering.