Page MenuHomePhabricator

Set the display title on wish and focus area pages
Closed, ResolvedPublic5 Estimated Story Points

Description

First proposed by @tstarling in r1174896. See Slack discussion (private).

What?

Similar to Wikidata, we could set the display title to be the entity title, and show the entity ID in parentheses. For example, when viewing Community Wishlist/Wishes/W123 the <h1> at the top would say "Title of my wish (W123)".

With the title in the <h1>, it would look odd to repeat it in a <h2> immediately beneath it. So, we could remove the first <h2> with the title, and move the status chip to be an indicator. Then, change the "Description" heading to be a <h2>.

BeforeAfter
Screenshot from 2025-08-29 19-32-45.png (1,903×1,352 px, 217 KB)
Screenshot from 2025-08-29 19-32-53.png (1,903×1,352 px, 208 KB)
Why?

It looks nicer, and since the <title> of the tab will have the wish title, making it easier to find the wish you want when you have multiple wishes open in the browser.

Acceptance criteria
  • Set the display title to be the entity title
  • Next to the title should be the entity ID like (W123) but in a gray color, like Wikidata. Unlike Wikidata however, it can keep the same font size as the <h1>
  • Remove the first <h2> with the title as it is now redundant
  • Move the status chip to be an indicator
  • Change the "Description" heading to be a <h2>.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@JSengupta-WMF what do you think of this proposal? Note that unfortunately, the "breadcrumbs" can't really be changed.

The option marked "After" on the table looks great. If what you mentioned on the Slack about the importance of wish ID to certain volunteers, you can keep the same font size <h1> for the wish ID within parenthesis too.

Does Meta have $wgRestrictDisplayTitle = true? Or do you mean just forcing the page title to be the wish title?

The option marked "After" on the table looks great. If what you mentioned on the Slack about the importance of wish ID to certain volunteers, you can keep the same font size <h1> for the wish ID within parenthesis too.

I took the styles from Wikidata which will be familiar to many users. Using the same font size is fine though I think, so long as it's still gray (otherwise you can't infer it from the title).

Does Meta have $wgRestrictDisplayTitle = true? Or do you mean just forcing the page title to be the wish title?

It does have that enabled, so yes, forcing the page title to be the entity title.


Let's move this to the sprint Kanban board.

MusikAnimal renamed this task from Consider setting the display title on wish and focus area pages to Set the display title on wish and focus area pages.Sep 9 2025, 6:37 PM
KSiebert set the point value for this task to 5.Sep 18 2025, 1:48 PM

Change #1174896 had a related patch set uploaded (by MusikAnimal; author: Tim Starling):

[mediawiki/extensions/CommunityRequests@master] Set the display title on wish and focus area pages

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

Tim's patch above looks good!

But it sounds like we need you @JSengupta-WMF to look over this and confirm that you're happy with the new design.

Eh it's mostly my code now, not Tim's. I say this just in case I did something dumb, Tim doesn't get blamed for it :P

Here's some screenshots of what it looks like now:

Screenshot from 2025-09-19 16-24-09.png (1,207×787 px, 136 KB)

Screenshot from 2025-09-19 16-24-21.png (1,207×787 px, 103 KB)

Notes:

  • Vector-2022 puts the indicator beneath the title (this is not something we can control). Other skins put it on the same line as the title.
  • I'm personally torn on whether we should have the "Wish: " and "Focus area: " prefixes. They kind of look like namespaces.
  • For the entity ID, I went with the same font size that Wikidata uses. It looked odd having it the same size as the title, and I think it'd be neat to be consistent with existing entity-based systems like Wikidata.

I'm personally torn on whether we should have the "Wish: " and "Focus area: " prefixes. They kind of look like namespaces.

I agree, it looks a little bit odd. But I do like the way the page title is actually the title and doesn't contain the whole path!

It's also not very easy to copy the whole page title (with spaces; it's in the URL of course). Maybe it's just me, but I find myself selecting page headings quite often.

It's also not very easy to copy the whole page title (with spaces; it's in the URL of course). Maybe it's just me, but I find myself selecting page headings quite often.

I am like that, too! I generally use the <h1> as a means to copy the page title. I think putting the full page title in the parentheses bit of the display title is probably overkill, or at least won't look so nice.

There was talk before of including the full page title in the "breadcrumbs", but as it turns out that is not trivial to do.

Of note, non-English users of a Extension:Translate-powered wiki are probably used to this. They hardly ever see the actual page title in the <h1>, but presumably they are still able to link to pages without too much hassle? At least, I'm not aware of anyone who's complained about that.

Other thoughts:

  • Introduce Special:WishlistRedirect where you can give the entity slug and it redirects you to the right place.
    • This could do the work that Special:MyLanguage does, as well.
  • Add a "Share" link or something to copy the page title to the clipboard.
  • Accept the visual awkwardness and put the full page title in the parentheses of the display title.
  • Consider getting rid of the /Wishes and /Focus areas paths, and just have everything under Community Wishlist, i.e. Community Wishlist/W123. This will make it easier to remember and less visually obtrusive in the parentheses bit of the display title.

I think the shorter version Community Wishlist/W123 sounds good, and then it'd be short enough to show in parentheses. That's also a change that we'd want to do before launch!

That's a very good point about Translate already meaning that many people don't see the whole page title. That makes this change seem less weird I think (I'd been thinking a bit that it's strange to hijack a page title in this way).

So, unless we want to change the page titles to remove the Wishes and Focus_areas, this is perhaps good to go? @JSengupta-WMF do you have an opinion?

Yes let's go with Community Wishlist/W123

MusikAnimal changed the task status from Open to In Progress.Sep 24 2025, 9:11 PM

Sweet! I have filed T405527 and am starting work on it now.

For this task, I've updated the patch to show the page title in the parentheses, and also removed the Wish: and Focus area: prefixes.

Change #1174896 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Set the display title on wish and focus area pages

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

GMikesell-WMF subscribed.

Will leave it to Joy for design review.