Template:Elem Infobox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert W King
No edit summary
imported>Robert W King
No edit summary
Line 1: Line 1:
{|border="0" width="164" align="{{{align}}}" cellpadding="0" cellspacing="0" style="wrap=no"
{|border="0" width="164" align="right" cellpadding="0" cellspacing="0" style="wrap=no"
|width=100% |
|width=100% |
<div style="position:absolute; top:0px; left:0px;">
 
{|border="1" width="141" align="right" cellpadding="4" cellspacing="0" style="background:#{{{background1}}}; wrap=no; border:1px solid #888"  
{|border="1" width="141" align="right" cellpadding="4" cellspacing="0" style="background:#{{{background1}}}; wrap=no; border:1px solid #888"  
|align="center" width=100% bgcolor=#f2f2f2 style="border-top:2px solid #bbb" |'''{{{elName}}}'''
|align="center" width=100% bgcolor=#f2f2f2 style="border-top:2px solid #bbb" |'''{{{elName}}}'''
{|border="0" width="140" align="center" cellpadding="4" cellspacing="0" style="background:#{{{elementColor}}};"
{|border="0" width="140" align="center" cellpadding="4" cellspacing="0" style="background:#{{{elementColor}}};"
|-
|-
|colspan="2" align="left" |<font size=1em>[[Atomic mass|{{{elMass}}}]]</font>
|colspan="2" align="left" |<font size=1em>[[Atomic mass|{{{elMass}}}]]</font>
<!-- selected oxidation states, add a nonbreakingspace in front of each number-->
|rowspan="3" colspan="1" valign="top" align="right" width="35"|<font size=2px>[[Oxidation state|{{{no1}}}<br/>{{{no2}}}<br/>{{{no3}}}<br/>{{{no4}}}<br/>]]</font>
|rowspan="3" colspan="1" valign="top" align="right" width="35"|<font size=2px>[[Oxidation state|{{{no1}}}<br/>{{{no2}}}<br/>{{{no3}}}<br/>{{{no4}}}<br/>]]</font>
|-
|-
Line 17: Line 21:
|align="left" colspan="4"|<font size=1px>[[Electron configuration|{{{eltrnCfg}}}]]</font>
|align="left" colspan="4"|<font size=1px>[[Electron configuration|{{{eltrnCfg}}}]]</font>
|}
|}
</div>{{periodic}}
{| border="0" width="140" cellpadding="4" cellspacing="0"
{| border="0" width="140" cellpadding="4" cellspacing="0"
{{#if:{{{PTImage|}}}|
{{#if:{{{PTImage|}}}|
Line 43: Line 46:
|}
|}
|}
|}
|}<noinclude>
{{-}}
== Placement ==
Articles dealing with elements, similar to using code [[Template:Elem_Infobox|Elem_Infobox]].  <u>'''NOT'''</u> for complex chemical compounds.  For that, use {{tl|Chem_infobox}}.
{{-}}
== Usage ==
See example on [[Lead]].  May also include [[Template:NFPA]] to indicate hazardous qualities.
{|border="0" cellpadding="1" align="left" cellspacing="3" style="background:#ffffff;"
|<pre>{{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=Period.jpg
|image-width=<!--default is 135px-->
|properties=Metallic
|compounds= [[galena]] (PbS),<br>
[[anglesite]] (PbSO<sub>4</sub>),<br>
[[cerussite]] (PbCO<sub>3</sub>)
|uses=various
|hazard=Toxic
}}</pre>
|
{|class="wikitable"
|{{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=Period.jpg
|image-width=<!--default is 135px-->
|properties=Metallic
|compounds= [[galena]] (PbS),<br>[[anglesite]] (PbSO<sub>4</sub>),<br>[[cerussite]] (PbCO<sub>3</sub>)
|uses=various
|hazard=Toxic
}}
|}
|}
|}
{{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=Period.jpg
|image-width=<!--default is 135px-->
|properties=Metallic
|compounds= [[galena]] (PbS),<br>[[anglesite]] (PbSO<sub>4</sub>),<br>[[cerussite]] (PbCO<sub>3</sub>)
|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==
* [[User:Robert W King|Robert King]], Original Design/test/scripting
* [[User:David Yamakuchi|DaveY]], added clearance keepout for surrounding article text, links,  and some other fluff.
</noinclude>

Revision as of 19:32, 5 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=Period.jpg
|image-width=<!--default is 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]6s 24f 145d 106p 2
138px}}}
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
138px}}}
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.