Difference between revisions of "Template:Format ion formula"
Jump to navigation
Jump to search
imported>Renamed user awfwvowjvwrvnwio (←Created page with '{{#ifeq:{{{1|}}}||<span class="error">Invalid syntax.</span>|{{Format molecular formula|{{{1}}}}}<sup>{{#ifeq:{{{2}}}|1+|+|{{#ifeq:{{{2}}}|1-|-|{{{2}}}}}}}</sup>}}') |
imported>Renamed user awfwvowjvwrvnwio |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#ifeq:{{{1|}}}|| | + | {{#ifeq:{{{1|}}}||'''This template requires two unnamed parameters: the molecular formula of the ion and the ion charge.'''|{{Format molecular formula|{{{1}}}}}<sup>{{#ifeq:{{{2}}}|1+|+|{{#ifeq:{{{2}}}|1-|-|{{{2}}}}}}}</sup>}}<noinclude> |
| + | |||
| + | {{Documentation}} | ||
| + | </noinclude> | ||
Latest revision as of 21:18, 30 July 2016
This template requires two unnamed parameters: the molecular formula of the ion and the ion charge.
Usage
{{Format ion formula|Na|+}}
Result: Na+
The template takes two unnamed arguments. The first is the molecule representation of the ion (as passed to Format molecular formula), the second is the ion charge.
| The above documentation is transcluded from Template:Format ion formula/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |