Page MenuHomePhabricator

Have numbers next to images on Special:ListFiles
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
Have numbers next to images on Special:ListFiles

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):

Visit some long page like
https://commons.wikimedia.org/wiki/Special:ListFiles?limit=500&user=Jidanni&ilshowall=1

Scroll down.

Picture after picture.

Benefits (why should this be implemented?):

Wouldn't it be great to have numbers along the side,
so we can tell if we are at the 247th image or the 479th image?

Yes, tomorrow the user might add another picture, and the numbers will
all change.

But at least it would allow one to not just guess where we were relying
on sidebars states.

They could even be an optional column, that appears only if you click
some checkbox.

Event Timeline

Aklapper changed the task status from Open to Stalled.Mar 17 2024, 5:34 PM

Which underlying problem would this solve? You did not provide any use case in the section Use Case(s). Please do fill out the form. Thanks.

Unfortunately closing this Phabricator task as no further information has been provided.

@Jidanni: After you have provided the information asked for and if this still happens, please set the status of this task back to "Open" via the Add Action...Change Status dropdown. Thanks! Please do not create further tickets without filling in _all_ information.

This comment was removed by Jidanni.

@Jidanni: Wrong task, see the topic of this one

Well I took a quick look in
https://en.wiktionary.org/wiki/Special:SpecialPages
and clicked on several of them.

All the lists I saw were numbered lists.

It's only natural when looking at a long list of items to want them numbered.

And one can even have up to 500 items shown in the list I was complaining about.

It's only natural when looking at a long list of items to want them numbered.

Not if you do not use the number for anything

  1. Browse https://commons.wikimedia.org/wiki/Special:ListFiles?limit=500&user=Jidanni&ilshowall=1
  2. Scroll down to the middle of the file.

How can you tell if you are looking at the 249th of 253rd picture?
Sure, if it doesn't matter to you then ignore the numbers.
But if it does, then one cannot live without them.
At least there should be a button to switch them on.
Or if numbers are bad, then take them off all those Special Pages.

The numbers could be within a current table cell. No need to make an extra column.

How can you tell if you are looking at the 249th of 253rd picture?

Which problem is solved if you know that you are looking at the 249th of 253rd picture? (Use case. See above.)

Or if numbers are bad, then take them off all those Special Pages.

If other Special Pages list numbers and consistency is your argument, then please share such arguments so we all save some discussion time. Thanks.

Page number is the only index for pages in books; whereas in the file list, each file is indexed per its file name. You may also refer to a given file thanks to its date.
To describe a use case, a story is often better; e.g. “While reviewing all files from a specific user opening them in new browser tabs, I would like them to be numbered, so I can easier remember the last file I have open.”
You can’t say “sometimes it is useful to have numbers”, we need to explicit “sometimes” with a precise story.

Adding a new column would enlarge that table which is already (too?) large.
Adding the number inside another column seems me confusing, I don’t know where it can actually state.

I think that kind of optional feature should be supported through a user script. You can create it with something like that:

var listFileTable = $( 'table.listfiles' );

listFileTable.children('thead').children().prepend( "<th>#</th>" );

var rows = listFileTable.children('tbody').children();

rows.each( function( index ) {
	$( this ).prepend( '<td>' + (index+1) + '</td>' )
} );