: 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
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?
More posts by @Hamm4606531
3 Comments
Sorted by latest first Latest Oldest Best
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
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.
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".
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.