Template:Chem infobox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert W King
No edit summary
imported>Drew R. Smith
(Reverting.)
 
(40 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{|border="1" width={{{width}}} frame=box rules=none align={{{align}}} style="border:1px solid #FAFAFA; margin:5px; padding:10px;"
{|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|
|colspan=2|
{|border="0" width=100% style="border-style:collapse;"
{|border="0" width=100% style="border-style:collapse;"
Line 5: Line 5:
|}
|}
|-
|-
|colspan=2 align="center"|'''{{{molname}}}'''
|colspan=2 style="background-color:#EDEDED;" align="center"|'''{{{molname}}}'''
|-
|-
|colspan=2|
|colspan=2|
{|border="1" width=100% style="background-color:#FFFFFF; border:1px solid #FFFFFF;" frame=box rules=none
{|border="0" width=100% border:1px solid #FFFFFF; margin:5 5 5 5; padding:5 5 5 5;" frame=box rules=none
|width=50% style="background-color:#E0E0E0;"|IUPAC name:
|width=50% |IUPAC name:
|width=50%|{{{iupac}}}
|width=50% |{{{iupac}}}
|-
|-
|width=50% style="background-color:#E0E0E0;"|Synonyms:
|width=50%|Synonyms:
|width=50%|{{{synonyms}}}
|width=50%|{{{synonyms}}}
|-
|-
|width=50% style="background-color:#E0E0E0;"|Formula:
|width=50% |Formula:
|width=50%|{{{molformula}}}
|width=50% |{{{molformula}}}
|}
|}
|-
|-
|width=50%|CAS #:
|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%|{{{casnumber}}}
|-
|-
|width=50%|Properties:
|width=50%|&nbsp;Uses:
|width=50%|{{{properties}}}
|width=50%|{{{uses}}}
|-
|-
|width=50%|Mass:
|colspan=2 style="height:3px;"|<hr style="align:center; width:60%; border:0; height:1px; color:#FFF;">
|width=50%|{{{molmass}}}
|-
|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|
|colspan=2|
{|border=1 width=100% style="border:1px solid #FFFFFF;" frame=box rules=none
{|border=0 width=100%  
|align="center" width=50% style="background-color:#E0E0E0;"|Uses:
|align="center" width=50% |Mass (g/mol):
|align="center" width=50% style="background-color:#E0E0E0;"|Hazards:
|align="center" width=50% |CAS #:
|-
|-
|width=50% style="background-color:#FFFFFF;"|{{{uses}}}
|align="center" width=50% style="background-color:#DEDEDE;"|{{{molmass}}}
|width=50% style="background-color:#FFFFFF;"|{{{hazards}}}
|align="center" width=50% style="background-color:#DEDEDE;"|{{{casnumber}}}
|}
|}
|}
|}
Line 40: Line 48:
<noinclude>
<noinclude>
{{newtemplate
{{newtemplate
|description=Template for chemical information
|description=Template for chemical information.  <u>'''NOT'''</u> for single elements.  For element information, use {{tl|Elem_Infobox}}.
|execution=
|execution=
<pre>
<pre>

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