Last modified: 2014-07-24 02:11:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48140, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46140 - Cite: Use of #tag:references with a group causes a footnote numbering issue
Cite: Use of #tag:references with a group causes a footnote numbering issue
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-14 23:36 UTC by Bernd Jendrissek
Modified: 2014-07-24 02:11 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bernd Jendrissek 2013-03-14 23:36:47 UTC
Bug best illustrated by an example:

http://en.wikipedia.org/w/index.php?title=Gecko_(layout_engine)&oldid=539430071

has the usual superscript references that are consistently numbered between the inline references and the reference list at the end of the article, but the numbering becomes inconsistent with the 8 notes added to the table. After that, inline reference [N] corresponds to the reference listed as number N-8.
Comment 1 Gadget850 2014-07-21 23:03:46 UTC
I do not see this issue; Firefox 31.
Comment 2 Andre Klapper 2014-07-22 09:24:47 UTC
I still see this issue on link in comment 0 with Firefox 30.0:
"References" section ends with 25, last reference in text above is 33 though.
Comment 3 Gadget850 2014-07-22 10:59:34 UTC
* I see this now. I stripped this down to a simpler exemplar:

<ref>1</ref><ref>2</ref>

<ref name="a1" group="u" /><ref name="a2" group="u" />

{{reflist|group="u"|refs=
<ref name="a1">ref1</ref>
<ref name="a2">ref2</ref>
}}

<ref>3</ref><ref>4</ref>

<references />


* But using <references> in place of {{reflist}} resolves the issue:

<ref>1</ref><ref>2</ref>

<ref name="a1" group="u" /><ref name="a2" group="u" />

<references group="u">
<ref name="a1">ref1</ref>
<ref name="a2">ref2</ref>
</references>

<ref>3</ref><ref>4</ref>

<references />

* I will look at this a bit more later.
Comment 4 Gadget850 2014-07-22 23:38:13 UTC
As I suspected, #tag:references is involved. This example triggers the issue:


<ref>1</ref><ref>2</ref>

<ref name=a1 group=u /><ref name=a2 group=u />

{{#tag:references|
<ref name=a1>ref1</ref>
<ref name=a2>ref2</ref>
|group=u}}

<ref>3</ref><ref>4</ref>

<references />

I have updated the title to better reflect the issue.
Comment 5 Gadget850 2014-07-24 02:11:23 UTC
The problem occurs because the list defined references are missing the group:


<ref>1</ref><ref>2</ref>

<ref name=a1 group=u /><ref name=a2 group=u />

{{#tag:references|
<ref name=a1 group=u>ref1</ref>
<ref name=a2 group=u>ref2</ref>
|group=u}}

<ref>3</ref><ref>4</ref>

<references />

We should be getting an error instead of silently mangling the numbering. I think that resolves this issue, but I will file a report for the missing error.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links