Last modified: 2008-10-21 00:52:31 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 T13161, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11161 - Allow CSS styling of <references />
Allow CSS styling of <references />
Status: RESOLVED DUPLICATE of bug 6019
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: css
  Show dependency treegraph
 
Reported: 2007-09-03 09:29 UTC by yonidebest
Modified: 2008-10-21 00:52 UTC (History)
2 users (show)

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


Attachments

Description yonidebest 2007-09-03 09:29:02 UTC
The idea is to allow us to present only a few references, and allow the user to scroll down to see the rest. In the Hebrew Wikipedia we use a DIV tag around the <references /> tag to style it. See
   http://he.wikipedia.org/wiki/%D7%99%D7%92%D7%95%D7%90%D7%A8
for an example (at the end of the article). You see, it would be easier if we could just add styling like this:
<references style="border: 1px solid black;" />
Also, an scroll overflow would be nice too, so that this can be done:
<references style="border: 1px solid black; overflow: auto; height: 160px;" />

Or better yet: The height will be defined by an input number that represents the number of references:
<references style="border: 1px solid black; overflow: auto;" maxref="5" />
i.e. only 5 references are visible and in order to view the rest you need to scroll down.
OR - if possible - only 5 references visible and in order to view the rest you need to click the "Show" link.
If you can create a "maxref" option - it would be best if we could enter this as a parameter in a template:
<references style="border: 1px solid {{{color|black}}}; overflow: auto;" maxref="{{{maxref|5}}}" />

Thanks,
Yoni
Comment 1 Danny B. 2007-09-03 10:08:08 UTC
References could be styled globally in MediaWiki:Common.css or such style CSS (like MediaWiki:Monobook.css). However passing the overriding direct style (as well as classnames) could make things easier although styling via wrapping div is working solution.

On the other hand - additional scrollbars are against accessibility and usability guidelines - don't use it. Let the user decide, how he wants to display it - that's why custom stylesheets are available. 

Setting the reference box height by number of references is impossible - user agents can't determine these things. The only possibility would be "counting" of lines (via setting the box height to the appropriate multiple of line heights).

Collapsible reference box can be set via custom JavaScript in MediaWiki.Common.js.
Comment 2 MZMcBride 2008-10-20 08:00:49 UTC
This bug is very similar to (possibly even a duplicate of) bug 6019.
Comment 3 Chad H. 2008-10-21 00:52:31 UTC

*** This bug has been marked as a duplicate of bug 6019 ***

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


Navigation
Links