Requires 4 unnamed parameters.
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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