Last modified: 2007-06-08 16:59:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5908 - Allow setting the default sort key for all categorisations on a page
Allow setting the default sort key for all categorisations on a page
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Rob Church
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-11 11:13 UTC by Wolf Peuker
Modified: 2007-06-08 16:59 UTC (History)
4 users (show)

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


Attachments

Description Wolf Peuker 2006-05-11 11:13:02 UTC
If we could assign a default order to a page, the auto-generated index of any
related category page could use it. 

the usage could be
 <nowiki>
 [[Order:Kohl, Helmut]]
 [[Kategorie:Mann|Kohl, Helmut]]
 [[Kategorie:Deutscher|Kohl, Helmut]]
 [[Kategorie:Bundeskanzler (Deutschland)|Kohl, Helmut]]
 </nowiki>

The option of using a default order mechanism would reduce duplicates.
Syntactically the default order (if given) could be overridden by
 <nowiki>[[Kategorie:xyz|Name]]</nowiki>

It would be also useful for intersection of categories with (for instance) the
[http://meta.wikimedia.org/wiki/DynamicPageList DynamicPageList]-Extension.
Comment 1 Wolf Peuker 2006-05-11 20:11:07 UTC
pardon, the requested usage would be like this:

[[Order:Kohl, Helmut]]

[[Kategorie:Mann]]
[[Kategorie:Deutscher]]
[[Kategorie:Bundeskanzler (Deutschland)]]

and so on

I wish you don't have to repead the similar sort key.
Comment 2 Borgx 2006-05-12 00:50:59 UTC
This request might be related to bug 5116
Comment 3 Rob Church 2006-12-28 18:03:51 UTC
I assume that where a specific sort key is provided, the "default" would be ignored?
Comment 4 Rob Church 2006-12-29 10:39:53 UTC
Fixed in r18629. Use {{DEFAULTSORT:Something}}.
Comment 5 Morten Barklund 2007-06-08 15:09:35 UTC
DEFAULTSORT is a bad name. It does not signal relationship with categorization in any way (except for users who know the software well and knows what sortkeys are). Could it be changed to something more logical like CATEGORYSORT or the lengthier CATEGORYDEFAULTSORT?
Comment 6 Rob Church 2007-06-08 15:16:17 UTC
We can add whatever aliases are desired, but I'm not going to remove the one we have now, because I know it's in wide use.

I'm not of the opinion that "DEFAULTSORT" is a particularly bad name, but...added "DEFAULTSORTKEY" and "DEFAULTCATEGORYSORT" aliases in r22839.
Comment 7 Wolf Peuker 2007-06-08 16:43:30 UTC
(In reply to comment #6)
> We can add whatever aliases are desired, but I'm not going to remove the one we
> have now, because I know it's in wide use.
> 
> I'm not of the opinion that "DEFAULTSORT" is a particularly bad name,
> but...added "DEFAULTSORTKEY" and "DEFAULTCATEGORYSORT" aliases in r22839.
> 

If the effect of the default sort key is not restricted to categories I would prefer not to have "CATEGORY" in the key word. Where can I find the code or database structures responsible for having a default sort key? The Links r18629, r22839 seem not to be the full story?

("DEFAULTSORTKEY" seems to be more clear, but "DEFAULTSORT" is shorter.)
Comment 8 Rob Church 2007-06-08 16:46:58 UTC
Sort keys are limited to categories.
Comment 9 Wolf Peuker 2007-06-08 16:59:39 UTC
It is stored in categorylinks:cl_sortkey, is it?

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


Navigation
Links