Template:Chem infobox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>David E. Volk
(crude test)
 
imported>David E. Volk
(This is what I want to see in a chem_infobox)
Line 1: Line 1:
<-- use IUPAC name if it is short and synonyms if they are few -->
<-- Template makers: this is the data I want to see in a Chem_infobox -->
{{{name}}} {{{molformula}}} {{{molmass}}} {{{uses}}} {{{hazards}}} {{{casnumber}}} {{{IUPAC}}} {{{synonyms}}}


{|border="1" width="141" frame=box rules=none align="right" cellpadding="3" cellspacing="1" style="margin: 0 0 0 0; background:#{{{background1}}}; wrap=no"  
<table border="1" cellpadding="2" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
|align="center" width=100% colspan="4"|'''{{{molname}}}'''
<tr><td>'''Molecule Name'''</td><td>ethanol</td>
<!--|align="center" width=100% colspan="4"|'''{{{molname}}}''' <!-- name of molecule -->
</tr>
|-
<tr><td>'''Common synonyms'''</td><td>ethyl alcohol</td>
|width="35"|<font size=1em>{{{molformula}}}</font> <!-- molecular formula -->
</tr>
<!-- leave blank -->
<tr><td>'''Molecular Formula'''</td><td>C<sub>2</sub>H<sub>6</sub>O</td>
|-
</tr>
|width="35"|<font size=1em>{{{molmass}}}</font> <!-- molecular mass -->
<tr><td>'''Molecular Mass'''</td><td>345.6023</td>
<!-- leave blank -->
</tr>
|align="center" width="35"|&nbsp;
<tr><td>'''Properties'''</td><td>clear liquid, polar</td>
|}
</tr>
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"
<tr><td>'''Common uses'''</td><td>solvent, intoxicant</td>
|align="right" width="100%"|<font size=1px><b>Properties:</b></font>
</tr>
{|border="0" width="100%" colspan="4" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"
<tr><td>'''Hazards'''</td><td>flammable</td>
|align="left" width="100%"|<font size=1px>{{{properties}}}</font>
</tr>
|}
<tr><td>'''CAS #'''</td><td>123456-67</td>
|}
</tr>
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"
<tr><td>'''IUPAC name'''</td><td>hydroxyethane</td>
|align="right" width="100%"|<font size=1px><b>Compounds:</b></font>
</tr>
{|border="0" width="100%" colspan="4" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"
</table>
|align="left" width="100%"|<font size=1px>{{{uses}}}</font>
 
|}
The variables should be named:
|}
*molname
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"
*synonyms
|align="right" width="100%"|<font size=1px><b>Uses:</b></font>
*molformula
{|border="0" width="100%" colspan="4" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"
*molmass
|align="left" width="100%"|<font size=1px>{{{uses}}}</font>
*properties
|}
*uses
|}
*hazards
{|border="0" width="100%" colspan="1" cellpadding="2" cellspacing="0" style="margin: 0 0 0 0; background:#f2f2f2;"
*casnumber
|align="right" width="100%"|<font size=1px><b>Hazards:</b></font>
*iupac
{|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>
|}
|}
|}

Revision as of 13:46, 20 March 2008

<-- Template makers: this is the data I want to see in a Chem_infobox -->

Molecule Nameethanol
Common synonymsethyl alcohol
Molecular FormulaC2H6O
Molecular Mass345.6023
Propertiesclear liquid, polar
Common usessolvent, intoxicant
Hazardsflammable
CAS #123456-67
IUPAC namehydroxyethane

The variables should be named:

  • molname
  • synonyms
  • molformula
  • molmass
  • properties
  • uses
  • hazards
  • casnumber
  • iupac