Template:Element color
{{#switch:{{#invoke:string| replace| source= | pattern= [%s-]| plain= false}} | alkalimetal | alkalimetals = #ff6666 | alkalineearthmetal | alkalineearthmetals = #ffdead | lanthanide | lanthanides = #ffbfff | actinide | actinides = #ff99cc | transitionmetal | transitionmetals = #ffc0c0 | posttransitionmetal | posttransitionmetals = #cccccc | metalloid | metalloids = #cccc99 | reactivenonmetal | reactivenonmetals = #f0ff8f | noblegas | noblegases = #c0ffff | unknownchemicalproperty | unknownchemicalproperties | unknownproperty | unknownproperties = #e8e8e8 | primordial = 2px solid #6e6e8e | fromdecay = 2px dashed #6e6e8e | synthetic = 2px dotted #6e6e8e | undiscovered = 2px solid transparent | none = 2px solid transparent | solid = #000000 | liquid = #007000 | gas = #cb0000 | unknownphase = #606060 | table0 | tableborder = #a9a9a9 | table1 | tabletitle | tablecaption = #d8d8d8 | table2 | tableheader = #e0e0e0 | table3 | tablecolheader | tablerowheader | tablesubheader = #e8e8e8 | table4 | tablemark = #f0f0f0 | table5 | tablebackground | tablebg = #f8f8f8 | sblock = #ff9999 | pblock = #fdff8c | dblock = #99ccff | fblock = #9bff99 | gblock = #fd99ff | sblock(predicted) = #ffcccc | pblock(predicted) = #ffffbf | dblock(predicted) = #c7eeff | fblock(predicted) = #cdffcc | gblock(predicted) = #febfff | metal | metals = #eee8aa | nonmetal | nonmetals = #b0e0e6 | antiquitytomiddleages = #ffb9b9 | before1800 = #dfcdff | 1800 | 18001849 | 18001849 = #cbffb9 | 1850 | 18501899 | 18501899 = #b9ffe4 | 1900 | 19001949 | 19001949 = #ffe2b9 | 1950 | 19501999 | 19501999 = #fff6b9 | 2000 | 2000present | 2000present = #ffb9ef | metalloidciteclass1of4 = #baffba | metalloidciteclass2of4 = #badcff | metalloidciteclass3of4 = #ffbadc | metalloidciteclass4of4 = #ffffba | sawheader = #b0e0e6 | saw = #e1fcff | msiheader = #c3ffd8 | msi = #e1ffec | aqfa = #6699ff | aqa = #66ffff | aqga = #55cc55 | aqb = #bcff66 | aqc = #ffff66 | aqstart = #ffaa66 | aqstub = #ff6666 | aqlist = #aa88ff | imptop = #ff00ff | imphigh = #ff88ff | impmid = #ffbbff | implow = #ffddff | impbottom = #ffeeff | imp??? = #f8f9fa | impna | impn/a = #f5f5f5 | 0 | zero = #c0ffff | 1 | one = #ff8989 | 2 | two = #ffdead | 3 | three = #ffbfff | 4 | four = #cccccc | 5 | five = #cccc99 | 6 | six = #a0ffa0 | 7 | seven = #ffff99 | 8 | eight = #d1ddff | 9 | nine = #c6dd9d | unknownvalence = #ededed | white = #ffffff | black = #000000 | red = #ff0000 | yellow = #ffff00 | blue = #0000ff | green = #008000 |#default = Template:Element color/secondary }}Template:Documentation