Community Wishlist Survey 2021/Reading/Enable sticky table headers

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Random proposal ►

◄ Back to Reading


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

Discussion[edit]

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