Template:Format molecular formula/doc

Usage
gives the molecular formula for water.

Example arguments: H2O (above), CO2, H6C2O , H2SO4.

The Lua module just puts " undefined " tags in the wanted spots.

Similar templates
Format ion formula, for ion chemical formulas.