Template:Rpcc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>David Yamakuchi
mNo edit summary
imported>David Yamakuchi
mNo edit summary
Line 33: Line 33:
#Electronegativity
#Electronegativity
#"default" (= solid grey for the whole table)
#"default" (= solid grey for the whole table)
</noinclude>
 
==Code==
 
<pre>{{#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;
}}</pre></noinclude>

Revision as of 16:50, 14 June 2008

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;
}}