Mobile app version of vmapp.org
Login or Join
Hamm4606531

: Custom page title in list of pages in a category The display name of the page in Mediawiki can be changed using the magic word: {{DISPLAYTITLE:name_with_underscore}} But the list of pages on

@Hamm4606531

Posted in: #Mediawiki

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

{{DISPLAYTITLE:name_with_underscore}}


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?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamm4606531

3 Comments

Sorted by latest first Latest Oldest Best

 

@Looi9037786

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.


Provide a way to alter page titles in category listings, e.g. via display title
Request to show {{DISPLAYTITLE}} as page link on category pages

10% popularity Vote Up Vote Down


 

@Rivera981

Titles with underscores are not allowed in MediaWiki. Per 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.

10% popularity Vote Up Vote Down


 

@Jessie594

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".

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme