Last modified: 2014-09-24 09:20:34 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 T31774, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29774 - Cite Extension: missing ref name before <references> triggers error messages
Cite Extension: missing ref name before <references> triggers error messages
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-08 18:18 UTC by orenbochman
Modified: 2014-09-24 09:20 UTC (History)
2 users (show)

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


Attachments

Description orenbochman 2011-07-08 18:18:08 UTC
if <references /> contains named <ref> tags which have not been mentioned in the text above it will issue red error messages.

EXAMPLE:

==Test==
<ref name=fBigWednesday />
<ref name=fAnnieHall />
<!-- ref name=fHannahAndHerSisters/ -->
<ref name=fManhattan/>

<references>
<ref name=fBigWednesday >{{cite video|people=Aaberg, D., Milius, J. (Writers) Milius, J. (Director)|date=1978|title=Big Wednesday|url=http://www.imdb.com/title/tt0077235/|medium=Motion Picture}}</ref>
<ref name=fAnnieHall >{{cite video|people=Allen, W. (Director)|date=1977|title=Annie Hall|url=http://www.imdb.com/title/tt0075686/|medium=Motion Picture}}</ref>
<ref name=fHannahAndHerSisters >Allen, W. (Director). (1986). Hannah and Her Sisters [Motion Picture]</ref>
<ref name=fManhattan>Allen, W. (Director). (1979). Manhattan [Motion Picture].</ref>
</references>

Impact: In Wikibooks etc bibliographies are unmanageable in texts of significant length. This has contributed to reduced prestige of wiki-projects

Note: there are other use cases which trigger this issue.

Recommendations: 
1. add a  option to silence the error mechanism e.g. 
<references togglemsg="off" />
2. show the unreferenced entries in their place within the list but with no link
(this is the academic practice)
Comment 1 Brion Vibber 2011-07-08 20:22:05 UTC
What error message do you get, exactly? Do you have a link to a page where this error occurs in context?
Comment 2 orenbochman 2011-07-08 20:37:20 UTC
the example is taken from 

http://en.wikibooks.org/wiki/Patterns_Of_Screen_Writing/Filmography
Comment 3 Gadget850 2014-07-16 23:27:17 UTC
This is interface page is "MediaWiki:Cite error empty references define".

The issue is triggered by references defined in the list but never invoked in the content. There was a conscious decision by the developers to not allow unused references in the list.
Comment 4 Gadget850 2014-07-16 23:28:37 UTC
But "MediaWiki:Cite error references missing group" is erroneously invoked for the first instance. See Bug 24600.
Comment 5 Gadget850 2014-09-24 09:20:34 UTC
Looking at the history of Patterns Of Screen Writing/Filmography, it looks like references were being used to create a list of works, which was never and intended use of cite.php.

This is working as designed- unused references in the list generate an error. As I recall from discussion when this was implemented, the intent was to keep editors from stuffing the list with unused references and to alert the editor if they accidentally did not invoke a defined reference or if a follow on editor deleted a reference.

If there is no further discussion, then this should be closed.

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


Navigation
Links