Page MenuHomePhabricator

Limit Special:Preferences thumbnail option to three options - small, regular and large
Closed, ResolvedPublic

Description

Background

We only support 3 thumbnail options in practice, but we show a dropdown with many more options. Going forward, we'll update preferences to display three options: Small, Regular, Large for consistency with the existing font size preference.

User story

As a user I want to be able to have thumbnails smaller or larger than the default.

Requirements

BDD

  • For QA engineer to fill out

Test Steps

  • For QA engineer to fill out

Design

Screenshot 2026-04-29 at 4.15.54 PM.png (861×328 px, 17 KB)

Acceptance criteria

  • There are three preferences
  • The dropdown corresponds with the thumbnail size rendered for the user.
  • Regular will be the default

Communication criteria - does this need an announcement or discussion?

T424909: [FYI] Default thumbnail size preference for article content is now limited to three sizes

Rollback plan

  • What is the rollback plan in production for this task if something goes wrong?

This task was created by Version 1.2.0 of the Web team task template using phabulous

Event Timeline

Jdlrobson-WMF updated the task description. (Show Details)
Jdlrobson-WMF added a subscriber: Ladsgroup.

In re "Communication criteria - does this need an announcement or discussion?"

Answer: YES.

The main thing to announce will be how existing options will map to the new system.

The most important thing to announce will be how this will affect images with designated image size/widths, especially infobox images. The ideal answer will be "not at all", or at least "not at all, assuming your infobox templates correctly specify image size".

At the larger wikis, it will probably be faster to provide CSS code that overrides these settings (just in case someone believes it's incredibly important to have their image size set to exactly 123 pixels wide), rather than talking about whether someone 'should' want to do so.

In re "Communication criteria - does this need an announcement or discussion?"

Yes already done. I just forgot to fill that in :-) T424909: [FYI] Default thumbnail size preference for article content is now limited to three sizes

Change #1256553 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Special:Preferences: Display three options for thumbsizes

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

Change #1272965 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Simplify thumbnail logic for small/medium/large

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

Change #1283817 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Skin: Correct thumbnail class

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

Change #1283817 merged by jenkins-bot:

[mediawiki/core@master] Skin: Correct thumbnail class

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

Change #1285907 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@wmf/1.47.0-wmf.1] Skin: Correct thumbnail class

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

Change #1256553 merged by jenkins-bot:

[mediawiki/core@master] Special:Preferences: Display three options for thumbsizes

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

Change #1285907 merged by jenkins-bot:

[mediawiki/core@wmf/1.47.0-wmf.1] Skin: Correct thumbnail class

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

Mentioned in SAL (#wikimedia-operations) [2026-05-12T00:00:32Z] <jdlrobson@deploy1003> Started scap sync-world: Backport for [[gerrit:1285907|Skin: Correct thumbnail class (T424910)]]

Mentioned in SAL (#wikimedia-operations) [2026-05-12T00:02:22Z] <jdlrobson@deploy1003> jdlrobson: Backport for [[gerrit:1285907|Skin: Correct thumbnail class (T424910)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-05-12T00:07:57Z] <jdlrobson@deploy1003> Finished scap sync-world: Backport for [[gerrit:1285907|Skin: Correct thumbnail class (T424910)]] (duration: 07m 24s)

Change #1286421 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@wmf/1.47.0-wmf.1] Special:Preferences: Display three options for thumbsizes

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

Change #1286421 merged by jenkins-bot:

[mediawiki/core@wmf/1.47.0-wmf.1] Special:Preferences: Display three options for thumbsizes

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

Mentioned in SAL (#wikimedia-operations) [2026-05-12T22:32:00Z] <jdlrobson@deploy1003> Started scap sync-world: Backport for [[gerrit:1286514|Also merge views overflow into array-items (T426115)]], [[gerrit:1286513|Also merge views overflow into array-items (T426115)]], [[gerrit:1286421|Special:Preferences: Display three options for thumbsizes (T424910)]]

Mentioned in SAL (#wikimedia-operations) [2026-05-12T22:49:37Z] <jdlrobson@deploy1003> jdlrobson: Backport for [[gerrit:1286514|Also merge views overflow into array-items (T426115)]], [[gerrit:1286513|Also merge views overflow into array-items (T426115)]], [[gerrit:1286421|Special:Preferences: Display three options for thumbsizes (T424910)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-05-12T23:05:29Z] <jdlrobson@deploy1003> Finished scap sync-world: Backport for [[gerrit:1286514|Also merge views overflow into array-items (T426115)]], [[gerrit:1286513|Also merge views overflow into array-items (T426115)]], [[gerrit:1286421|Special:Preferences: Display three options for thumbsizes (T424910)]] (duration: 33m 28s)

Change #1286535 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Define $wgThumbSize{Smaller,Standard,Larger} for thumbnail sizes

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

Change #1287006 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[operations/mediawiki-config@master] Update small size for Swedish Wikipedia

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

Change #1287006 merged by jenkins-bot:

[operations/mediawiki-config@master] Update small size for Swedish Wikipedia

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

Mentioned in SAL (#wikimedia-operations) [2026-05-13T20:25:38Z] <jdlrobson@deploy1003> Started scap sync-world: Backport for [[gerrit:1287006|Update small size for Swedish Wikipedia (T424910)]]

Mentioned in SAL (#wikimedia-operations) [2026-05-13T20:27:39Z] <jdlrobson@deploy1003> jdlrobson: Backport for [[gerrit:1287006|Update small size for Swedish Wikipedia (T424910)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-05-13T20:33:04Z] <jdlrobson@deploy1003> Finished scap sync-world: Backport for [[gerrit:1287006|Update small size for Swedish Wikipedia (T424910)]] (duration: 07m 26s)

Change #1272965 abandoned by Jdlrobson:

[mediawiki/core@master] Simplify thumbnail logic for small/medium/large

Reason:

Folded into https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1287449

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