Template:Rpcc
Jump to navigation
Jump to search
Usage
This template was made to be used with {{PTofE}}, {{Resizable periodic cell}}, {{PropertyCell}}, and {{Periodic Table of Properties}}.
Colorschemes
Currently supported color schemes are:
- Phase
- Metal
- Electronegativity
- "default" (= solid grey for the whole table)
Code
{{#switch: {{{colorscheme}}} |Phase = {{#switch: {{ :{{{eName}}}/Standard phase}} |Solid = 5fff5a; |Liquid = bebafc; |Gas = fafa15; |Synthetic = dbb0ff; |f2f2f2;}} |Metal = {{#switch: {{ :{{{eName|}}}/Elemental Class}} |Post-Transition Metal= 5fff5a; |Transition Metal = 9cec83; |Metal = bebafc; |Metalloid = bdfc37; |Non-Metal = fafa15; |Alkaline Earth Metal = dbb0ff; |Alkali Metal = db0bff; |Halogen = e7f38c; |Noble Gas = 1cc1c1; |Rare Earth = dadaad; |Actinoid = eddeed; |Trans-Uranium = addada; |f2f2f2;}} |Electronegativity = {{#ifeq:"{{:{{{eName|}}}/Electronegativity}}"|"no data"|fff177|{{Calculate electronegativity color|eName={{{eName}}} }}}}; |f2f2f2; }}