Template talk:Period color

Update
This template is out of date: Tobias1984 (talk) 09:18, 9 November 2012 (UTC)
 * The colors of the 2012 time scale (http://www.stratigraphy.org/column.php?id=Chart/Time%20Scale) are more pastel-colored.
 * Also the template doesn't return all the new stages (e.g. Campanian).
 * The template should also have the ability to return values when calling Upper Cretaceous instead of Late Cretaceous.
 * The colors from this source (https://engineering.purdue.edu/Stratigraphy/charts/RGB.pdf) are a little darker than on the official stratigraphic chart 2012.
 * Please could you make the required changes to Template:Period color/sandbox and reactivate the request? &mdash; Martin (MSGJ · talk) 12:14, 9 November 2012 (UTC)
 * I've also made a handy table for you at Template:Period color/testcases so that you can compare the colours between the sandbox and the main template. — Mr. Stradivarius  (have a chat) 13:14, 9 November 2012 (UTC)
 * Thank you "MSGJ" and "Mr. Stradivarius". -- Tobias 19 84  21:23, 14 November 2012 (UTC)

I'm done with the updates and added all the missing stages. -- Tobias 19 84  22:36, 14 November 2012 (UTC)
 * Yes check.svg Done — Mr. Stradivarius  (have a chat) 11:08, 15 November 2012 (UTC)
 * Thank you Stradivarius for your quick response. I updated the sandbox version once more because I had two typos in it and some Silurian stages were missing. Sorry, I should have double checked yesterday. --Tobias1984 (talk) 15:16, 15 November 2012 (UTC)
 * ✅ &mdash; Martin (MSGJ · talk) 16:17, 15 November 2012 (UTC)


 * Please update the colors to  |ICS January 2013 or whater wins on this discussion to define which set wins Wikipedia talk:WikiProject Geology 24.218.110.195 (talk) 23:03 26 March 2013 (UTC) 7:03pm 3/26/2013 EDT.

Invalid areas of the code
Please, change this invalid areas of the code |late cretaceous|upper cretaceous=rgb(166,212,104) |berriasian=rgb(243,242,156) |berriasian=rgb(234,237,147) |berriasian=rgb(222,231,138) |berriasian=rgb(209,227,130) |berriasian=rgb(195,223,121) |berriasian=rgb(181,218,113) |early cretaceous|lower cretaceous=rgb(126,205,116)

|pliocene=rgb(254,248,166) |pliocene=rgb(254,250,200) |zanclean=rgb(254,249,189)

to correct |late cretaceous|upper cretaceous=rgb(166,212,104) |maastrichtian=rgb(243,242,156) |campanian=rgb(234,237,147) |santonian=rgb(222,231,138) |coniacian=rgb(209,227,130) |turonian=rgb(195,223,121) |cenomanian=rgb(181,218,113) |early cretaceous|lower cretaceous=rgb(126,205,116)

|pliocene=rgb(254,248,166) |piacenzian=rgb(254,250,200) |zanclean=rgb(254,249,189)

Berriasian is subdivision of the Lower Cretaceous. In this template, the "berausian" name was inadvertently used for subdivisions of the Upper Cretaceous: Maastrichtian, Campanian, Santonian, Coniacian, Turonian and Cenomanian. And similar error in the color code pliocene - piacenzian. Aleksey (Alnagov (talk) 17:07, 30 March 2013 (UTC))
 * Yes check.svg Done -- Red rose64 (talk) 12:21, 31 March 2013 (UTC)

Order Mixed Up
On the Geologic time scale The Frasnian comes before the Famennian. On this template someone mixed up that order so that the Famennian goes before the Frasnian. The table to the right shows the correct order. Red means the error in the template now. Bold means that is the way once correct. Please correct the order.

|devonian=rgb(221,150,81) |upper devonian|late devonian=rgb(244,224,169) | frasnian =rgb(243,235,204) | famennian =rgb(244,234,185) |middle devonian|mid devonian=rgb(246,200,122) |givetian=rgb(245,222,148) |eifelian=rgb(245,211,134)

To the correct order.

|devonian=rgb(221,150,81) |upper devonian|late devonian=rgb(244,224,169) |famennian=rgb(243,235,204) |frasnian=rgb(244,234,185) |middle devonian|mid devonian=rgb(246,200,122) |givetian=rgb(245,222,148) |eifelian=rgb(245,211,134)

24.218.110.195 (talk) 01:13 30 April 2013 (UTC) 9:13pm 4/29/2013 EDT.


 * Red information icon with gradient background.svg Not done: The Frasnian was indeed earlier than the Famennian, but the timeline is shown with most recent at the top - like the rock strata - and so the order is correct. Please note that in the MediaWiki  parser function, the order that the different cases are listed in is immaterial. Exchanging these two in the   will not affect the order in which they are shown in the timeline. -- Red rose64 (talk) 08:40, 30 April 2013 (UTC)


 * Template:Period color was ordered that the youngest is at the top and the oldest at the bottom. The Frasnian is older then the Famennian. So the Frasnian should go below the Famennian. Right now it's reversed so you have to fix it. Look at the table on the right before you edit it. The colors are messed up because of this error. 24.218.110.195 (talk) 20:36 30 April 2013 (UTC) 4:36pm 4/30/2013 EDT.


 * Looks more like the colors are mixed up and not the names. --Tobias1984 (talk) 20:55, 30 April 2013 (UTC)
 * 24.218.110.195 - I did look at the table on the right, very carefully: the Frasnian is definitely below the Famennian, not reversed, so no fix is necessary. If you believe that the colours are wrong, this is a matter of style not accuracy; so you should seek opinions at Wikipedia talk:WikiProject Geology first (see WP:EDITREQ), so Red information icon with gradient background.svg Not done: please establish a consensus for this alteration before using the template. -- Red rose64 (talk) 21:18, 30 April 2013 (UTC)


 * The sequence can be any in this template, it does not matter. Error in the fact that the colour of the Famennian Stage is assigned to the Frasnian Stage, colour of the Frasnian is assigned to the Famennian. Aleksey (Alnagov (talk) 21:34, 30 April 2013 (UTC))


 * Not there. The template order is reversed not the table. The color part is. Read every single comment carefully before you comment. 24.218.110.195 (talk) 00:20 30 April 2013 (UTC) 8:20pm 4/30/2013 EDT.
 * Red information icon with gradient background.svg Not done: please establish a consensus for this alteration before using the template. Who is to say that the colours are right or wrong? -- Red rose64 (talk) 06:59, 1 May 2013 (UTC)

Discussion of this problem started at Wikipedia talk:WikiProject Geology Aleksey (Alnagov (talk) 10:22, 1 May 2013 (UTC))
 * As of 2015, two years later, the colors are STILL reversed: color established for Fammenian is given here as Frasnian and vice versa. Do fix this! Szczureq (talk) 11:04, 16 July 2015 (UTC)
 * And who's to say the colours are wrong? The Commission for the Geological Map of the World (CGMW) is. Szczureq (talk) 11:08, 16 July 2015 (UTC)
 * So where is the consensus that I asked for? The discussion linked above was archived to Wikipedia talk:WikiProject Geology/Archive 3 and it seems inconclusive. -- Red rose64 (talk) 12:58, 16 July 2015 (UTC)
 * I've read this debate. The second question (about the general palette) is left without conclusive answer. The mistake I'm referring to is a matter of the first question and the conclusion was reached, as it was rather obvious: two votes for interchangining colors (quote: It's funny, but your votes are needed to correct this mistake). The choice of particular set of shades is of secondary importance. Szczureq (talk) 19:51, 16 July 2015 (UTC)

Edit request "Unfererenced codes"
I dug everywhere on the internet for a geological timescale rgb codes that said "phanerozoic=rgb(111,218,237)---|eoarchean=rgb(238,0,125) |hadean=rgb(203,3,129)" but found none. Some remarks: We should not be using invented colors, we have to use the only ref that has the codes that most geological timescale websites and most Wikipedias use. Codes that use this ref is shown below. Some alternatives is shown below. 24.218.110.195 (talk) 14:25 11 August 2013 (UTC) 10:25am 8/11/2013 EDT.
 * User:Alnagov said "Unfortunately a original source for colors, that use in Template:Period color, lost. Maybe we should choose a new reliable source." (http://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Geology/Archive_3#Second_question._Color_source_for_Template:Period_color).
 * User:PePeEfe said "you can use those directly, not invented colors." ref is here.
 * Users:Alnagov's invented rgb codes (http://en.wikipedia.org/wiki/User:Alnagov/sandbox)
 * 2013 codes (http://hu.wikipedia.org/w/index.php?title=Sablon:Id%C5%91egys%C3%A9g/sz%C3%ADn&action=edit)
 * 2012 codes (http://www.stratigraphy.org/ICSchart/ChronostratChart2012.jpg)
 * 2010 codes (http://www.stratigraphy.org/ICSchart/StratChart2010.jpg)
 * The colours were originally sourced from the RGB values provided by the IGS for their 2010 chart. If I recall correctly, I used the values that were hard-coded into the PDF available at http://stratigraphy.org/ICSchart/StratChart2010.pdf (Note that the colours do not reproduce correctly in the JPG to which you link).  The colours look similar, or even identical, in the current charts, which can be downloaded from http://stratigraphy.org/index.php/ics-chart-timescale.  (Again, be sure to use the PDFs for correct colour rendering.)  It doesn't seem particularly contentious to suggest that we use the colours that are currently used by the international commission on stratigraphy — this seems much more logical than inventing our own esoteric colour scheme. Martin  (Smith609 – Talk)  12:48, 13 August 2013 (UTC)
 * Most Wikipedias prefer to use the codes listed here "https://engineering.purdue.edu/Stratigraphy/charts/rgb.html". I think they are the only ref. But can you collect the 2013 values for use on this template and do you have this talk page on your watchlist because it took a long time for you to answer? That means I have set the request template back up.
 * I link the jpg pages because you have to copy into Windows 7 paint and use the pick color tool on the the colors then click more colors to see its code. Also the correct 2013 codes are in use on the Hungarian Wikipedia that I have a link above. 24.218.110.195 (talk) 17:37 13 August 2013 (UTC) 1:37pm 8/13/2013 EDT.
 * JPG files use lossy compression. If you use the pick tool ten times, you'll get ten different colours. -- Red rose64 (talk) 17:57, 13 August 2013 (UTC)
 * You can use the hard coded values in the 2013 PDF file or use the codes listed in the engineering.purdue website for use on this wiki. We should not stick with the outdated invented values. Let's just not argue about the jpg file and pick color tool for values. User:Redrose64 the color for the Famennian stage is being used for the Frasnian stage, color for the Frasnian stage is being used for the Famennian stage. 24.218.110.195 (talk) 01:00 15 August 2013 (UTC) 9:00pm 8/14/2013 EDT.

Can this template be modified to transclude as hex?
I haven't been able to get the period color to transclude into certain templates and I suspect it's because of the rgb formatting. Can it be modified to transclude as hexadecimal? Abyssal (talk) 15:38, 14 November 2017 (UTC)
 * Examples please. -- Red rose64 &#x1f339; (talk) 21:24, 14 November 2017 (UTC)
 * Nevermind, I was the one screwing up. Abyssal (talk) 01:27, 15 November 2017 (UTC)

Accessibility
Some of these period colors are not appropriate as background for Wikipedia text links, because they fail accessibility and contrast check. See the following table: —hike395 (talk) 05:43, 3 January 2018 (UTC)
 * This is directly related to Wikipedia talk:WikiProject Geology. -- Red rose64 &#x1f339; (talk) 11:43, 3 January 2018 (UTC)

Template-protected edit request on 13 March 2018
The Famennian age is more recent than the Frasnian. The Famennian should therefore be listed above the Frasnian. Please change: devonian=rgb(221,150,81) upper devonian late devonian=rgb(244,224,169) frasnian=rgb(243,235,204) famennian=rgb(244,234,185) to: devonian=rgb(221,150,81) upper devonian late devonian=rgb(244,224,169) famennian=rgb(243,235,204) frasnian=rgb(244,234,185) Thank you. 124.168.107.149 (talk) 03:57, 13 March 2018 (UTC)
 * Yes check.svg Done but the order makes no difference at all to the functionality &mdash; Martin (MSGJ · talk) 08:24, 13 March 2018 (UTC)
 * The requestor wanted to swap the famennian and frasnian colors, not just swap the order. —hike395 (talk) 00:16, 14 March 2018 (UTC)
 * Ah, that makes a lot more sense. ✅ &mdash; Martin (MSGJ · talk) 10:22, 14 March 2018 (UTC)
 * Thank you. Yes, you're assumption is correct, it was more the colour assigment that had been screwed up by the transposition of the similarlishly-named ages/stages when they were first added to the template.


 * Interestingly, I can see that a number of Users attempted to have this rectified nearly 5 years ago but RedRose64 was particularly adamant about not fixing it. Glad it's now sorted. 124.168.107.149 (talk) 12:07, 15 March 2018 (UTC)

Template-protected edit request on 18 March 2020
holocene Benniboi01 (talk) 18:51, 18 March 2020 (UTC)
 * Sorry, did my request not go through? That's weird...My bad. I was asking if someone could add the Meghalayan, Northgrippian, and Greenlandian ages to this template, which were ratified by the ICS in July 2018. They should be inserted into the template like this:

holocene=rgb(254,241,224) meghalayan=rgb(insert rgb here) northgrippian=rgb(insert rgb here) greenlandian=rgb(insert rgb here)
 * When I sampled these three periods, they all had the same color, which was rgb(254,247,241) in GIMP. I'm not sure what wikipedia uses to sample the period colors, so feel free to check if this sampled value is correct. thanks! — Preceding unsigned comment added by Benniboi01 (talk • contribs) 19:39, 18 March 2020 (UTC)
 * Red information icon with gradient background.svg Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. -- Red rose64 &#x1f339; (talk) 21:11, 19 March 2020 (UTC)
 * I've changed the template's sandbox to include my requested change, as you requested . Can I make one addition to the request, if you're willing to carry it out? the 'middle pleistocene' has since Jan 2020 had a new, official name: the Chibanian. I was wondering if that could be added too, in this format:

|upper pleistocene|tarantian=rgb(254,241,214) |middle pleistocene|ionian|chibanian=rgb(254,240,204) ...
 * pleistocene=rgb(254,239,184)
 * I've already added the proposed addition above to the sandbox, as well. this section of the code would be right underneath the area I want my other code added. I'm pretty sure this is all ready for inserting. thank you for processing my request, again!Benniboi01 (talk) 19:02, 22 March 2020 (UTC)
 * Yes check.svg Done &mdash; Martin (MSGJ · talk) 21:38, 29 March 2020 (UTC)

Template-protected edit request on 17 September 2021
I request that the entire code of the period color template be replaced with the code I have provided below.

I have found an up-to-date reliable source for the official ISC timescale color codes, a spreadsheet on the official ICS timescale website (here, under "additional chart resources") that lists them. The color codes we currently have in the template are outdated, so all of them have to be updated. I've already done the heavy lifting and updated all of the color codes in the sandbox. I also updated the organization of the template so that it isn't an absolute mess anymore. All that needs to be done is to delete all of the template code and replace it with the sandbox version. Benniboi01 (talk) 16:49, 17 September 2021 (UTC)
 * Please don't paste code blobs into talk pages, making your changes to the template's sandbox should be quite sufficient. -- Red rose64 &#x1f339; (talk) 22:06, 17 September 2021 (UTC)
 * ✅ Excellent find, Benniboi! — hike395 (talk) 10:22, 18 September 2021 (UTC)

Template-protected edit request on 16 January 2023
The corrected color code below should be put in place of the one that's currently there to fix it. the line in question is near the bottom of the template's code.

|paleoarchean|palæoarchean|palaeoarchean=rgb(244,68,159)

Benniboi01 (talk) 20:45, 16 January 2023 (UTC)
 * ✅.  P.I. Ellsworth &thinsp;, ed.  put'r there 04:46, 17 January 2023 (UTC)