Context
The reference list in both read modes (legacy and Parsoid) currently renders footnote item numbers in the reflist using built-in browser <li>. This is fragile but works in most simple cases. Replacing with explicit text numbers is analogous to T369614: Parsoid: explicit numbering for footnote markers but for the reference list. Only this will guarantee accurate numbering—thereby solving this list of known issues:
- Reference list numbers are not localized in read mode for some languages, so don't match footnote markers in the article.
- Sub-reference numbers are not localized correctly
Wrong symbols in reflist when the browser lacks explicit language numbering support
For example, with firefox 133.0 on linux, the footnote markers for knwiki articles are written in Kannada script,
while the reference list incorrectly shows fallback numbers,
Follow-up
Gotcha: Be aware that the numbering style includes some decoration around the number, which is specific by language, eg. "1)", "1.", "(1)" and so on.
The visual editor numbering also needs some CSS touch-up to style explicit text but this is strictly a refactor to remove the unnecessary CSS var and li::marker content, and is functionally equivalent to explicit numbering from the user perspective: T383681: Render VE references list without relying on order lists with <li> and CSS marker styles
Screenshot of VE showing correctly localized reflist numbering,
Source editor preview is currently not localized but this is probably fixed with Parsoid?


