Jump to content

Template talk:CollegeSecondaryHeader

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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]