Difference between revisions of "Template:Format ion formula"

From blackwiki
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.

Template documentation[view] [edit] [history] [purge]

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.