Page MenuHomePhabricator

List of templates used should be presented in multi-column format
Open, Needs TriagePublicFeature

Description

The list of templates used on this page / in this preview / in this section (templatesused) gets very long on long articles. This can be mediated by presenting the list in a multi-column format

Requested at https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(idea_lab)&oldid=1304034249#Presenting 'Templates used in this preview' in multi-column format with the rationale:

For longer articles, scrolling up through the long list of template shown during preview mode is getting to be a chore. Wouldn't it make sense to present this information multiple columns so less scrolling is needed? Thanks. Praemonitus (talk) 14:54, 3 August 2025 (UTC)

For example the current revision of https://en.wikipedia.org/wiki/London lists 377 templates/modules in my 800-pixel high Firefox window (using Monobook skin) that's nearly 11 screenfulls. There is horizontal space in my 1280-pixel wide window for 2 columns without horizontal scrolling (even more if the protection type names were abbreviated)

templatesused.png (732×1 px, 165 KB)
templatesused-multicolumn.png (726×1 px, 328 KB)

Event Timeline

Change #1181798 had a related patch set uploaded (by Aaron liu; author: Aaron liu):

[mediawiki/core@master] Edit: Split footer lists into columns

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

Change #1181798 merged by jenkins-bot:

[mediawiki/core@master] Edit: Split footer lists into columns

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

aliu changed the task status from Open to In Progress.Aug 27 2025, 2:19 AM
aliu removed a project: Patch-For-Review.

This should probably be noted in Tech News (https://meta.wikimedia.org/wiki/Tech/News/2025/36).

@matmarex, for Tech News - What wording would you suggest as the content? Thanks!

I've made a very basic draft at the next Tech News draft.

I've made a very basic draft at the next Tech News draft.

Thank you !

This is awesome! I've had some personal CSS for this for a while in my common.css and had been just too lazy to file an upstream.

Change #1184938 had a related patch set uploaded (by Sjoerddebruin; author: Sjoerddebruin):

[mediawiki/core@master] Edit: Use mixins for footer list columns

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

The above patch fixes unexpected behaviour, like the parser profiling data table being broken in columns. I also made use of the less mixins instead.

Before:

image.png (320×1 px, 88 KB)

After:

image.png (467×789 px, 93 KB)

This isn't good:

image.png (43×1 px, 16 KB)

Can each individual entry on a list be forced to stick to one column please?

This isn't good:

image.png (43×1 px, 16 KB)

Can each individual entry on a list be forced to stick to one column please?

The above proposed patch fixes this Firefox-specific behaviour.

Change #1184938 merged by jenkins-bot:

[mediawiki/core@master] Edit: Use mixins for footer list columns

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

matmarex assigned this task to aliu.
DLynch subscribed.

This seems to have caused T403856 which hangs the browser tab if you use search while previewing an edit.

Change #1185186 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/core@master] Revert "Edit: Split footer lists into columns"

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

Change #1185186 merged by jenkins-bot:

[mediawiki/core@master] Revert "Edit: Split footer lists into columns"

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

Change #1185192 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/core@wmf/1.45.0-wmf.17] Revert "Edit: Split footer lists into columns"

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

matmarex removed aliu as the assignee of this task.

Change #1185192 merged by jenkins-bot:

[mediawiki/core@wmf/1.45.0-wmf.17] Revert "Edit: Split footer lists into columns"

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

Mentioned in SAL (#wikimedia-operations) [2025-09-05T20:17:17Z] <kemayo@deploy1003> Started scap sync-world: Backport for [[gerrit:1185192|Revert "Edit: Split footer lists into columns" (T401066 T403856)]]

Mentioned in SAL (#wikimedia-operations) [2025-09-05T20:23:18Z] <kemayo@deploy1003> kemayo: Backport for [[gerrit:1185192|Revert "Edit: Split footer lists into columns" (T401066 T403856)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-09-05T20:32:48Z] <kemayo@deploy1003> Finished scap sync-world: Backport for [[gerrit:1185192|Revert "Edit: Split footer lists into columns" (T401066 T403856)]] (duration: 15m 31s)