Page MenuHomePhabricator

Configuration option(s) for sortkey if article title = category name (default sortkey override)
Open, LowPublicFeature

Description

Author: test5555

Description:
Specifics:

  • (1) $wgCatSortkeyOverride (default value: false)
  • (2) $wgCatSortkeyOverridewithS (default value: false)
  • (3) MediaWiki:CatSortKeyOverride (default value: " ")

Option (1)

In some wikis, users frequently use " " or "*" as sortkey when the article title equals the name of the category. Thus, if no other sortkey is defined, this option would replace the sortkey with " " (i.e. the value in a new MediaWiki message (3)).

Sample:

  • (1) $wgCatSortkeyOverride = True
  • (3) MediaWiki:CatSortKeyOverride = " "

If http://commons.wikimedia.org/wiki/Denis_Diderot used [[Category:Denis Diderot]] (category without a sortkey, or DEFAULTSORT), the option would replace the (default) sortkey "Denis Diderot" with " ", as the name of the category is equal to the name of the article (gallery).

If http://commons.wikimedia.org/wiki/Denis_Diderot used [[Category:Denis Diderot|Diderot]] the configuration option would not change anything.

Option (2)

An additional option would do the replacement as well when the name of the category equals article title + "s". This can be useful in wikis with English language category titles.

Sample:

  • (2) $wgCatSortkeyOverridewithS = True
  • (3) MediaWiki:CatSortKeyOverride = " "

If http://commons.wikimedia.org/wiki/Tree used [[Category:Trees]] (category without a sortkey, or DEFAULTSORT), the option would replace the (default) sortkey "Tree" with " ", as the name of the category is equal to the name of the article (gallery) + "s".


Version: unspecified
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Help:Categories#Sort_key

Details

Reference
bz24613

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:11 PM
bzimport set Reference to bz24613.
bzimport added a subscriber: Unknown Object (MLST).

I'm kind of leaning towards this should be wontfixed (or if done, done in an extension). Its not that hard to type [[category:Foo| ]], and I don't know, the proposed behaviour seems kind of weird to me.

Cheers.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:00 AM
Aklapper removed a subscriber: wikibugs-l-list.