Template:Format ionic substance/doc

Usage
,

where first_formula and second_formula are the chemical formulae (as given to Template:Format molecular formula) of the ions (positive and negative, respectively), and first_charge and second_charge are their respective charges.

Examples
Result: Sodium chloride

Result: