Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a22b1d631fc9f557

Jump to content

Template talk:ColPollTable

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Module talk:ColPollTable/sandbox)
Latest comment: 3 months ago by 57birdnerd in topic Lack of "tnc" color code


Header drops into table, covering top row

[edit]

I'm looking at 2023–24 NCAA Division I women's ice hockey rankings (as well as 2006 BCS computer rankings, referred to in this template's documentation...And also, this own template's documentation), and the table header is dropping into the first row or two of data in the table, thus covering up that data. There's also a blank row above the table header.

Example screenshots:

Screenshot from Wikipedia
Screenshot from Wikipedia
Screenshot from Wikipedia

I've seen behavior like this previously on an old revision of the NCAA women's ice hockey tournament page. @Jroberson108 fixed the table on that page in this revision with the comment "Convert sticky table to "sticky table start" template. No need for top and bottom sticky headers."

Screenshots:

Old revision:
Screenshot from Wikipedia
New revision:
Screenshot from Wikipedia

So I went to Module:ColPollTable, but I couldn't find any reference to "sticky tables" in the code...And while I'm a coder, Lua is not my strong suit.

Does anyone have any idea of what's going on and how to fix this? MikeVitale 13:53, 8 September 2024 (UTC)Reply

@MikeVitale: My guess is the module adding an overflow div around the table is messing it up because the {{sticky table start}} template does the same thing. Module line 140:
local ret = mw.html.create('div'):css('overflow', 'auto')
Jroberson108 (talk) 14:14, 8 September 2024 (UTC)Reply
I don't see a way to add classes to the table as an argument, so you are stuck with just "wikitable" unless changed. Jroberson108 (talk) 14:25, 8 September 2024 (UTC)Reply
@MikeVitale: I was able to reproduce it by enabling the sticky gadget. You may want to disable it if enabled, or check your Special:MyPage/common.css. Jroberson108 (talk) 14:43, 8 September 2024 (UTC)Reply
@Jroberson108 Yep, it definitely appears to be the "Make headers of tables display as long as the table is in view, i.e. "sticky" (requires Chrome v91+, Firefox v59+, or Safari)" user preference in the "Testing and Development" section of the "Gadgets" preference page. Unchecking that preference makes the Template:ColPollTable headers display correctly (i.e., not drop into the table and cover the top row.)
Thanks for the help and suggestion. Do you have any idea where to go to discuss that feature and provide feedback? MikeVitale 22:43, 8 September 2024 (UTC)Reply
@MikeVitale: Gadget talk page at MediaWiki talk:Gadget-StickyTableHeaders.css. Jroberson108 (talk) 23:13, 8 September 2024 (UTC)Reply

Lack of "tnc" color code

[edit]

I've been working with 2018 NCAA Division III football rankings, and I came across an issue. In week 11 of the AFCA poll, two teams tied for rank #11 and also qualified for the Division III playoffs. However, there is no tie variant of the "nc" color code that removes the bottom border of the cell. Since I am not versed in Lua, could someone look into implementing this? Adding "nc" and "tnc" to the documentation would be helpful as well. 57birdnerd (talk) 05:27, 29 April 2026 (UTC)Reply