Template:Elem Infobox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert W King
imported>David Yamakuchi
(added clearance keepout for surrounding article text, links, and some other fluff.)
Line 1: Line 1:
{|border="1" width="141" frame=box rules=none align="right" cellpadding="3" cellspacing="1" style="margin: 0 0 0 0; background:#{{{background1}}}; wrap=no"  
{|border="0" width="164" frame=box rules=none align="right" cellpadding="3" cellspacing="3" style="margin: 0 0 0 0 ;background:#ffffff ;wrap=no"
|align="center" width=100% colspan="4"|
 
{|border="1" width="141" frame=box rules=none align="right" cellpadding="3" cellspacing="1" style="margin: 0 50 0 0; background:#{{{background1}}}; wrap=no"  
 
|align="center" width=100% colspan="4"|'''{{{elName}}}'''
|align="center" width=100% colspan="4"|'''{{{elName}}}'''
<!-- change background to reflect position on periodic table -->
 
{|border="0" width="140" frame=box rules=none align="center" cellpadding="3" cellspacing="0" style="margin: 0 0 0 0; background:#{{{elementColor}}};"  
{|border="0" width="140" frame=box rules=none align="center" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#{{{elementColor}}};"
<!--|align="center" width=100% colspan="4"|'''{{{elName}}}''' <!-- name of element -->
 
|-
|-
|width="35"|<font size=1em>{{{elMass}}}</font> <!-- atomic mass -->
|colspan="2" align="left" |<font size=1em>[[Atomic mass|{{{elMass}}}]]</font>
<!-- leave blank -->
|align="center" width="35"|&nbsp;
<!-- selected oxidation states, add a nonbreakingspace in front of each number-->
<!-- selected oxidation states, add a nonbreakingspace in front of each number-->
|rowspan="3" colspan="2" valign="top" align="right" width="35"|<font size=2px>{{{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>
|-
|-
<!-- leave blank -->
<!-- leave blank -->
|&nbsp;
|&nbsp;
|rowspan="2" align="center" width="35"|<font size=6px>'''{{{elSym}}}'''</font><!-- symbol -->
|rowspan="2" align="center" width="55"|<font size=6px>'''[[Periodic Table of Elements|{{{elSym}}}]]'''</font>
|-
|-
|align="left"|<font size=4px>'''{{{elNum}}}'''</font><!-- atomic number -->
|align="left"|<font size=4px>[[Atomic number|'''{{{elNum}}}''']]</font>
|-
|-
|align="left" colspan="4"|<font size=1px>{{{eltrnCfg}}}</font><!-- electron configuration -->
|align="left" colspan="4"|<font size=1px>[[Electron configuration|{{{eltrnCfg}}}]]</font>
|}
|}
{| border="1" width="140" cellpadding="1" cellspacing="0"
|-
{{#if:{{{PTImage|}}}|{{{PTImage}}}}}
|-
|-
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"  
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"  
|align="right" width="100%"|<font size=1px><b>Properties:</b></font>
|align="right" width="100%"|<font size=1px><b>[[/Catalogs#Physical Properties|Properties]]:</b></font>
{|border="0" width="100%" colspan="4" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"
|-
|align="left" width="100%"|<font size=1px>{{{properties}}}</font>
|align="left" width="100%"|{{#if:{{{properties|}}}|<table border="0" width="100%" colspan="4" cellpadding="2" cellspacing="3" bgcolor=#ffffff><td><font size=1px>{{{properties}}}</font></td></table>}}
|}
|}
|}
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"  
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"  
|align="right" width="100%"|<font size=1px><b>Compounds:</b></font>
|align="right" width="100%"|<font size=1px><b>[[/Catalogs#Compounds|Compounds]]:</b></font>
{|border="0" width="100%" colspan="4" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"
|-
|align="left" width="100%"|<font size=1px>{{{compounds}}}</font>
|align="left" width="100%"|{{#if:{{{compounds|}}}|<table border="0" width="100%" colspan="4" cellpadding="2" cellspacing="3" bgcolor=#ffffff><td><font size=1px>{{{compounds}}}</font></td></table>}}
|}
|}
|}
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"  
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"  
|align="right" width="100%"|<font size=1px><b>Uses:</b></font>
|align="right" width="100%"|<font size=1px><b>[[/Catalogs#Uses|Uses]]:</b></font>
{|border="0" width="100%" colspan="4" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"
|-
|align="left" width="100%"|<font size=1px>{{{uses}}}</font>
|align="left" width="100%"|{{#if:{{{uses|}}}|<table border="0" width="100%" colspan="4" cellpadding="2" cellspacing="3" bgcolor=#ffffff><td><font size=1px>{{{uses}}}</font></td></table>}}
|}
|}
|}
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"  
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"  
|align="right" width="100%"|<font size=1px><b>Hazards:</b></font>
|align="right" width="100%"|<font size=1px><b>[[/Catalogs#Hazard|Hazards]]:</b></font>
{|border="0" width="100%" colspan="4" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"
|-
|align="left" width="100%"|<font size=1px>{{{hazard}}}</font>
|align="left" width="100%"|{{#if:{{{hazard|}}}|<table border="0" width="100%" colspan="4" cellpadding="2" cellspacing="3" bgcolor=#ffffff><td><font size=1px>{{{hazard}}}</font></td></table>}}
|}
|}
|-
|}
|}
|}
|}
<noinclude>
<noinclude>
<br>
 
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<noinclude>
<noinclude>
== Placement ==
== Placement ==
Articles dealing with elements, using code [[Template:Elem_Infobox|Elem_Infobox]].  <u>'''NOT'''</u> for complex chemical compounds.  For that, use {{tl|Chem_infobox}}.
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}}.
<br /><br /><br /><br /><br />


== Usage ==
== Usage ==
See example on [[Scandium]].  May also include [[Template:NFPA]] to indicate hazardous qualities.
See example on [[Lead]].  May also include [[Template:NFPA]] to indicate hazardous qualities.]
 
{|border="0" colspan="3" cellpadding="1" align="left" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff; class="wikitable";"
{|border="0" colspan="3" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff; class="wikitable";"
!Wikitext!!Appearance!!Anatomical
|-
|-
|<pre>{{Elem_Infobox
|{{Elem_Infobox_test1
|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=
|properties=Metallic
|compounds=[[galena]](PbS),<br />
[[anglesite]](PbSO<sub>4</sub>),<br />
[[cerussite]](PbCO<sub>3</sub>)
|uses=
|hazard=[[Lead Poisoning|Toxic]]
}}
|<pre>{{Elem_Infobox_test1
|background1=ffffff
|background1=ffffff
|elementColor=
|elementColor=fefefe
|elName=Scandium
|elMenucolor1=ffffff
|elMass=44.9559
|elName=Lead
|elSym=Sc
|elMass=207.2
|elNum=21
|elSym=Pb
|eltrnCfg=Ar3d<sup>1</sup>-4s<sup>2</sup>
|elNum=82
|no1=2
|eltrnCfg=[Xe]6''s''
|no2=8
<sup>2</sup>4''f''
|no3=9
<sup>14</sup>5''d''
|no4=2
<sup>10</sup>6''p''
<sup>2</sup>
|no1= +2
|no2= +4
|no3=
|no4=
|properties=Metallic
|properties=Metallic
|compounds=[[Thortveitite]].
|compounds= [[galena]](PbS),<br />
|uses=None
[[anglesite]](PbSO<sub>4</sub>),<br />
|hazard=Radioactive. 
[[cerussite]](PbCO<sub>3</sub>)
|uses=
|hazard=Toxic
}}</pre>
}}</pre>
|{{Elem_Infobox
|-
|            background1=ffffff
|-
|          elementColor=
|                elName=Scandium
|                elMass=44.9559
|                  elSym=Sc
|                  elNum=21
|               eltrnCfg=Ar3d<sup>1</sup>-4s<sup>2</sup>
|                    no1=2
|                    no2=8
|                    no3=9
|                    no4=2
|            properties=Metallic
|              compounds=[[Thortveitite]].
|                  uses=None
|                hazard=Radioactive. 
}}
|
{|class="wikitable"
{|class="wikitable"
|{{Elem_Infobox
|{{Elem_Infobox_test1
|            background1=ffffff
|            background1=ffffff
|          elementColor=
|          elementColor=fefefe
|                elName=Scandium
|          elMenucolor1=ffffff
|                elMass=44.9559
|                elName=Lead
|                  elSym=Sc
|                elMass=207.2
|                  elNum=21
|                  elSym=Pb
|              eltrnCfg=Ar3d<sup>1</sup>-4s<sup>2</sup>
|                  elNum=82
|                    no1=2
|              eltrnCfg=[Xe]6''s''<sup>2</sup>4''f''<sup>14</sup>5''d''<sup>10</sup>6''p''<sup>2</sup>
|                    no2=8
|                    no1=+2
|                    no3=9
|                    no2=+4
|                    no4=2
|                    no3=
|                    no4=
|            properties=Metallic
|            properties=Metallic
|              compounds=[[Thortveitite]].
|              compounds= [[galena]](PbS),<br /> [[anglesite]](PbSO<sub>4</sub>),<br />[[cerussite]](PbCO<sub>3</sub>)
|                   uses=None
|             uses=
|                 hazard=Radioactive. 
|             hazard=[[Lead Poisoning|Toxic]]
}}
}}
|}
|}
Line 135: Line 143:
* elSym=  (element symbol)
* elSym=  (element symbol)
* elNum=  (atomic number)
* elNum=  (atomic number)
* eltrnCfg=X-X (electron confguration
* eltrnCfg=X-X (electron confguration)
* no1=A (oxidation states)
* no1=A (oxidation states)
* no2=B
* no2=B
* no3=C
* no3=C
* no4=D
* no4=D
* properties= Describe what it looks like
* properties= Brief description of properties
* compounds= What is it found in?
* compounds= What common materials is it found in?
* uses= (uses)
* uses= (uses)
* hazard= what type of hazard does it pose?
* hazard= what type of hazard does it pose?
Line 147: Line 155:
==Credits==
==Credits==


* [[User:Robert W King|Robert King]], Design/test/scripting
* [[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>
</noinclude>

Revision as of 20:42, 3 April 2008

{{{elName}}}
{{{elMass}}} {{{no1}}}
{{{no2}}}
{{{no3}}}
{{{no4}}}
  {{{elSym}}}
{{{elNum}}}
{{{eltrnCfg}}}
Properties:
Compounds:
Uses:
Hazards:


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.]

Template:Elem Infobox test1
{{Elem_Infobox_test1
|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=
|properties=Metallic
|compounds= [[galena]](PbS),<br /> 
[[anglesite]](PbSO<sub>4</sub>),<br />
[[cerussite]](PbCO<sub>3</sub>)
|uses=
|hazard=Toxic
}}
Template:Elem Infobox test1

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.