Template:Chem infobox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>David E. Volk
(crude test)
 
imported>Drew R. Smith
(Reverting.)
 
(67 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<-- use IUPAC name if it is short and synonyms if they are few -->
{|border="1" width={{{width}}} frame=box rules=none align={{{align}}} style="border:1px solid #FAFAFA; margin:5 5 5 5; background-color:#DEDEDE;"
{{{name}}} {{{molformula}}} {{{molmass}}} {{{uses}}} {{{hazards}}} {{{casnumber}}} {{{IUPAC}}} {{{synonyms}}}
|colspan=2|
 
{|border="0" width=100% style="border-style:collapse;"
{|border="1" width="141" frame=box rules=none align="right" cellpadding="3" cellspacing="1" style="margin: 0 0 0 0; background:#{{{background1}}}; wrap=no"  
|align="center" valign="center"|{{{image}}}
|align="center" width=100% colspan="4"|'''{{{molname}}}'''
|}
<!--|align="center" width=100% colspan="4"|'''{{{molname}}}''' <!-- name of molecule -->
|-
|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="35"|<font size=1em>{{{molformula}}}</font> <!-- molecular formula -->
|width=50%|Synonyms:
<!-- leave blank -->
|width=50%|{{{synonyms}}}
|-
|-
|width="35"|<font size=1em>{{{molmass}}}</font> <!-- molecular mass -->
|width=50% |Formula:
<!-- leave blank -->
|width=50% |{{{molformula}}}
|align="center" width="35"|&nbsp;
|}
{|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>
{|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>
|}
|}
{|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>
{|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>
|}
|}
{|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>
{|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>
|}
|}
{|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>
{|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>
|}
|}
|-
|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}}}
|}
|}
|}
|}
<noinclude>
{{newtemplate
|description=Template for chemical information.  <u>'''NOT'''</u> for single elements.  For element information, use {{tl|Elem_Infobox}}.
|execution=
<pre>
{{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=
}}
</pre>
|sample= see [[itraconazole]]
|caveats=IUPAC number might not work yet.
|authors=
*[[User:David_E._Volk|David E. Volk]]
*[[user:Robert_W_King|Robert King]]
}}
</noinclude>

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