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

Jump to content

Template talk:CollegeSecondaryHeader

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 9 years ago by Frietjes in topic Fallback behavior

Fallback behavior

[edit]

@Frietjes: Hi, I flushed out examples using Alabama/football and UCLA/basketball on both Template:CollegePrimaryHeader and here, Template:CollegeSecondaryHeader. UCLA works as expected (blue/primary and gold/secondary), but Alabama renders with crimson background in both locations. I suspect this is by acutally by design (and why I chose that school) due to Alabama's white, light gray, or similar flag in Module:College color related to contrast.

Could you review my Alabama example and my associated explanatory text, editing as appropriate? UW Dawgs (talk) 23:38, 29 August 2016 (UTC)Reply

UW Dawgs, yes, it uses the same logic as the infobox headers. first, it sets nearly white backgrounds to white, then it rejects white backgrounds and substitutes primary colors instead. if you search for "if the background is white, then use the primary background instead" in the module code you will see it. we can always change the logic, but that's the way it is at the moment. Frietjes (talk) 00:02, 30 August 2016 (UTC)Reply
UW Dawgs, I updated the code to allow for nearly white backgrounds. I decided that there isn't anything fundamentally wrong with having a light background, so why not allow it. if someone doesn't like it, they can change the secondary to primary. Frietjes (talk) 19:26, 30 August 2016 (UTC)Reply