வார்ப்புரு:Element color
{{#switch:{{lc:{{#invoke:String| replace| source= {{{1| }}}| pattern= [%s-]| plain= false}}}}&lt;!-- rm: hyphen, whitespace --&gt;
 &lt;!-- CATEGORY, bg color. Use style= &quot;background:#ff99cc&quot;--&gt;
 | alkalimetal | alkalimetals                 = &amp;#x23;ff6666
 | alkalineearthmetal | alkalineearthmetals   = &amp;#x23;ffdead
 | lanthanide | lanthanides                   = &amp;#x23;ffbfff
 | actinide | actinides                       = &amp;#x23;ff99cc
 | transitionmetal | transitionmetals         = &amp;#x23;ffc0c0
 | posttransitionmetal | posttransitionmetals = &amp;#x23;cccccc
 | metalloid | metalloids                     = &amp;#x23;cccc99
 | reactivenonmetal | reactivenonmetals       = &amp;#x23;f0ff8f&lt;!-- NNNM 2018 April final choice --&gt;
 | noblegas | noblegases                      = &amp;#x23;c0ffff| unknownchemicalproperty | unknownchemicalproperties
 | unknownproperty | unknownproperties        = &amp;#x23;e8e8e8
 &lt;!-- OCCURRENCE, border. Use style= &quot;border:2px solid #4499ff&quot; --&gt;
 | primordial   = 2px solid &amp;#x23;6e6e8e
 | fromdecay    = 2px dashed &amp;#x23;6e6e8e
 | synthetic    = 2px dotted &amp;#x23;6e6e8e
 | undiscovered = 2px solid transparent
 | none = 2px solid transparent&lt;!-- techical placeholder for border --&gt;
 &lt;!-- SOM / PHASE, font color. Use style= &quot;color:#007000&quot; --&gt;
 | solid        = &amp;#x23;000000&lt;!-- black --&gt;
 | liquid       = &amp;#x23;007000&lt;!-- green, new per 2013update2018a --&gt;
 | gas          = &amp;#x23;cb0000&lt;!-- red,   new per 2013update2018a --&gt;&lt;!-- Apr 2018: rm &quot;gases&quot; --&gt;
 | unknownphase = &amp;#x23;606060&lt;!-- grey,  new per 2013update2018a --&gt;
 &lt;!-- TABLE colors --&gt;
 | table0 | tableborder               = &amp;#x23;a9a9a9
 | table1 | tabletitle | tablecaption = &amp;#x23;d8d8d8
 | table2 | tableheader               = &amp;#x23;e0e0e0
 | table3 | tablecolheader
 | tablerowheader | tablesubheader    = &amp;#x23;e8e8e8
 | table4 | tablemark                 = &amp;#x23;f0f0f0
 | table5 | tablebackground | tablebg = &amp;#x23;f8f8f8
 &lt;!-- BLOCK --&gt;
 | sblock = &amp;#x23;ff9999
 | pblock = &amp;#x23;fdff8c
 | dblock = &amp;#x23;99ccff
 | fblock = &amp;#x23;9bff99
 | gblock = &amp;#x23;fd99ff&lt;!-- does not occur in RL, not even predicted. For color set calculations only --&gt;
 | sblock(predicted) = &amp;#x23;ffcccc
 | pblock(predicted) = &amp;#x23;ffffbf
 | dblock(predicted) = &amp;#x23;c7eeff
 | fblock(predicted) = &amp;#x23;cdffcc
 | gblock(predicted) = &amp;#x23;febfff
 &lt;!-- Categories, top level --&gt;
 | metal | metals       = &amp;#x23;eee8aa
 | nonmetal | nonmetals = &amp;#x23;b0e0e6
 &lt;!-- ERA (discovery years) --&gt;
 | antiquitytomiddleages      = &amp;#x23;ffb9b9
 | before1800                 = &amp;#x23;dfcdff
 | 1800 | 18001849 | 18001849 = &amp;#x23;cbffb9
 | 1850 | 18501899 | 18501899 = &amp;#x23;b9ffe4
 | 1900 | 19001949 | 19001949 = &amp;#x23;ffe2b9
 | 1950 | 19501999 | 19501999 = &amp;#x23;fff6b9
 | 2000 | 2000present | 2000present = &amp;#x23;ffb9ef
 &lt;!-- Metalloid cite class --&gt;
 | metalloidciteclass1of4 = &amp;#x23;baffba
 | metalloidciteclass2of4 = &amp;#x23;badcff
 | metalloidciteclass3of4 = &amp;#x23;ffbadc
 | metalloidciteclass4of4 = &amp;#x23;ffffba
 &lt;!-- SAW standard atomic weight; table bg color (Oct 2017) --&gt;
 | sawheader  = &amp;#x23;b0e0e6
 | saw        = &amp;#x23;e1fcff&lt;!-- 0/255: 132-30-255 --&gt;
 | msiheader  = &amp;#x23;c3ffd8
 | msi        = &amp;#x23;e1ffec&lt;!-- 0/255: 100-30-255 --&gt;
 &lt;!-- ARTICLE QUALITY grades --&gt;
 | aqfa = &amp;#x23;6699ff
 | aqa  = &amp;#x23;66ffff
 | aqga = &amp;#x23;55cc55&lt;!-- adjusted, from 66ff66--&gt;
 | aqb  = &amp;#x23;bcff66&lt;!-- adjusted, from b2ff66 --&gt;
 | aqc  = &amp;#x23;ffff66
 | aqstart = &amp;#x23;ffaa66
 | aqstub  = &amp;#x23;ff6666
 | aqlist  = &amp;#x23;aa88ff
 &lt;!-- WP ARTICLE IMPORTANCE (from template:Importance/colour) --&gt;
 | imptop  = &amp;#x23;ff00ff
 | imphigh = &amp;#x23;ff88ff
 | impmid  = &amp;#x23;ffbbff
 | implow  = &amp;#x23;ffddff
 | impbottom = &amp;#x23;ffeeff
 | imp???  = &amp;#x23;f8f9fa
 | impna | impn/a = &amp;#x23;f5f5f5
 &lt;!-- NUMBER, VALENCE --&gt;
 | 0 | zero  = &amp;#x23;c0ffff
 | 1 | one   = &amp;#x23;ff8989
 | 2 | two   = &amp;#x23;ffdead
 | 3 | three = &amp;#x23;ffbfff
 | 4 | four  = &amp;#x23;cccccc
 | 5 | five  = &amp;#x23;cccc99
 | 6 | six   = &amp;#x23;a0ffa0
 | 7 | seven = &amp;#x23;ffff99
 | 8 | eight = &amp;#x23;d1ddff
 | 9 | nine  = &amp;#x23;c6dd9d
 | unknownvalence = &amp;#x23;ededed
 &lt;!-- STRAIGHT COLOR (HTML W3C color def) --&gt;
 | white  = &amp;#x23;ffffff
 | black  = &amp;#x23;000000
 | red    = &amp;#x23;ff0000
 | yellow = &amp;#x23;ffff00
 | blue   = &amp;#x23;0000ff
 | green  = &amp;#x23;008000
 &lt;!-- DEFAULT --&gt;
 |#default = {{Element color/secondary|1={{{1|}}} |default={{{default|transparent}}} }}
 }}&lt;!--