Difference between revisions of "Template:Format ionic substance/doc"
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
| 40px | This is a documentation subpage for Template:Format ionic substance. It contains usage information, categories and other content that is not part of the original template page. |
| 40x40px | 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
{{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