Last modified: 2011-10-15 22:03:37 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 T33551, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31551 - Categories are surrounded by much more space, and they don't wrap from line to line
Categories are surrounded by much more space, and they don't wrap from line t...
Status: RESOLVED DUPLICATE of bug 31547
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.18.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-integration-test
Depends on: 31547
Blocks: 29876
  Show dependency treegraph
 
Reported: 2011-10-09 04:22 UTC by Mark A. Hershberger
Modified: 2011-10-15 22:03 UTC (History)
2 users (show)

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


Attachments

Description Mark A. Hershberger 2011-10-09 04:22:32 UTC
From
http://en.wikipedia.org/w/index.php?oldid=454549054#Categories_are_surrounded_by_much_more_space.2C_and_they_don.27t_wrap_from_line_to_line

See [[Prince Philip, Duke of Edinburgh]] for an example of how this results in categories taking up much more space than they should. There may have been desire to allow a little more space between categories, but I doubt this much extra space was intended.

The extra space around the categories is caused by the vertical line between them. This used to be a pipe character, but is now something created in CSS. The relevant tags are <div id='catlinks' class='catlinks'>, <div id="mw-normal-catlinks"> and <div id="mw-hidden-catlinks" class="mw-hidden-cats-user-shown"> but I have no idea which CSS file sets up these ids and classes.

Having the links not wrap looks useful, we do that manually in navboxes all the time. However, the gobs of extra spacing is useless, I also think it needs to be toned down, maybe not to how it was before but certainly somewhat.

It was there before, but the text didn't wrap the same way so you didn't notice it. If we're going to be using this {{nowraplinks}}-like style for categories, we might as well make the separator work like {{middot}}.

CSS code for users' monobook.css/vector.css/common.css is listed (and works) at de:Wikipedia:Fragen_zur_Wikipedia#MW118:_Kategorienanzeige. Although I am tempted to suggest that this CSS code should be for everyone by default - especially in monoboook.

For those who don't speak German, try adding this to either Special:MyPage/common.css or Special:MyPage/skin.css:

/* Reduce space around category links, allow word wrapping - see [[:de:Wikipedia:Fragen zur Wikipedia#MW118: Kategorienanzeige]] */
#catlinks li {
        display: inline;
        border-left: none;
        padding: 0;
}
#catlinks li:first-child { padding-left: 0; }
#catlinks li:before { content: " | "; }
#catlinks li:first-child:before { content: ""; }
Comment 1 Bawolff (Brian Wolff) 2011-10-09 04:26:47 UTC
See Bug 12261 / r92054 for the original feature request.


I also agree that the category links looked better before...
Comment 2 MZMcBride 2011-10-09 04:27:57 UTC

*** This bug has been marked as a duplicate of bug 31547 ***
Comment 3 Mark A. Hershberger 2011-10-15 22:03:37 UTC
tagging bugs for Marcus to look at

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


Navigation
Links