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 |
||
| Line 1: | Line 1: | ||
| − | {{#ifeq:{{{1|}}}||<span class="error">Invalid syntax.</span>|{{Format molecular formula|{{{1}}}}}<sup>{{#ifeq:{{{2}}}|1+|+|{{#ifeq:{{{2}}}|1-|-|{{{2}}}}}}}</sup>}} | + | {{#ifeq:{{{1|}}}||<span class="error">Invalid syntax.</span>|{{Format molecular formula|{{{1}}}}}<sup>{{#ifeq:{{{2}}}|1+|+|{{#ifeq:{{{2}}}|1-|-|{{{2}}}}}}}</sup>}}<noinclude> |
| + | |||
| + | {{Documentation}} | ||
| + | </noinclude> | ||
Revision as of 09:04, 28 September 2015
Invalid syntax.
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. |