Page MenuHomePhabricator

Display pages within categories formatted with {{DISPLAYCAT}}
Closed, DuplicatePublicFeature

Description

At present, within categories, pages are displayed by their name. That means various formatting of the page titles is ignored:

  • Book and movie titles don't appear in italics.
  • Ship names don't appear in italics.
  • Trademark names beginning with a lower case letter like eBay have their first letter capitalised.
  • bell hooks becomes Bell hooks.
  • Etc.

Rather, italics are used to mark redirects.

Feature summary

I'd like:

  • Book and movie titles to appear in italics.
  • Ship names to appear in italics.
  • Trademark names beginning with a lower case letter like eBay to appear properly.
  • bell hooks to be how she wants to spell her name.

And don't forget:

  • Redirects to be marked some other way. e.g. by having (redirect) after them.

How to achieve this (what you would like to be able to do and where):

You could take the {{DISPLAYTITLE}} value, and display that instead, e.g. {{DISPLAYTITLE:USS ''Enterprise''}} would display as USS <i>Enterprise</i>.

  • But, there could be problems with this, as one could interfere with the other.

For extra flexibility (perhaps someone wants a different title displayed and something else in a category (e.g. formatting)) I'd recommend setting a new {{DISPLAYCAT}} property and using this so {{DISPLAYCAT:USS ''Enterprise''}} for example. This probably should have restrictions on it so that it matches the page name, like {{DISPLAYTITLE}} must have $wgRestrictDisplayTitle = false to over-ride.

So set $wgRestrictDisplayCat = false

And finally, redirects need to be displayed somehow else. I suggest adding the text (redirect) after the link to them.

Benefits

It will make categories look better, more professional, and (in most cases) have the formatting of the title match the formatting in the category.