Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The display name of the page in Mediawiki can be changed using the magic word:


But the list of pages on the category page displays the original name (without the underscore in my example).

Is there a way to display a custom name in this list?

share|improve this question

migrated from webapps.stackexchange.com Aug 12 '13 at 13:57

This question came from our site for power users of web applications.

Possible duplicate of the following unanswered question. I am not aware of any way to do this. webmasters.stackexchange.com/questions/38842/… – Asa Aug 12 '13 at 18:27
Is there a reason you don't want to simply rename the page via 'Move' or request that an administrator do so? – user33745 Nov 15 '13 at 3:09
@denmch, it is impossible to assign a name with underscores, as in my example – Yuriy Dec 25 '13 at 8:00
up vote 1 down vote accepted

The other answers are incorrect. What you request is not yet possible, though it's a long-standing feature request that will probably be solved eventually.

share|improve this answer

Titles with underscores are not allowed in MediaWiki. Per https://www.mediawiki.org/wiki/Manual:Page_title:

The following are not valid as page titles: [...]

  • Titles containing the characters # < > [ ] | { } _ (which have special meanings in Wiki syntax)

Categories display titles as stored in the database. DISPLAYTITLE only affects the header element, not the article's title, shown in the URL. This is a problem for Wikipedia articles with lowercase first letters, such as iPod and pH, which have to appear in categories with the initial capital.

Removing the underscore from $wgLegalTitleChars may allow you to have underscores in the title, but IMHO it's not worth the hassle for a small cosmetic change.

share|improve this answer

IIR, you can add the index entry as an additional parameter in the category link; e.g., consider a page "Donald Duck":

[[Category: Ducks]]
[[Category: Ducks by lastname|Duck, Donald]]

In the category "Ducks", it would be listed as "Donald Duck", while in "Ducks by lastname" it would be "Duck, Donald".

share|improve this answer
but what about displaying a custom name in list of pages in category as has been asked for? – Yuriy Dec 25 '13 at 7:57
Like I wrote: add it as an argument to the category link. Note that entries which start with lowercase letters may be listed separately (not together with their captalized siblings; ASCII sorting). – Tobias Jan 6 '14 at 8:32
unfortunately, it didn't work for me. In category Ducks by lastname displays a link to Donald Duck(not Duck, Donald) page. MW version is 1.22.0. As I understand, the name after the pipe - only for sorting, not for displaying. – Yuriy Jan 6 '14 at 9:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.