Difference between revisions of "Template:Format ionic substance/doc"

From blackwiki
Jump to navigation Jump to search
imported>Renamed user awfwvowjvwrvnwio
imported>Renamed user awfwvowjvwrvnwio
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
 +
{{Intricate template}}
 
== Usage ==
 
== Usage ==
  

Revision as of 07:26, 18 November 2016

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