Page MenuHomePhabricator

Collapsing part of a Wikitable
Closed, InvalidPublicFeature

Description

Feature summary The snooker maximum breaks table (https://en.wikipedia.org/wiki/Maximum_break#List_of_official_maximum_breaks) is getting very large, and so I would like to make the table smaller and more user-friendly by putting in an extra row above each season, with a "hide/show" button in it so that the user can selectively collapse/expand each season. Using nested tables seems to be the only way to do this currently, but that would compromise the table sorting, which is essential.

Event Timeline

@AlH42: Thanks for reporting this and welcome to Phabricator. Anyone is free to break the table into several tables and several sections, and use existing collapse/expand code. It seems that this does not require any software change.

For future reference, when using the feature request form, please fill in all the sections in the template. Thanks.

@AlH42: Thanks for reporting this and welcome to Phabricator. Anyone is free to break the table into several tables and several sections, and use existing collapse/expand code. It seems that this does not require any software change.

I don't think you read the request fully, where I said "Using nested tables seems to be the only way to do this currently, but that would compromise the table sorting, which is essential." I have tried nested tables and the table sorting does not work.

Oh, I see. Still I am not aware of anything in HTML/JS which would allow collapsing a part of a HTML table while still keeping the table sorting working.
I'm happy to be proven wrong though!

I'm happy to be proven wrong though!

@Aklapper So is this request still "Closed, Invalid"?

Please share how to do in HTML / JS what you would like to see.

Please share how to do in HTML / JS what you would like to see.

@Aklapper I have no idea, which is why I posted the request in the first place. I know what I want to do, but do not know how to do it. You are the experts, I'm just a user wanting an answer. If it is not possible, then just say so and I'll go away. It seems to me that posting this request was a waste of time and effort.

I guess the request makes some sense but I'm not aware that HTML and JS would support that, and that is what MediaWiki outputs. I am sorry that I was not clear enough.

Please share how to do in HTML / JS what you would like to see.

@Aklapper I have no idea, which is why I posted the request in the first place. I know what I want to do, but do not know how to do it. You are the experts, I'm just a user wanting an answer. If it is not possible, then just say so and I'll go away. It seems to me that posting this request was a waste of time and effort.

FWIW @AlH42, as it looks like you edit on the English Wikipedia (and in case people who see this task on Phabricator don't know the answer), my experience has been that Wikipedia:Village pump (technical) generally has people watching it who may be able to help with this sort of query :)