Template:Rpcc

From Citizendium
Revision as of 18:10, 14 June 2008 by imported>David Yamakuchi (→‎Code)
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:

  1. Phase
  2. Metal
  3. Electronegativity
  4. "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;
}}