Page MenuHomePhabricator

[Epic] Render explicit footnote numbers in reference lists everywhere
Open, Needs TriagePublic

Assigned To
None
Authored By
WMDE-Fisch
Aug 13 2026, 10:01 PM
Referenced Files
F58185683: image.png
Aug 13 2026, 10:01 PM
F58185487: image.png
Aug 13 2026, 10:01 PM
F58185480: image.png
Aug 13 2026, 10:01 PM

Description

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,

image.png (400×36 px, 9 KB)

while the reference list incorrectly shows fallback numbers,
image.png (400×119 px, 21 KB)

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,

image.png (266×189 px, 22 KB)

Source editor preview is currently not localized but this is probably fixed with Parsoid?

Event Timeline

Change #1164414 had a related patch set uploaded (by WMDE-Fisch; author: Awight):

[mediawiki/extensions/Cite@master] [POC] Custom numbering for legacy reflist

https://gerrit.wikimedia.org/r/1164414