Template:Chem

From Wikipedia, the free encyclopedia

[edit] Template documentation


[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|CH|2|=CH|2}}" yields CH2=CH2.