Page MenuHomePhabricator

CX2: Different references with the same name
Open, MediumPublic

Description

CX2 seems to create several references with the same name, but not necessarily the same content.

Example on Beech Creek Railroad on frwiki :

  • <<ref name="moody"> <cite class="citation book">[[John Moody (financial analyst)|Moody, John]] (1920). ''[[Moody's Manual|Analyses des investissements de Moody's]]'' . [[New York City|New York]] : [[Moody's Investors Service]] . [[OCLC]] &nbsp; [//www.worldcat.org/oclc/8817369 8817369] .</cite> <templatestyles src="Module:Citation/CS1/styles.css"></templatestyles></ref>
  • <ref name="moody"><cite class="citation book">[[John Moody (financial analyst)|Moody, John]] (1920). ''[[Moody's Manual|Moody's Analyses of Investments]]''. [[New York City|New York]]: [[Moody's Investors Service]]. [[OCLC]]&nbsp;[//www.worldcat.org/oclc/8817369 8817369].</cite><templatestyles src="Module:Citation/CS1/styles.css"></templatestyles></ref>

It also includes links to missing template styles : "La page Module:Citation/CS1/styles.css n’a pas de contenu" error is displayed

Event Timeline

We've had many cases of this happening on Croatian Wikipedia, and I've tested it myself: you let CX2 do all translations, do some edits to the text so it would let you save it. Repeated references are all bad, example of me fixing it is https://hr.wikipedia.org/wiki/Special:Diff/6327071/6327095. If a reference is defined on its first ocurence as

<ref name=":1">{{Citiranje weba ...}}</ref>

all other mentions will be added as

<ref name=":1">{{Citiranje weba ...}} <cite class="citation journal cs1" data-ve-ignore="true" id="CITEREFSeyfriedMarcus2003"> ... </cite> </ref>

So not only does CX2 re-define already defined reference, it also adds some "garbage" code (<cite class></cite>) within the tags.

Less experienced users are confused as the reference list shows many red warnings they do not know how to fix. Can someone please investigate, and maybe give it a higher priority.