Template:Element color

From Wikipedia, the free encyclopedia
Jump to: navigation, search

transparent

Documentation icon Template documentation[view] [edit] [history] [purge]

This template returns the element's legend color, to be used in HTML makeup:

  • {{Element color|Alkali metals}}#ff6666
  • {{Element color|alkali metal}}#ff6666

Overview[edit]

State of matter (font color)[edit]

Color attribute value (font color); color number can can be used as background but the key is not defined then.
  • A  Solid → #000000 (solid) 
  • A  Liquid → #008000 (liquid) 
  • A  Gas → #ff0000 (ga_) 
  • A  Unknown phase → #696969 (unknownphase) 
  • A  Solid (predicted) → #000000 (solid(predicted)) 
  • A  Liquid (predicted) → #008000 (liquid(predicted)) 
  • A  Gas (predicted) → #ff0000 (gas(predicted)) 

Occurrence (cell border; aka frame)[edit]

Border attribute value
  •    Primordial → 2px solid #8811ff (primordial) 
  •    From decay → 2px dashed #773300 (fromdecay) Note: "Natural radio" deprecated
  •    Synthetic → 2px dotted #4499ff (synthetic) 
  •    Undiscovered → 2px solid transparent (undiscovered) 
  •    None → 2px solid transparent (none) 

Metal–nonmetal categories[edit]

  •    Alkali metals → #ff6666 (alkalimetal_) 
  •    Alkaline earth metals → #ffdead (alkalineearthmetal_) 
  •    Lanthanides → #ffbfff (lanthanide_) 
  •    Actinide → #ff99cc (actinide) 
  •    Superactinide → #d1ddff (superactinide) 
  •    Eka-superactinide → #c6dd9d (eka-superactinide) 
  •    Transition metal → #ffc0c0 (transitionmetal) 
  •    Post-transition metal → #cccccc (post-transitionmetal) 
  •    Metalloid → #cccc99 (metalloid) 
  •    Diatomic nonmetal → #e7ff8f (diatomicnonmetal) 
  •    Polyatomic nonmetal → #a1ffc3 (polyatomicnonmetal) 
  •    Noble gas → #c0ffff (noblega_) 
  •    Unknown chemical properties → #e8e8e8 (unknownchemicalpropertie_) 
  •    Unknown → #ffffff (unknown) 

Metal–nonmetal categories, reduced set[edit]

  •    Metals → #eee8aa (metal_) 
  •    Metalloids → #cccc99 (metalloid_) 
  •    Nonmetals → #b0e0e6 (nonmetal_) 
  •    Inner transition metals → #d8bfd8 (innertransitionmetal_) 

Year and era[edit]

  •    Antiquity to Middle Ages → #ffb9b9 (antiquitytomiddleage_) 
  •    Before 1800 → #dfcdff (before1800) 
  •    1800-1849 → #cbffb9 (1800-1849) 
  •    1850-1899 → #b9ffe4 (1850-1899) 
  •    1900-1949 → #ffe2b9 (1900-1949) 
  •    1950-1999 → #fff6b9 (1950-1999) 
  •    2000-present → #ffb9ef (2000-present) 
  •    Future → # (future) 

Example: {{Periodic table (discovery periods)}}

Blocks[edit]

  •    s-block → #ff9999 (s-block) 
  •    p-block → #fdff8c (p-block) 
  •    d-block → #99ccff (d-block) 
  •    f-block → #9bff99 (f-block) 
  •    g-block → #fd99ff (g-block) Note: unused, g-block does not exist. This color is used to derive the 'predicted' color

In period 8, theoretical elements:

  •    s-block (predicted) → #ffcccc (s-block(predicted)) 
  •    p-block (predicted) → #ffffbf (p-block(predicted)) 
  •    d-block (predicted) → #c7eeff (d-block(predicted)) 
  •    f-block (predicted) → #cdffcc (f-block(predicted)) 
  •    g-block (predicted) → #febfff (g-block(predicted)) 

Numbers[edit]

Used in: Valence (chemistry)#Maximum valences of the elements These colors correspond to the Alkali metal–noble gases range

  •      → #c0ffff (0) 
  •    1 → #ff8989 (1) 
  •    2 → #ffdead (2) 
  •    3 → #ffbfff (3) 
  •    4 → #cccccc (4) 
  •    5 → #cccc99 (5) 
  •    6 → #a0ffa0 (6) 
  •    7 → #ffff99 (7) 
  •    8 → #d1ddff (8) 
  •    9 → #c6dd9d (9) 

Metalloid cite classes[edit]

See Template:Periodic table (list of metalloid lists)

  •    Metalloid citeclass 1of4 → #baffba (metalloidciteclass1of4) Note: currently: 93%
  •    Metalloid citeclass 2of4 → #badcff (metalloidciteclass2of4) Note: currently: 44%
  •    Metalloid citeclass 3of4 → #ffbadc (metalloidciteclass3of4) Note: currently: 24%
  •    Metalloid citeclass 4of4 → #ffffba (metalloidciteclass4of4) Note: currently: 9%

Setting a default color[edit]

|1=not a color name |default=#aabbcc → #aabbcc (use # not #)
|1=not a color name |default=thistle → thistle

Misc[edit]

  •    Rare earth metal → #ffbffe (rareearthmetal) Note: discussed, Nov/Dec 2013
  •    Halogen → #ffff99 (halogen) Note: deprecated as a nonmetal category. See nonmetal

"Unknown" variants[edit]

  •    Unknown → #ffffff (unknown) 
  •    Unk → #ffffff (unk) Note: deprecated
  •    Unknown (white) → #ffffff (unknown(white)) Note: deprecated
  •    White → #ffffff (white) 
  •    X → #ffffff (x) Note: Deprecated, redireced to Unknown (white)
  •    Unknown chemical properties → #e8e8e8 (unknownchemicalpropertie_) 
  •    (See below) → #f8f8f8 ((seebelow)) Note: deprecated
  •    Future → # (future) 
  •    Redirect → #c0c0c0 (redirect) 
  •    Unassessed → transparent (unassessed) 
  • A  Unknown phase → #696969 (unknownphase) 
  •    Undiscovered → 2px solid transparent (undiscovered) 
  •    none → 2px solid transparent (none) 

Wikipedia article quality[edit]

Used in: Wikipedia:WikiProject Elements/Articles/Periodic Table by Quality

  •    aq-FA → #6699ff (aq-fa) 
  •    aq-A → #66ffff (aq-a) 
  •    aq-GA → #55cc55 (aq-ga) Note: Formal color is #66ff66
  •    aq-B+ → #66ff66 (aq-b+) Note: or aq-Bplus
  •    aq-B → #bcff66 (aq-b) Note: Formal color is #b2ff66
  •    aq-C → #ffff66 (aq-c) 
  •    aq-Start → #ffaa66 (aq-start) 
  •    aq-Stub → #ff6666 (aq-stub) 
  •    aq-Unassessed → transparent (aq-unassessed) 

Wikipedia article importance[edit]

  •    imp-Top → #ff00ff (imp-top) 
  •    imp-High → #ff88ff (imp-high) 
  •    imp-Mid → #ffbbff (imp-mid) 
  •    imp-Low → #ffddff (imp-low) 
  •    imp-??? → #f9f9f9 (imp-???) 
  •    imp-n/a → #f5f5f5 (imp-n/a) 

Color names[edit]

  •    Black → #000000 (black) 
  •    White → #ffffff (white) 
  •    blue → #0000ff (blue) 
  •    green → #008000 (green) 
  •    red → #ff0000 (red) 
  •    yellow → #ffff00 (yellow) 

Table background[edit]

  •    table title → #d8d8d8 (tabletitle) 
  •    table header → #e0e0e0 (tableheader) 
  •    table colheader → #e8e8e8 (tablecolheader) 
  •    table mark → #f0f0f0 (tablemark) 
  •    table background → #f8f8f8 (tablebackground) 
  •    table border → #a9a9a9 (tableborder) 
Available background colors for periodic tables
Usage: {{Element color|table header}}
Specification
(1st parameter)
Alternative
specification
Returns color Note
title caption #d8d8d8
header #e0e0e0
colheader rowheader, subheader, colh, rowh, subh #e8e8e8
mark #f0f0f0
background bg #f8f8f8 Also the default return value
border   #a9a9a9 Equals predefined color "grey"

The return values are complete color values to be used as a CSS style, including the # but not the ; character.

Deprecated or unknown meaning[edit]

Do not use these color names. In general, it is advised to use a more specific, meaningful color name. These color names are not used in main space, and most are redirected to another color.

  •    D → transparent (d) Note: Historical (previously for years and eras), kept to ensure that old revisions do not appear broken.
  •    E → transparent (e) Note: Historical (previously for years and eras), kept to ensure that old revisions do not appear broken.
  •    F → transparent (f) Note: Historical (previously for years and eras), kept to ensure that old revisions do not appear broken.
  •    X → #ffffff (x) Note: Unspecific, redirected to Unknown (white)
  •    Disambig → #00fa9a (disambig) Note: Not a legend color, unknown intention.
  •    UnknownC → transparent (unknownc) Note: Unclear meaning. Redirected to Unknown phase
  •    veryreactive → transparent (veryreactive) Note: Testing or sandbox.

Colors hardcoded[edit]

The same colors, with the same key, may be hardcoded in templates and pages:

Deprecated parameters[edit]

See also[edit]