Page MenuHomePhabricator

Remove test wiki prefix from <title> tag
Closed, ResolvedPublicFeature

Description

Feature summary
The title of every content page on the Wikimedia Incubator starts with a prefix like "Wp/xxx/". So when you have a series of tabs open, it looks something like this:

Screenshot from 2022-09-06 14-01-35.png (93×637 px, 5 KB)

And that is not very helpful. Therefore, I would like to propose a feature that changes the <title> in the main namespace to exclude the prefix from the titles.

Use case(s)
Make it easier for users and readers to distinguish tabs from each other.

Event Timeline

Change 900835 had a related patch set uploaded (by Jon Harald Søby; author: Jon Harald Søby):

[mediawiki/extensions/WikimediaIncubator@master] Custom title handling

https://gerrit.wikimedia.org/r/900835

The proposed change makes pages with the same name in different test projects look exactly the same, which isn’t helpful either.

Screenshot from 2023-05-01 11-13-38.png (72×484 px, 13 KB)

The first tab is Wn/hu/Kezdőlap, the second one is Wy/hu/Kezdőlap.

What about adding a suffix (e.g. Kezdőlap - Hungarian Wikinews - Wikimedia Incubator)? This would make the first characters more distinguishing if the tabs are very narrow, but hovering over the tabs (or the tabs themselves if they’re wider) would still reveal the test project – in an even more understandable way than today.

Change 900835 merged by jenkins-bot:

[mediawiki/extensions/WikimediaIncubator@master] Custom title handling

https://gerrit.wikimedia.org/r/900835

The proposed change makes pages with the same name in different test projects look exactly the same, which isn’t helpful either.

Screenshot from 2023-05-01 11-13-38.png (72×484 px, 13 KB)

The first tab is Wn/hu/Kezdőlap, the second one is Wy/hu/Kezdőlap.

What about adding a suffix (e.g. Kezdőlap - Hungarian Wikinews - Wikimedia Incubator)? This would make the first characters more distinguishing if the tabs are very narrow, but hovering over the tabs (or the tabs themselves if they’re wider) would still reveal the test project – in an even more understandable way than today.

Sorry, I thought I had replied to this suggestion already. It's a good suggestion, and I incorporated it in the patch that was just merged, so the <title> element will now be "Title - Wn/hu - Wikimedia Incubator". I would have liked to have "Hungarian Wikinews" like you suggested, instead of the prefix, but there are i18n challenges related to that for the Incubator especially, since we often deal with languages that oftentimes don't have a language name defined in MediaWiki and/or Extension:CLDR; I fear the string resulting from something like "$1 Wiktionary" (where $1 is the language name taken from CLDR) would often be a mix of the user language and English, or even the user language and the language code. If you have any idea on how to improve on that, I'm all ears!

Thanks! I think “Kezdőlap - Wn/hu - Wikimedia Incubator” is by no means less understandable than “Wn/hu/Kezdőlap - Wikimedia Incubator”, so it’s okay for me. However, I don’t think it’s more understandable either (which is no problem, as the goal of this task was not increasing understandability, but could be improved). IMO even the following are more understandable than the current “Kezdőlap - Wn/hu - Wikimedia Incubator”:

  • “Kezdőlap - Hungarian Wikihírek - Wikimedia Incubator” (mixed language, but probably more people recognize the English language name than the language code)
  • “Kezdőlap - "hu" Wikinews - Wikimedia Incubator” (the language is a language code, which is worse than the language name, but at least the project name is “Wikinews” rather than “Wn”)

By the way, is the latter (no language name in any language) a common situation? If a language has a language code, I’d expect it to have at least a known English or native name as well.