Last modified: 2014-09-24 09:44:57 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 T10033, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8033 - Allow hiding of Cite.php references
Allow hiding of Cite.php references
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 10579 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-24 23:47 UTC by phi1ipp
Modified: 2014-09-24 09:44 UTC (History)
2 users (show)

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


Attachments

Description phi1ipp 2006-11-24 23:47:49 UTC
Some of our Wikipedia articles are increasingly cluttered with referencing
superscripts. These are necessary for verifiability purposes, but detrimental to
readability of the text. I therefore propose a UI element which would allow
hiding these. This element could be a button or hyperlink, either at the top of
the article or the start of each section, or a global preference set by the user.
Comment 1 Phil Boswell 2006-11-24 23:52:58 UTC
These items are currently labelled as class="reference"; this is governed by [[Mediawiki:cite_reference_link]]. If 
you want to hide them, alter your personal CSS to hide that class.

Similarly, the list of references is labelled as class="references".

HTH HAND
Comment 2 Carl Fürstenberg 2006-11-24 23:58:42 UTC
there should thou be a possibillity to hide individual references, simlar to
LaTeX \nocite
Comment 3 Rob Church 2006-11-25 00:04:33 UTC
It doesn't really make sense to hide individual references; citation is
important, especially for things like encyclopedias and any other site which
needs to be able to present evidence for factual claims. If we start allowing
editors to hide single reference items, then other users could become confused.

It does make sense to allow users to temporarily hide references for a page
view, which could be approached using JavaScript. As Phil points out above, more
permanent, per-user hiding of references, can be done via custom CSS.
Comment 4 phi1ipp 2006-11-25 12:53:48 UTC
Yes, you should only be able to hide all or none, and this should be in the
user's power, not the editor's.
Comment 5 Alphax 2006-12-10 01:45:34 UTC
Somewhat related to this would be the ability to make the <ref> containing the
actual data to be hidden; this would allow an editor to put <ref name="foo" />
tags all through an article and then have a <ref name="foo" hideme>{{cite
blah}}</ref> at the end, which allows the references to work but unclutters the
article without displaying a spurious reference anywhere. Let me know if this
belongs in a different bug report...
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-12-10 02:37:22 UTC
Bug 5997.
Comment 7 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-15 01:53:39 UTC
*** Bug 10579 has been marked as a duplicate of this bug. ***
Comment 8 phi1ipp 2007-11-16 17:32:18 UTC
Report was apparently closed as a duplicate of bug 5997. Reopening to ask for clarification - bug 5997 is a very different proposal, although subsequent commenters raised the issue of bug 5997. This bug should not be closed as a dupe if the original report refers to a different problem. Also, please don't use bug reports as excuses to offload your own pet problems. Open them as separate reports, or keep them to yourselves.
Comment 9 Brion Vibber 2007-11-30 21:35:59 UTC
Indeed, seems unrelated.

Don't know whether it's worth the effort to add a UI element for hiding UI elements... ;) But it would probably be pretty easy to do as a JS widget. (Poke a stylesheet and they all hide/show.)
Comment 10 Roy Leban 2009-02-26 01:38:17 UTC
I've seen articles go through cycles. Somebody adds a fact tag, questioning if something is true (sometimes, they actually remove something that's true because they don't believe it). Next, another editor restores the text, if necessary, and adds a reference, possibly to something already listed as a reference in the article (sometimes this means moving the reference from an explicit list to a ref tag). Quite frequently, the reference was added at the same time as the text, but the first editor hasn't gone into the history to ascertain that. Finally, another editor removes the ref tag because it's unnecessary detail to cite every single sentence in an article. Wait a while and the process starts anew. And, if there is a discussion on the talk page, it's never looked at or is actually gone because of archiving.

Two things happen: We have citation/reference wars, and we have overly cluttered references all over the place. Just look at the hard-to-read page [http://en.wikipedia.org/wiki/Barack_Obama] and you'll see what I mean -- one citation for every 25 words (a total of 216) and multiple runs of three and four citations in a row. And this is a featured article!

Here is my suggestion on how things could work to address these problems:

1. By default, only the first reference to something appears superscripted in the text. Later ones are only visible in the source, unless an option is set.
2. Multiple references which are to the same source with a different page number or the same URL with a different hash are treated similarly.
3. When multiple references appear in a row, only a single citation is shown. If (5) is adopted, there is one * to the set; if (5) is not adopted, the refs are shown as a group, e.g., [33-37] or [33-37,15], with the latter case for a single re-reference following multiple references.
4. A reference can be marked as "minor" in the source. Minor references do not appear in the text unless the option is set. They do, however, appear in the references section with backlink(s). In the Barack Obama example, the first 43-word sentence contains 6 references and that's only because nobody's required a citation for where Obama's father was from. I would make refs 6, 7, and 9 minor, leaving 8 as major (and I'd delete 10 and 11 as irrelevant to the sentence).

And ...

5. Display all in-text refs as superscripted *'s instead of [n]. It's smaller and will hurt readability less. The numbers appear in the printable version of a page or (possibly) if a user turns on an option. The numbers are a historical artifact from the world of paper that we should abandon.

(I've separated #5 because I realize it's a bit off-topic for this bug report, but I think its part of a complete solution).
Comment 11 Gadget850 2014-09-24 09:44:57 UTC
This adds a link to the sidebar to toggle the dispaly of the in-text footnote markers.

https://en.wikipedia.org/wiki/User:Zhaofeng_Li/RefToggle.js

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


Navigation
Links