Page MenuHomePhabricator

Reference list numbers don't match the reference numbers in article text until you start editing, when template-generated references present
Closed, ResolvedPublic

Description

Reference list numbers don't match the reference numbers in article text until you start editing, when template-generated references are present.

For example:

  1. Visit https://en.wikipedia.org/wiki/The_Fighting_Temeraire#In_popular_culture_and_on_currency (last reference on the page is currently number 33)
    image.png (2×3 px, 1 MB)
  2. Open visual editor. Due to T52474, the last reference on the page is now 31, and this is expected for now (there are 2 references defined in a "Poemquote" template earlier on the page). However, the reference list still shows it as 33, which is not expected.
    image.png (2×3 px, 949 KB)
  3. Type anything somewhere in the editor. The reference list changes to reflect the numbers from the page. (The multi-column formatting also changes in this article, but that's probably some issue with the local template.)
    image.png (2×3 px, 622 KB)

The reference list numbers should be updated immediately when opening the editor on the page, and not only after starting to edit.

Event Timeline

Change 914801 had a related patch set uploaded (by Bartosz Dziewoński; author: Esanders):

[mediawiki/extensions/Cite@master] Render reference list on first load in idle callback

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

Change 914801 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Render reference list on first load in idle callback

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

EAkinloose edited projects, added Verified; removed Editing QA.