Community Wishlist Survey 2021/Reading/Enable sticky table headers

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Random proposal◄ Reading  The survey has concluded. Here are the results!

Enable sticky table headers

  • Problem: In tables with many lines, the header scrolls out of the reader's view and is no further visible for him. That could cause confusion of column contents (for example for tables with numeric data).
  • Who would benefit: everyone reading articles with large tables
  • Proposed solution: implement the position:sticky attribute for table headers natively in MediaWiki through a class, e.g. mw-stickyhead.
  • More comments: This can be realized through templatestyles (example) but interferes the native wikitable styling which requires extra workarounds.
  • Phabricator tickets: phab:T42763
  • Proposer: hgzh 13:52, 18 November 2020 (UTC)Reply[reply]

Discussion

  • I use mediawiki software for documentation outside of the wikimedia environment. We have a lot of tables and this would be very useful Tenbergen (talk) 01:32, 19 November 2020 (UTC)Reply[reply]
  • Yes yes yes, this would be fantastic to have. And it's a good example of a wishlist item that puts the reader first, benefiting the multitudes of non-editing readers, rather than just prioritizing ourselves. {{u|Sdkb}}talk 03:07, 19 November 2020 (UTC)Reply[reply]
  • Per the phab ticket, there is a live gadget for this under Preferences > Gadgets > Testing and development, if useful (not watching, please {{ping}}) czar 01:34, 22 November 2020 (UTC)Reply[reply]
  • Yes please! I often find a faulty item on row 1234 of a huge table and have to scroll up for miles to find out what the column should contain. I just installed the gadget, which is just what I needed but hard to discover. Certes (talk) 01:36, 23 November 2020 (UTC)Reply[reply]
  • To see examples: There are 3 scrolling tables with sticky headers in the statistics section of w:COVID-19 pandemic by country and territory. Some of that CSS, etc. can be used. --Timeshifter (talk) 20:42, 27 November 2020 (UTC)Reply[reply]
  • See: w:Help talk:Table/Archive 8#Sticky table headers?. There is a collapsed example table added today that is very good. Scroll down in the discussion to see it. The table is sticky both vertically and horizontally. Narrow your browser window to see. --Timeshifter (talk) 21:07, 7 December 2020 (UTC)Reply[reply]

Voting