0

I've been trying to use DEFAULTSORT to sort pages based on a template parameter instead of the page title. This is how it appears at the top of the template:

{{DEFAULTSORT:{{{Username}}}}}

This is how it appears after the argument is transcluded:

{{DEFAULTSORT:d3xus}}

It would be nice for it to appear in categories as d3xus and not D3xus. There's no change in how the page is sorted because they both begin with the same symbol. Using an extension or magic word, is it possible to change how a page appears when viewed in a category? DEFAULTSORT only changes how the page is sorted with respect to other pages in the same category, but it does not change the page title in the category.

3 Answers3

0

There is no such thing. If you want to change the page title regardless where it is displayed, you can use $wgCapitalLinks or {{DISPLAYTITLE}}.


Actually it seems there is such a thing: Extension:Semantic Title. It is very hacky though (and you need to install Semantic MediaWiki).

Tgr
  • 27,442
  • 12
  • 81
  • 118
  • DISPLAYTITLE only works on the page the magic word is present on. It doesn't change how a page appears on a category page. –  Jul 21 '15 at 13:02
0

That's actually impossible without a bigger change in the code. There is a task for it in Wikimedia's bug/feature tracking software Phabricator: T19212, but it's actually stalled :(

Florian
  • 2,796
  • 1
  • 15
  • 25
0

Try this:

Suriyaa
  • 2,222
  • 2
  • 25
  • 44
  • Method 1: That wouldn't change the displayed title in the list of pages on the category page :) – Florian Jul 27 '15 at 09:14