Template:Chem infobox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>David E. Volk
(This is what I want to see in a chem_infobox)
imported>Drew R. Smith
(Reverting.)
 
(66 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<-- Template makers: this is the data I want to see in a Chem_infobox -->
{|border="1" width={{{width}}} frame=box rules=none align={{{align}}} style="border:1px solid #FAFAFA; margin:5 5 5 5; background-color:#DEDEDE;"
|colspan=2|
{|border="0" width=100% style="border-style:collapse;"
|align="center" valign="center"|{{{image}}}
|}
|-
|colspan=2 style="background-color:#EDEDED;" align="center"|'''{{{molname}}}'''
|-
|colspan=2|
{|border="0" width=100%  border:1px solid #FFFFFF; margin:5 5 5 5; padding:5 5 5 5;" frame=box rules=none
|width=50% |IUPAC name:
|width=50% |{{{iupac}}}
|-
|width=50%|Synonyms:
|width=50%|{{{synonyms}}}
|-
|width=50% |Formula:
|width=50% |{{{molformula}}}
|}
|-
|colspan=2 style="margin: 0 0 0 0; padding:0 0 0 0; height:1;"|<hr style="align:center; width:60%; border:0; height:1px; color:#FFF;">
|-
|width=50%|&nbsp;Uses:
|width=50%|{{{uses}}}
|-
|colspan=2 style="height:3px;"|<hr style="align:center; width:60%; border:0; height:1px; color:#FFF;">
|-
|width=50% |&nbsp;Properties:
|width=50% |{{{properties}}}
|-
|colspan=2 style="height:3px;"|<hr style="align:center; width:60%; border:0; height:1px; color:#FFF;">
|-
|width=50%|&nbsp;Hazards:
|width=50%|{{{hazards}}}
|-
|colspan=2 style="height:3px;"|<hr style="align:center; width:60%; border:0; height:1px; color:#FFF;">
|-
|colspan=2|
{|border=0 width=100%
|align="center" width=50% |Mass (g/mol):
|align="center" width=50% |CAS #:
|-
|align="center" width=50% style="background-color:#DEDEDE;"|{{{molmass}}}
|align="center" width=50% style="background-color:#DEDEDE;"|{{{casnumber}}}
|}
|}


<table border="1" cellpadding="2" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
<noinclude>
<tr><td>'''Molecule Name'''</td><td>ethanol</td>
{{newtemplate
</tr>
|description=Template for chemical information.  <u>'''NOT'''</u> for single elements.  For element information, use {{tl|Elem_Infobox}}.
<tr><td>'''Common synonyms'''</td><td>ethyl alcohol</td>
|execution=
</tr>
<pre>
<tr><td>'''Molecular Formula'''</td><td>C<sub>2</sub>H<sub>6</sub>O</td>
{{chem_infobox
</tr>
|width= use the same width as the picture pixel width.
<tr><td>'''Molecular Mass'''</td><td>345.6023</td>
|align= use this to position the infobox on the article (left right or center)
</tr>
|image= insert the image on this line
<tr><td>'''Properties'''</td><td>clear liquid, polar</td>
|iupac=
</tr>
|synonyms=
<tr><td>'''Common uses'''</td><td>solvent, intoxicant</td>
|molformula=
</tr>
|casnumber=
<tr><td>'''Hazards'''</td><td>flammable</td>
|properties=
</tr>
|molmass=
<tr><td>'''CAS #'''</td><td>123456-67</td>
|uses=
</tr>
|hazards=
<tr><td>'''IUPAC name'''</td><td>hydroxyethane</td>
}}
</tr>
</pre>
</table>
|sample= see [[itraconazole]]
 
|caveats=IUPAC number might not work yet.
The variables should be named:
|authors=
*molname
*[[User:David_E._Volk|David E. Volk]]
*synonyms
*[[user:Robert_W_King|Robert King]]
*molformula
}}
*molmass
</noinclude>
*properties
*uses
*hazards
*casnumber
*iupac

Latest revision as of 01:49, 20 September 2009

{{{image}}}
{{{molname}}}
IUPAC name: {{{iupac}}}
Synonyms: {{{synonyms}}}
Formula: {{{molformula}}}

 Uses: {{{uses}}}

 Properties: {{{properties}}}

 Hazards: {{{hazards}}}

Mass (g/mol): CAS #:
{{{molmass}}} {{{casnumber}}}




Template Description

Template for chemical information. NOT for single elements. For element information, use {{Elem_Infobox}}.

Execution

{{chem_infobox
|width= use the same width as the picture pixel width.
|align= use this to position the infobox on the article (left right or center)
|image= insert the image on this line
|iupac=
|synonyms=
|molformula=
|casnumber=
|properties=
|molmass=
|uses=
|hazards=
}}

Sample

see itraconazole

Caveats

IUPAC number might not work yet.

Authors