Template:Elem Infobox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
(need title for the section heading. might also consider using subsubpages if the are long, such as Properties)
Line 24: Line 24:
{{#if:{{{PTImage|}}}|{{{PTImage}}}}}
{{#if:{{{PTImage|}}}|{{{PTImage}}}}}
{{#if:{{{properties|}}}|
{{#if:{{{properties|}}}|
{{!}}width="100%"  align="right" colspan="1" cellpadding="2" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' [[/Catalogs#properties|Properties]]:'''</font>  
{{!}}width="100%"  align="right" colspan="1" cellpadding="2" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' [[/Catalogs#Properties|Properties]]:'''</font>  
{{!}}-
{{!}}-
{{!}}width="100%" cellpadding="2" cellspacing="3" bgcolor=#ffffff {{!}}<font size=1> {{{properties}}}</font>}}
{{!}}width="100%" cellpadding="2" cellspacing="3" bgcolor=#ffffff {{!}}<font size=1> {{{properties}}}</font>}}
{{!}}-
{{!}}-
{{#if:{{{compounds|}}}|
{{#if:{{{compounds|}}}|
{{!}} width="100%"  align="right" colspan="1" cellpadding="2" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' [[/Catalogs#compounds|Compounds]]:'''</font>  
{{!}} width="100%"  align="right" colspan="1" cellpadding="2" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' [[/Catalogs#Compounds|Compounds]]:'''</font>  
{{!}}-
{{!}}-
{{!}} width="100%" cellpadding="2" cellspacing="3" bgcolor=#ffffff {{!}}<font size=1> {{{compounds}}}</font>}}
{{!}} width="100%" cellpadding="2" cellspacing="3" bgcolor=#ffffff {{!}}<font size=1> {{{compounds}}}</font>}}
Line 39: Line 39:
{{!}}-
{{!}}-
{{#if:{{{hazard|}}}|
{{#if:{{{hazard|}}}|
{{!}}width="100%"  align="right" colspan="1" cellpadding="2" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' [[/Catalogs#hazard|Hazard]]:'''</font>  
{{!}}width="100%"  align="right" colspan="1" cellpadding="2" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' [[/Catalogs#Hazard|Hazard]]:'''</font>  
{{!}}-
{{!}}-
{{!}}width="100%" cellpadding="2" cellspacing="3" bgcolor=#ffffff {{!}}<font size=1> {{{hazard}}}</font>}}
{{!}}width="100%" cellpadding="2" cellspacing="3" bgcolor=#ffffff {{!}}<font size=1> {{{hazard}}}</font>}}

Revision as of 04:25, 4 April 2008

{{{elName}}}
{{{elMass}}} {{{no1}}}
{{{no2}}}
{{{no3}}}
{{{no4}}}
  {{{elSym}}}
{{{elNum}}}
{{{eltrnCfg}}}


Placement

Articles dealing with elements, similar to using code Elem_Infobox. NOT for complex chemical compounds. For that, use {{Chem_infobox}}.

Usage

See example on Lead. May also include Template:NFPA to indicate hazardous qualities.

{{Elem_Infobox
|background1=ffffff
|elementColor=fefefe
|elMenucolor1=ffffff
|elName=Lead
|elMass=207.2
|elSym=Pb
|elNum=82
|eltrnCfg=[Xe]6''s''
<sup>2</sup>4''f''
<sup>14</sup>5''d''
<sup>10</sup>6''p''
<sup>2</sup>
|no1= +2
|no2= +4
|no3=
|no4=
|PTImage=[[Image:PeriodicLead.jpg|center|135px]]
|properties=Metallic
|compounds= [[galena]](PbS),<br /> 
[[anglesite]](PbSO<sub>4</sub>),<br />
[[cerussite]](PbCO<sub>3</sub>)
|uses=various
|hazard=Toxic
}}
Lead
207.2 +2
+4


  Pb
82
[Xe]6s24f145d106p2
PeriodicLead.jpg
Properties:
Metallic
Compounds:
galena(PbS),
anglesite(PbSO4),
cerussite(PbCO3)
Uses:
various
Hazard:
Toxic
Lead
207.2 +2
+4


  Pb
82
[Xe]6s 24f 145d 106p 2
PeriodicLead.jpg
Properties:
Metallic
Compounds:
galena(PbS),

anglesite(PbSO4),
cerussite(PbCO3)

Uses:
various
Hazard:
Toxic


Parameters

  • background1= aaccff (the color of the background, in Hex)
  • elementColor=xxxxxx (the color of the element square, in Hex)
  • elName= (element name)
  • elMass= (element mass)
  • elSym= (element symbol)
  • elNum= (atomic number)
  • eltrnCfg=X-X (electron confguration)
  • no1=A (oxidation states)
  • no2=B
  • no3=C
  • no4=D
  • properties= Brief description of properties
  • compounds= What common materials is it found in?
  • uses= (uses)
  • hazard= what type of hazard does it pose?

Credits

  • Robert King, Original Design/test/scripting
  • DaveY, added clearance keepout for surrounding article text, links, and some other fluff.