Usage

edit

{{Format ionic substance|first_formula|first_charge|second_formula|second_charge}},

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

edit

[[Sodium chloride|{{Format ionic substance|Na|+|Cl|-|displaycharges}}]]

Result: Na +(Cl -)

{{Format ionic substance|Al|3+|SO4|2-|displaycharges}}

Result: (Al 3+)2(SO4 2-)3