Page MenuHomePhabricator

Duplicate explanatory footnote created
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The explanatory footnote stating "Leandra Badruza is a touring musician for Lovejoy, not a permanent member." is duplicated, with the duplicate's link back to its reference in the article non-functional, and causing the alphabet references to the other explanatory footnotes to be one character ahead of what they are supposed to be.

What should have happened instead?:
There should be no duplicate footnote displayed, as in the web version.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.): Wikipedia Beta version 2.7.50449-beta-2023-07-31, Android 13 TP1A.220624.014, MIUI Global 14.0.7.0 (TLUMIXM)

Appearance in Android beta app:

Screenshot_2023-08-09-22-00-36-008_org.wikipedia.beta.png (974×1 px, 137 KB)

Appearance in mobile web (Firefox Nightly):
Screenshot_2023-08-09-22-00-26-730_org.mozilla.fenix.png (795×1 px, 125 KB)

Appearance in mobile web but using Parsoid (Firefox Nightly) [ https://en.wikipedia.org/api/rest_v1/page/html/Lovejoy_(band)#Notes ]
Screenshot_2023-08-09-22-00-07-221_org.mozilla.fenix.png (607×1 px, 124 KB)

Event Timeline

VoicefulBread66 updated the task description. (Show Details)
VoicefulBread66 updated the task description. (Show Details)

Expanding the template,

{{Infobox musical artist
| background        = group_or_band
| name              = Lovejoy
| image             = Lovejoy-Werchter (cropped).jpg
| caption           = Lovejoy performing at [[Rock Werchter]] in 2023. Left to right: Joe, Leandra,{{Efn|Leandra Badruza is a touring musician for Lovejoy, not a permanent member.}} [[Wilbur Soot|William]], Mark, Ash.
...
}}

shows that the caption is used in two places, the infobox caption and the inline image caption,

[[File:Lovejoy-Werchter (cropped).jpg|frameless|upright=1|Lovejoy performing at [[Rock Werchter]] in 2023. Left to right: Joe, Leandra,<ref group="lower-alpha">Leandra Badruza is a touring musician for Lovejoy, not a permanent member.</ref> [[Wilbur Soot|William]], Mark, Ash.]]<div class="infobox-caption">Lovejoy performing at [[Rock Werchter]] in 2023. Left to right: Joe, Leandra,<ref group="lower-alpha">Leandra Badruza is a touring musician for Lovejoy, not a permanent member.</ref> [[Wilbur Soot|William]], Mark, Ash.</div>

The difference in rendering between the legacy parser and Parsoid is because of a difference in the order of processing references (early vs late). I'm inclined to say that Parsoid's is the more correct rendering, since there are two references in the article post expansion but I'm sure opinions can differ.

One way to fix this is to use a named reference {{Efn|name="lean"|...}}

One way to fix this is to use a named reference {{Efn|name="lean"|...}}

I made this edit and it seems to have resolved the issue,
https://en.wikipedia.org/w/index.php?title=Lovejoy_%28band%29&diff=1169523459&oldid=1169443216