• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Period color/sandbox

  • Language
  • Watch
  • View source
< Template:Period color
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Period color (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
See also: Category:Geological period templates
WarningThis template is used on approximately 25,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

Usage

Returns the correct colour for a geological period. Currently requires expansion to work with all periods.

The colours use the World Geological Map (Paris) colours, the global standard used at by the International Commission on Stratigraphy.

The template should be updated to use the values stated in the spreadsheet provided on the Official International Commission on Stratigraphy's website (listed under the "additional chart resources" section). Please be careful not to leave any spaces in the rgb() declaration.

Example

<syntaxhighlight lang="wikitext">{{Period color|Devonian}}</syntaxhighlight> Produces:
rgb(203,140,55)

That will appear in a wikitable or template as follows:

Period system
Devonian

This template can be used in navbars in the |titlestyle= parameter:

|titlestyle=border-style:solid; border-color:transparent {{Period color|proterozoic}}; border-width: 0 2.7em;

See {{Proterozoic footer}} for how the color appears in the navbar's title bar.

Period templates

This list is incomplete. You may help by expanding it

  • Template:Next period
  • Template:Period color
  • Template:Period end
  • Template:Period end error
  • Template:Period infoboxes
  • Template:Period span
  • Template:Period span/brief
  • Template:Period start
  • Template:Period start error
The above documentation is transcluded from Template:Period color/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Period_color/sandbox&oldid=5943194"
Last edited on 16 January 2023, at 21:41

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 16 January 2023, at 21:41.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop