Template:Format ionic substance/doc

From blackwiki
< Template:Format ionic substance
Revision as of 07:26, 18 November 2016 by imported>Renamed user awfwvowjvwrvnwio
Jump to navigation Jump to search

Usage

{{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

{{Format ionic substance|Na|+|Cl|-|displaycharges}}

Result: Na+(Cl-)

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

Result: (Al3+)2(SO42-)3