Template talk:Cell color

Template:Greater color contrast ratio doesn't seem to be working
Thanks for fixing my template,. Before your change, my test case here was breaking Lua after just a few rows. Greater color contrast ratio doesn't seem to be working there yet, though. Thanks again. — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 (talk) 22:41, 9 May 2021 (UTC)


 * You pointed out my mistake as I wrote this. Thanks again. — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 (talk) 22:44, 9 May 2021 (UTC)


 * Oh, wait, it's still breaking on the very first row:
 * {|class="wikitable sortable mw-datatable static-row-numbers" style=text-align:right
 * {|class="wikitable sortable mw-datatable static-row-numbers" style=text-align:right

! rowspan = "2" |State or Territory ! colspan = "2" |2019 ! colspan = "9" |Historical Violent Crime Rates ! style=max-width:4em|Incidence Count ! style=max-width:4em|Violent Crime Rate ! 2018 ! 2017 ! 2016 ! 2015 ! 2014 ! 2013 ! 2012 ! 2011 ! 2010 ! style=background-position:center|  || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| |7403 | |  |  |  |  |  |  |  |  |
 * +Violent Crime Rates per 100000 inhabitants in 2010 - 2019
 * -class=static-row-header style=vertical-align:bottom
 * -class="static-row-header" style=vertical-align:bottom
 * style=text-align:left |
 * style=text-align:left |
 * }
 * — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 (talk) 22:50, 9 May 2021 (UTC)
 * , the values are out of the range of 0 to 1000 so it's returning a negative background color which Greater color contrast ratio doesn't like – Brandon XLF  (talk) 22:57, 9 May 2021 (UTC)
 * Would you test the value for min and max bounds in Value color? — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 (talk) 23:03, 9 May 2021 (UTC)
 * There, fixed it; what do you reckon? — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 (talk) 00:51, 10 May 2021 (UTC)
 * Also, what do you reckon is happening with Nevada?
 * {|class="wikitable sortable mw-datatable static-row-numbers" style=text-align:right

! rowspan = "2" |State or Territory ! colspan = "2" |2019 ! colspan = "9" |Historical Violent Crime Rates ! style=max-width:4em|Incidence Count ! style=max-width:4em|Violent Crime Rate ! 2018 ! 2017 ! 2016 ! 2015 ! 2014 ! 2013 ! 2012 ! 2011 ! 2010 ! style=background-position:center|  || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| || style=background-position:center| |15210 | |  |  |  |  |  |  |  |  |
 * +Violent Crime Rates per 100000 inhabitants in 2010 - 2019
 * -class=static-row-header style=vertical-align:bottom
 * -class="static-row-header" style=vertical-align:bottom
 * style=text-align:left; |
 * style=text-align:left; |
 * }
 * Is it a knife-edge case? — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 (talk) 23:11, 9 May 2021 (UTC)
 * It seems like white just barely has a better contrast ratio. – Brandon XLF  (talk) 00:01, 10 May 2021 (UTC)

Enhancement: 3 colour scales
I noticed the new colours with ccolor didn't quite match the manual colours before. A possible improvement would be adding the option to specify a median colour, like in Excel and Google Sheets. — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 (talk) 00:57, 10 May 2021 (UTC)

Reverted recent changes as they broke the auto text contrast
(Hohum @ ) 16:45, 16 March 2024 (UTC)