automatically sort images in categories by Foo not Image:Foo
Closed, ResolvedPublic

Assigned To
None
Priority
Normal
Author
bzimport
Subscribers
wikibugs-l
Projects
Reference
bz4076
Description

Author: chris.mckenna

Description:
Currently it appears that images in categories are automatically treated as
being named Image:Foo instead of Foo. This means that unless the link from the
images is in the form of [[Category:Foo|{{PAGENAME}}]] the CategoryTOC template
doesn't work, as all the images start with I. They should be sorted
automatically by pagename, needing to explicitly specifit it is (to my mind at
least) counter intuitive. Obviously links that currently specify {{PAGENAME}} as
the sortkey will be unnafected.

I can't see a reason why you would want to sort by the namespace, but if there
is a need this could be done by [[category:Foo|{{NAMESPACE}}]].

This issue is related to [[bug:1502]] and perhaps a precursor to it, but not a
duplicate.


Version: unspecified
Severity: normal

bzimport added a project: MediaWiki-Categories.Via ConduitNov 21 2014, 8:58 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz4076.
bzimport created this task.Via LegacyNov 25 2005, 2:38 PM
bzimport added a comment.Via ConduitNov 25 2005, 5:40 PM

rowan.collins wrote:

I'm marking this a dupe of bug 450 because that would solve the underlying
problem in a nice clean way. If you think about it, this generalises to every
namespace but the "main" (article) one - why sort templates under
"Template:...", project pages under "Wikipedia:...", etc?

But at the same time, we don't really want to muddle the different kinds of
pages up any more than they already are, which deafaulting the sortkey to
PAGENAME would - i.e. it makes sense for "Wikipedia:Foo" to be sorted under "F",
but do we want it to appear next to "Foo", "Template:Foo", and "Image:Foo.jpeg",
or would we rather keep them separate in some way?

The logical route, IMHO, is to split the display by namespace, and then sort by
(and indeed display) only the pages' titles.

bzimport added a comment.Via ConduitNov 25 2005, 5:40 PM

rowan.collins wrote:

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

daniel added a comment.Via ConduitNov 25 2005, 5:43 PM

Pages from different namespaces should very rarely show up in the same category.
One exception are images on the commons, which are mixed with gallery pages in
categories. But images have a separate section on the category page anyway, so
that would not be a problem.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.