Page MenuHomePhabricator

DISPLAYTITLE: allow capitalization shifted beyond first letter
Closed, DeclinedPublicFeature

Description

Feature summary (what you would like to be able to do and where):

Currently, the Display Title feature seems to allow different letter case only for the first letter.

It would be helpful if it allowed also a capitalization change at different position.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

E.g. organic chemistry nomenclature uses various prefixes (descriptors). If capitalization of the whole name is needed (mainly at beginnings of sentences; in English language, capitalization seems to to be preferred also e.g. at some indexes/listings), the prefixes are to be untouched, and the change occurs at the first ~word.

Examples of proper capitalization (incl. other formatting) of chemical names:
(Note: other additional formatting needed in some cases, italics, is not applied, as the corresponding Retext syntax does not work for some reason.)

Benefits (why should this be implemented?):

Current Display Title feature is a benefit for articles of somehow case-sensitive topics like UN*X command names, e.g. cat (Unix).
This additional feature would be a benefit for e.g. already mentioned organic chemistry compound names to have the title properly formatted, without having to have that specific capitalization in the article name itself (thus sort of breaking WP:NCCAPS).

Event Timeline

mykhal renamed this task from DISPLAYTITLE: allow capitalization shifted from first letter to DISPLAYTITLE: allow capitalization shifted beyond first letter.Fri, Apr 17, 2:20 PM
mykhal updated the task description. (Show Details)
taavi subscribed.

Such changes to the title can be done by renaming the page. Using DISPLAYTITLE for the first character exists as MediaWiki considers all pages to start with an uppercase letter.

Such changes to the title can be done by renaming the page. Using DISPLAYTITLE for the first character exists as MediaWiki considers all pages to start with an uppercase letter.

The need of renaming is already mentioned as sort of breaking of WP:NCCAPS, as model cases—chemical names—are not proper names.

So I dare to ~undo such quick declining action to give opportunity to consider that argument too.

Samwilson subscribed.

I'm not sure I understand the request here. Isn't 2-methylpentane2-Methylpentane already possible (if you want to continue to use 2-methylpentane as the page title) by adding {{DISPLAYTITLE:2-Methylpentane}} to the page?

Is this about adding some sort of automatic handling of these sorts of page titles to the DisplayTitle extension? (Which, as it's linked in the description, I think probably should stay on this task.)

Yes, but only if $wgRestrictDisplayTitle is set to false, which it is not on most Wikimedia wikis. In the configuration, DISPLAYTITLE is meant for changing formatting in ways that are not possible otherwise. The added confusion this would create would hardly be worth the tiny benefit of this over renaming the page to match the title it would ve displayed as.

(Also, I find it unlikely that enwiki policy would allow displaying page titles in a way that would orherwise be against the naming guidelines.)

(Which, as it's linked in the description, I think probably should stay on this task.)

{{DISPLAYTITLE:}} is core functionality. That extension has nothing to do with validating allowed values, nor is it deployed on enwiki or any other Wikimedia wiki. So untagging again.

I assumed this task was about non-Wikimedia wikis.

The DisplayTitle extension is linked in the task description, that's why I thought it'd apply. But I agree that there doesn't seem to be anything to do here.

Request was related for e.g. enwiki, cswiki …

[…] Isn't 2-methylpentane2-Methylpentane already possible (if you want to continue to use 2-methylpentane as the page title) by adding {{DISPLAYTITLE:2-Methylpentane}} to the page?

Yes, but only if $wgRestrictDisplayTitle is set to false, which it is not on most Wikimedia wikis. […]

I was not aware of wgRestrictDisplayTitle, thanks for mentioning.