Template:Chem

From Wikipedia, the free encyclopedia


[edit] Template instructions

This template, {{chem}}, serves to simplify the writing of chemical formulae. For example,

{{chem|H|2|O}}

will yield:

H2O

The template currently accepts up to twenty parameters, but could be easily extended beyond if need be.

The optional parameter link changes the formula into a link. For example:

{{chem|link=water|H|2|O}}

will yield:

H2O

Note: To include « = » in the formula, use = (for example, « {{chem|CH2=CH2}} » yields CH2=CH2).

In other languages