User:JavaRogers

Template:Geological range

; Demonstration:

Unmodified colours: {{Template:Geological range|300|30}}

CGMW colours: {{User:JavaRogers/Template:Geological range|300|30}}

; Changes:

  1. :User:JavaRogers/Template:Period font color
  2. * Created. Copied from original :Template:Period color
  3. * Takes the period name as its parameter
  4. * Returns either white or black, using the [http://ccgm.org/img/cms/2013%20Chart%20CGMW%20color%20codes.pdf CGMW color palette] for reference
  5. :User:JavaRogers/Template:Fossil range/bar
  6. * Added a styled span around the link's display text.
  7. * Previously: {{{2}}}
  8. * Changed to: {{{1}}}
  9. * Note: Maybe this can be done more elegantly. I found the link overrides the color if the font is modified from outside the brackets.
  10. :User:JavaRogers/Template:Phanerozoic 220px
  11. * Previously: {{fossil range/bar|Paleogene|Pg}}
  12. * Changed to: {{fossil range/bar|Paleogene|PG}}

; Summary:

  • Symbol colors are controlled by :User:JavaRogers/Template:Period font color, to contrast with background colors better (using [http://ccgm.org/img/cms/2013%20Chart%20CGMW%20color%20codes.pdf CGMW color palette] for reference)
  • Reformatted Paleogene symbol (PG) so it doesn't wrap on mobile