Template:chemical formula/documentation

This is a template used to format a chemical formula or equation.

end } -bracket issue
When input ends correctly with a } -bracket, like with, the final }-brackets are technically mixed up:
 * &rarr;

The closing bracket = {..} of input and end of template brackets = }}.


 * Solutions:
 * add empty pipe:  (empty parameter #2)
 * add parameters numbers 1 and 2 (empty):
 * add a space:
 * Result:  &rarr;

Formulas, charges, equations
Formulas (without charge) are just written:

Charges are written inside parentheses:

Charges +1 and &minus;1 can be written plain:
 * same as
 * same as
 * same as

Chemical equations: The arrows can be written as  or just. All characters (and unicode markup) are valid input except, = (Mediawiki use it),   and   (endash etc.)

Hapticity and mu:

Whole formula link
Link the whole formula with &lt;wiki pagename&gt;:

Or use wikilink brackets in input like :

Link each element (C, Hg) and generic element code (R, X)
Use yes to link from the first occurrence of each element symbol, and some functional-group symbols such as