Template:Rpcc: Difference between revisions
Jump to navigation
Jump to search
imported>David Yamakuchi mNo edit summary |
imported>David Yamakuchi m (→Code) |
||
Line 57: | Line 57: | ||
|Trans-Uranium = addada; | |Trans-Uranium = addada; | ||
|f2f2f2;}} | |f2f2f2;}} | ||
|Electronegativity = {{#ifeq:"{{:{{{eName|}}}/Electronegativity}}"|"no data"|fff177|{{Calculate electronegativity color|eName={{{eName}}} }}}}; | |Electronegativity = {{#ifeq:"{{:{{{eName|}}}/Electronegativity}}"|"no data" | ||
|fff177 | |||
|{{Calculate electronegativity color | |||
|eName={{{eName}}} | |||
}} | |||
}}; | |||
|f2f2f2; | |f2f2f2; | ||
}}</pre></noinclude> | }}</pre></noinclude> |
Revision as of 17:10, 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:
- 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; }}