Template:Elem Infobox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>David Yamakuchi
(added clearance keepout for surrounding article text, links, and some other fluff.)
m (Text replacement - "Elemental Class" to "Periodic table of elements")
 
(328 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{|border="0" width="164" frame=box rules=none align="right" cellpadding="3" cellspacing="3" style="margin: 0 0 0 0 ;background:#ffffff ;wrap=no"  
<includeonly><div style="align:{{{align}}}; z-index:3;">
|align="center" width=100% colspan="4"|
{|border="0" width="178" {{#if:{{{align|}}}|align="{{{align}}}"|align="right"}} cellpadding="0" cellspacing="0" style="wrap=no"
|width=100%|


{|border="1" width="141" frame=box rules=none align="right" cellpadding="3" cellspacing="1" style="margin: 0 50 0 0; background:#{{{background1}}}; wrap=no"  
{|border="1" width="160" align="center" cellpadding="3" cellspacing="0" style="background:#{{{background1}}}; wrap=no; border:1px solid #888;"  


|align="center" width=100% colspan="4"|'''{{{elName}}}'''
|align="center" width=100% bgcolor=#f2f2f2 style="border-top:2px solid #bbb" |'''{{{elName}}}'''


{|border="0" width="140" frame=box rules=none align="center" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#{{{elementColor}}};"
{|border="0" width="154" align="center" cellpadding="2" cellspacing="0" style="background:#{{{elementColor}}};"


|-
|-
|colspan="2" align="left" |<font size=1em>[[Atomic mass|{{{elMass}}}]]</font>
|colspan="2" align="left" |<font size=1px>[[Atomic mass|{{#if:{{:{{{elName}}}/Atomic mass}}|{{:{{{elName}}}/Atomic mass}}|{{{elMass}}}}}]]</font>
<!-- selected oxidation states, add a nonbreakingspace in front of each number-->
|rowspan="3" valign="top" align="right" width="38"|<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>
|-
|-
<!-- leave blank -->
<!-- leave blank -->
|&nbsp;
|width="38"|&nbsp;
|rowspan="2" align="center" width="55"|<font size=6px>'''[[Periodic Table of Elements|{{{elSym}}}]]'''</font>
|rowspan="2" align="center" width="78"|<font size=6px>'''[[Periodic table of elements|{{:{{{elName}}}/Atomic symbol}}]]'''</font>
|-
|-
|align="left"|<font size=4px>[[Atomic number|'''{{{elNum}}}''']]</font>
|align="left"|<font size=4px>[[Atomic number|'''{{:{{{elName}}}/Atomic number}}''']]</font>
|-
|-
|align="left" colspan="4"|<font size=1px>[[Electron configuration|{{{eltrnCfg}}}]]</font>
|align="left" colspan="2"|<font size=1px>{{#if:{{{eltrnCfg|}}}|[[Electron configuration|{{{eltrnCfg}}}]]}}</font>
|}
|align="right" colspan="1"|<font size=2px style="nowrap">{{#if:{{{elgroup|}}}|{{H:title|Group|{{{elgroup}}},}}}}{{#if:{{{elperiod|}}}|{{H:title|Period|{{{elperiod}}},}}}}{{#if:{{{elblock|}}}|{{H:title|Block|{{{elblock}}}}}}}</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;"
|align="right" width="100%"|<font size=1px><b>[[/Catalogs#Physical Properties|Properties]]:</b></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;"
|align="right" width="100%"|<font size=1px><b>[[/Catalogs#Compounds|Compounds]]:</b></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;"
|align="right" width="100%"|<font size=1px><b>[[/Catalogs#Uses|Uses]]:</b></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="152" cellpadding="3" cellspacing="0"


{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"  
{{!}}style="border-top:2px solid #bbb" align="left" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1 align="left">{{H:title|This is a navigable Periodic Table of the Elements.  You can hover over each unit and click on it to see its current article!|[&nbsp;?&nbsp;]}}</font>
|align="right" width="100%"|<font size=1px><b>[[/Catalogs#Hazard|Hazards]]:</b></font>
{{!}}style="border-top:2px solid #bbb" align="right" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>'''[[{{#if:{{{elClass|}}}|{{{elClass}}}|{{:{{{elName}}}/Periodic table of elements}}}}]]:'''</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>}}
|colspan=2 width="100%" cellpadding="3" cellspacing="0" bgcolor=#f2f2f2|{{Periodic|elSym={{:{{{elName}}}/Atomic symbol}}|elClass={{#if:{{{elClass|}}}|{{{elClass|}}}|{{:{{{elName}}}/Periodic table of elements}}}}
|}
|backgroundColor={{{background1}}}
|ele color=333
|nonmetal color=ff1e00
|noble color=2fc900
|alkali metal color=66ffff
|aem color=00a8ff
|metalloid color=aa00aa
|halogen color=ffd200
|ptm color=0000aa
|transition color=0042ff
|lanthanide color=4475ff
|actinide color=bb75ff}}
|-
|-
{{#if:{{{properties|}}}|
{{!}}colspan=2 style="border-top:2px solid #bbb" width="100%"  align="right" cellpadding="3" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' {{#ifeq:{{SUBPAGENAME}}|MSDS|[[{{{elName}}}/MSDS#Properties|Properties]]|[[{{BASEPAGENAME}}/Properties|Properties]]}}:'''</font>
{{!}}-
{{!}}colspan=2 style="text-align: left;" width="100%" cellpadding="3" cellspacing="0" bgcolor=#ffffff {{!}}<font size=1> {{{properties}}}</font>}}
{{!}}-
{{#if:{{{compounds|}}}|
{{!}}colspan=2 style="border-top:2px solid #bbb"  width="100%"  align="right" cellpadding="3" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' {{#ifeq:{{SUBPAGENAME}}|MSDS|[[{{{elName}}}/MSDS#Compounds|Compounds]]|[[{{{elName}}}/Compounds|Compounds]]}}:'''</font>
{{!}}-
{{!}}colspan=2 style="text-align: left;" width="100%" cellpadding="3" cellspacing="0" bgcolor=#ffffff {{!}}<font size=1> {{{compounds}}}</font>}}
{{!}}-
{{#if:{{{uses|}}}|
{{!}}colspan=2 style="border-top:2px solid #bbb" width="100%"  align="right" cellpadding="3" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' {{#ifeq:{{SUBPAGENAME}}|MSDS|[[{{{elName}}}/MSDS#Uses|Uses]]|[[{{{elName}}}/Uses|Uses]]}}:'''</font>
{{!}}-
{{!}}colspan=2 style="text-align: left;" width="100%" cellpadding="3" cellspacing="0" bgcolor=#ffffff {{!}}<font size=1> {{{uses}}}</font>}}
{{!}}-
{{#if:{{{hazard|}}}|
{{!}}colspan=2 style="border-top:2px solid #bbb" width="100%"  align="right" cellpadding="3" cellspacing="0" bgcolor=#f2f2f2 {{!}}<font size=1>''' {{#ifeq:{{SUBPAGENAME}}|MSDS|[[{{{elName}}}/MSDS#Hazard|Hazard]]|[[{{{elName}}}/Hazard|Hazard]]}}:'''</font>
{{!}}-
{{!}}colspan=2 style="text-align: left;" width="100%" cellpadding="3" cellspacing="0" bgcolor=#ffffff {{!}}<font size=1> {{{hazard}}}</font>}}
|}
|}
|}
<noinclude>
<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}}.
<br /><br /><br /><br /><br />
== Usage ==
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";"
|-
|{{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
|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
}}</pre>
|-
|-
{|class="wikitable"
|{{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]]
}}
|}
|}
|}
|}
 
</div></includeonly>
==Parameters==
<noinclude>{{TlDoc}}
 
* 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>
</noinclude>

Latest revision as of 04:50, 6 March 2024


This documentation is transcluded from Template:Elem Infobox/doc (edit | history)

Usage

{{Elem_Infobox
|background1= f2f2f2
|align=right
|elementColor=
|elName= Gold
|elMass= 196.967
|elSym= Au
|elNum= 79
|elClass=Transition metal
|elgroup=11
|elperiod=6
|elblock=d
|eltrnCfg=[Xe]6s<sup>1</sup>4f<sup>14</sup>5d<sup>10</sup>
|no1=1
|no2=3
|no3=
|no4=
|properties= IUPAC name, CAS number, molecular mass, boiling point, melting point, density, etc.
|compounds= Auranofin
|uses= coinage, jewelry
|hazard=
}}

gives:

Gold
196.96655 1
3


  Au
79
[Xe]6s14f145d10 11,6,d
[ ? ] Transition metal:
Properties:
IUPAC name, CAS number, molecular mass, boiling point, melting point, density, specific heat, refractive. index, etc.
Compounds:
Auranofin
Uses:
coinage, jewelry