Template:Elem Infobox: Difference between revisions
Jump to navigation
Jump to search
imported>Chris Day (→Usage) |
imported>Chris Day (This might be a better formatt since it is more standard and you do not have to code the image width etc.) |
||
Line 23: | Line 23: | ||
{| border="0" width="140" cellpadding="1" cellspacing="0" | {| border="0" width="140" cellpadding="1" cellspacing="0" | ||
{{#if:{{{PTImage|}}}| | {{#if:{{{PTImage|}}}| | ||
{{!}}style="border-top:2px solid #bbb" {{!}} {{{PTImage}}} }} | {{!}}style="border-top:2px solid #bbb" {{!}} [[{{{PTImage}}}|center|{{{image-width|135px}}}]] }} | ||
{{!}}- | {{!}}- | ||
{{#if:{{{properties|}}}| | {{#if:{{{properties|}}}| | ||
Line 72: | Line 72: | ||
|no3= | |no3= | ||
|no4= | |no4= | ||
|PTImage= | |PTImage=PeriodicLead.jpg | ||
|image-width=<!--default is 135px--> | |||
|properties=Metallic | |properties=Metallic | ||
|compounds= [[galena]] (PbS),<br> | |compounds= [[galena]] (PbS),<br> | ||
Line 99: | Line 100: | ||
|no3= | |no3= | ||
|no4= | |no4= | ||
|PTImage= | |PTImage=PeriodicLead.jpg | ||
|image-width=<!--default is 135px--> | |||
|properties=Metallic | |properties=Metallic | ||
|compounds= [[galena]] (PbS),<br>[[anglesite]] (PbSO<sub>4</sub>),<br>[[cerussite]] (PbCO<sub>3</sub>) | |compounds= [[galena]] (PbS),<br>[[anglesite]] (PbSO<sub>4</sub>),<br>[[cerussite]] (PbCO<sub>3</sub>) | ||
Line 125: | Line 127: | ||
|no3= | |no3= | ||
|no4= | |no4= | ||
|PTImage= | |PTImage=PeriodicLead.jpg | ||
|image-width=<!--default is 135px--> | |||
|properties=Metallic | |properties=Metallic | ||
|compounds= [[galena]] (PbS),<br>[[anglesite]] (PbSO<sub>4</sub>),<br>[[cerussite]] (PbCO<sub>3</sub>) | |compounds= [[galena]] (PbS),<br>[[anglesite]] (PbSO<sub>4</sub>),<br>[[cerussite]] (PbCO<sub>3</sub>) |
Revision as of 09:11, 4 April 2008
|
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=PeriodicLead.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
- Robert King, Original Design/test/scripting
- DaveY, added clearance keepout for surrounding article text, links, and some other fluff.