Difference between revisions of "Template:Chem2/testcases"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(linee wrap test)
imported>DePiep
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Testcases notice <!--|toc=on-->}}
 
{{Testcases notice <!--|toc=on-->}}
 +
__TOC__
 
==from Doc==
 
==from Doc==
 
:{{tlf|Chems}}
 
:{{tlf|Chems}}
Line 73: Line 74:
 
* <code><nowiki>{{chem2|auto=yes|CH3CH2CH3CBrFCIClCH3}}</nowiki></code> gives {{chem2|auto=yes|CH3CH2CH3CBrFCIClCH3}}
 
* <code><nowiki>{{chem2|auto=yes|CH3CH2CH3CBrFCIClCH3}}</nowiki></code> gives {{chem2|auto=yes|CH3CH2CH3CBrFCIClCH3}}
  
===All \sandbox===
+
===All /sandbox===
;{{tlf|Chems\sandbox}}
+
;{{tlf|Chems/sandbox}}
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 82: Line 83:
 
! Output
 
! Output
 
|-
 
|-
| <code>\s</code> || {{chem2\sandbox|\s}} || <code><nowiki>{{chem2\sandbox|CH3\sCH3}}</nowiki></code> || {{chem2\sandbox|CH3\sCH3}}
+
| <code>\s</code> || {{chem2/sandbox|\s}} || <code><nowiki>{{chem2/sandbox|CH3\sCH3}}</nowiki></code> || {{chem2/sandbox|CH3\sCH3}}
 
|-
 
|-
| <code>\d</code> || {{chem2\sandbox|\d}} || <code><nowiki>{{chem2\sandbox|CH2\dCH2}}</nowiki></code> || {{chem2\sandbox|CH2\dCH2}}
+
| <code>\d</code> || {{chem2/sandbox|\d}} || <code><nowiki>{{chem2/sandbox|CH2\dCH2}}</nowiki></code> || {{chem2/sandbox|CH2\dCH2}}
 
|-
 
|-
| <code>\t</code> || {{chem2\sandbox|\t}}  || <code><nowiki>{{chem2\sandbox|HC\tCH}}</nowiki></code> || {{chem2\sandbox|HC\tCH}}
+
| <code>\t</code> || {{chem2/sandbox|\t}}  || <code><nowiki>{{chem2/sandbox|HC\tCH}}</nowiki></code> || {{chem2/sandbox|HC\tCH}}
 
|-
 
|-
| <code>\q</code> || {{chem2\sandbox|\q}}  || <code><nowiki>{{chem2\sandbox|[Cl4Re\qReCl4](2−)|}}</nowiki></code> || {{chem2\sandbox|[Cl4Re\qReCl4](2−)|}}
+
| <code>\q</code> || {{chem2/sandbox|\q}}  || <code><nowiki>{{chem2/sandbox|[Cl4Re\qReCl4](2−)|}}</nowiki></code> || {{chem2/sandbox|[Cl4Re\qReCl4](2−)|}}
 
|-
 
|-
| <code>\-</code> || {{chem2\sandbox|\-}} || ||
+
| <code>\-</code> || {{chem2/sandbox|\-}} || ||
 
|-
 
|-
| <code>\\</code> || {{chem2\sandbox|\\}} || ||
+
| <code>\\</code> || {{chem2/sandbox|\\}} || ||
 
|-
 
|-
| <code>\h</code> || {{chem2\sandbox|\h}} || ||
+
| <code>\h</code> || {{chem2/sandbox|\h}} || ||
 
|-
 
|-
| <code>\h{1}</code> || {{chem2\sandbox|\h{1}|}} || ||
+
| <code>\h{1}</code> || {{chem2/sandbox|\h{1}|}} || ||
 
|-
 
|-
| <code>\m{1}</code> || {{chem2\sandbox|\m{1}|}} || ||
+
| <code>\m{1}</code> || {{chem2/sandbox|\m{1}|}} || ||
 
|-
 
|-
| <code>-></code> || {{chem2\sandbox| ->}} || <code><nowiki>{{chem2\sandbox|2H2 + O2 -> 2H2O}}</nowiki></code> || {{chem2\sandbox|2H2 + O2 -> 2H2O}}
+
| <code>-></code> || {{chem2/sandbox| ->}} || <code><nowiki>{{chem2/sandbox|2H2 + O2 -> 2H2O}}</nowiki></code> || {{chem2/sandbox|2H2 + O2 -> 2H2O}}
 
|-
 
|-
| <code><-></code> || {{chem2\sandbox| <->}} || ||
+
| <code><-></code> || {{chem2/sandbox| <->}} || ||
 
|-
 
|-
| <code>*</code> || {{chem2\sandbox|*}} || <code><nowiki>{{chem2\sandbox|CoCl2*6H2O}}</nowiki></code> || {{chem2\sandbox|CoCl2*6H2O}}
+
| <code>*</code> || {{chem2/sandbox|*}} || <code><nowiki>{{chem2/sandbox|CoCl2*6H2O}}</nowiki></code> || {{chem2/sandbox|CoCl2*6H2O}}
 
|-
 
|-
| <code>\*</code> || * || <code><nowiki>{{chem2\sandbox|Cp\*2Fe}}</nowiki></code> || {{chem2\sandbox|Cp\*2Fe}}
+
| <code>\*</code> || * || <code><nowiki>{{chem2/sandbox|Cp\*2Fe}}</nowiki></code> || {{chem2/sandbox|Cp\*2Fe}}
 
|-
 
|-
| <code>_{}</code> || || <code><nowiki>{{chem2\sandbox|CH4_{(g)}|}}</nowiki></code> <span id="why-vert-bar">[[#vert-bar-explained|{{sup|*}}]]</span> || {{chem2\sandbox|CH4_{(g)}|}}  
+
| <code>_{}</code> || || <code><nowiki>{{chem2/sandbox|CH4_{(g)}|}}</nowiki></code> <span id="why-vert-bar">[[#vert-bar-explained|{{sup|*}}]]</span> || {{chem2/sandbox|CH4_{(g)}|}}  
 
|-
 
|-
| <code>^{}</code> || || <code><nowiki>{{chem2\sandbox|^{13}CH4}}</nowiki></code> || {{chem2\sandbox|^{13}CH4}}
+
| <code>^{}</code> || || <code><nowiki>{{chem2/sandbox|^{13}CH4}}</nowiki></code> || {{chem2/sandbox|^{13}CH4}}
 
|-
 
|-
| <code>&amp;nabla;</code> || {{chem2\sandbox|&nabla;}} || <code><nowiki>{{chem2\sandbox|&amp;nabla;}}</nowiki></code> || {{chem2\sandbox|&nabla;}}
+
| <code>&amp;nabla;</code> || {{chem2/sandbox|&nabla;}} || <code><nowiki>{{chem2/sandbox|&amp;nabla;}}</nowiki></code> || {{chem2/sandbox|&nabla;}}
 
|}
 
|}
  
Line 118: Line 119:
  
 
Formulas (without charge) are just written. Eg.:
 
Formulas (without charge) are just written. Eg.:
* <code><nowiki>{{chem2\sandbox|CH3(CH2)5CH3}}</nowiki></code> gives  {{chem2\sandbox|CH3(CH2)5CH3}}  
+
* <code><nowiki>{{chem2/sandbox|CH3(CH2)5CH3}}</nowiki></code> gives  {{chem2/sandbox|CH3(CH2)5CH3}}  
* <code><nowiki>{{chem2\sandbox|Fe3S2(CO)9}}</nowiki></code> gives {{chem2\sandbox|Fe3S2(CO)9}}
+
* <code><nowiki>{{chem2/sandbox|Fe3S2(CO)9}}</nowiki></code> gives {{chem2/sandbox|Fe3S2(CO)9}}
* <code><nowiki>{{chem2\sandbox|C_{''n''}H_{2''n''+2}|}}</nowiki></code> gives {{chem2\sandbox|C_{''n''}H_{2''n''+2}|}}
+
* <code><nowiki>{{chem2/sandbox|C_{''n''}H_{2''n''+2}|}}</nowiki></code> gives {{chem2/sandbox|C_{''n''}H_{2''n''+2}|}}
  
 
Charges are written inside parenthesis, otherwise its treated as +1 or −1, e.g.:
 
Charges are written inside parenthesis, otherwise its treated as +1 or −1, e.g.:
* <code><nowiki>{{chem2\sandbox|Na+}}</nowiki></code> gives {{chem2\sandbox|Na+}}
+
* <code><nowiki>{{chem2/sandbox|Na+}}</nowiki></code> gives {{chem2/sandbox|Na+}}
* <code><nowiki>{{chem2\sandbox|O2-}}</nowiki></code> gives {{chem2\sandbox|O2-}} but can be written as <code><nowiki>{{chem2\sandbox|O2(-)}}</nowiki></code> too.
+
* <code><nowiki>{{chem2/sandbox|O2-}}</nowiki></code> gives {{chem2/sandbox|O2-}} but can be written as <code><nowiki>{{chem2/sandbox|O2(-)}}</nowiki></code> too.
* <code><nowiki>{{chem2\sandbox|SO4(2-)}}</nowiki></code> gives {{chem2\sandbox|SO4(2-)}}  
+
* <code><nowiki>{{chem2/sandbox|SO4(2-)}}</nowiki></code> gives {{chem2/sandbox|SO4(2-)}}  
* <code><nowiki>{{chem2\sandbox|S19(2+)}}</nowiki></code> gives {{chem2\sandbox|S19(2+)}}  
+
* <code><nowiki>{{chem2/sandbox|S19(2+)}}</nowiki></code> gives {{chem2/sandbox|S19(2+)}}  
  
 
Chemical equations can be written too. E.g.:
 
Chemical equations can be written too. E.g.:
* <code><nowiki>{{chem2\sandbox|2 S + 3 O2 + 2 H2O -> 2 H2SO4}}</nowiki></code> gives {{chem2\sandbox|2 S + 3 O2 + 2 H2O -> 2 H2SO4}}
+
* <code><nowiki>{{chem2/sandbox|2 S + 3 O2 + 2 H2O -> 2 H2SO4}}</nowiki></code> gives {{chem2/sandbox|2 S + 3 O2 + 2 H2O -> 2 H2SO4}}
* <code><nowiki>{{chem2\sandbox|2S + 3O2 + 2H2O -> 2H2SO4}}</nowiki></code> gives {{chem2\sandbox|2S + 3O2 + 2H2O -> 2H2SO4}}
+
* <code><nowiki>{{chem2/sandbox|2S + 3O2 + 2H2O -> 2H2SO4}}</nowiki></code> gives {{chem2/sandbox|2S + 3O2 + 2H2O -> 2H2SO4}}
 
The arrows can be written as <code>-></code> or just <code>→</code>. All characters (and unicode markup) are valid input except <code>\</code>, = (Mediawiki use it), <code>_</code> and <code>-</code> (endash etc.)
 
The arrows can be written as <code>-></code> or just <code>→</code>. All characters (and unicode markup) are valid input except <code>\</code>, = (Mediawiki use it), <code>_</code> and <code>-</code> (endash etc.)
* <code><nowiki>{{chem2\sandbox|2 H2_{(g)} + O2_{(g)} -> 2H2O_{(g)}|}}</nowiki></code> gives {{chem2\sandbox|2 H2_{(g)} + O2_{(g)} -> 2H2O_{(g)}|}}
+
* <code><nowiki>{{chem2/sandbox|2 H2_{(g)} + O2_{(g)} -> 2H2O_{(g)}|}}</nowiki></code> gives {{chem2/sandbox|2 H2_{(g)} + O2_{(g)} -> 2H2O_{(g)}|}}
* <code><nowiki>{{chem2\sandbox|NH2RCHCO2H <-> NH3+RCHCO2-}}</nowiki></code> gives {{chem2\sandbox|NH2RCHCO2H <-> NH3+RCHCO2-}}
+
* <code><nowiki>{{chem2/sandbox|NH2RCHCO2H <-> NH3+RCHCO2-}}</nowiki></code> gives {{chem2/sandbox|NH2RCHCO2H <-> NH3+RCHCO2-}}
  
 
[[Hapticity]] and mu:
 
[[Hapticity]] and mu:
* <code><nowiki>{{chem2\sandbox|W(CO)3(PiPr3)2(\h{2}\-H2)}}</nowiki></code> gives {{chem2\sandbox|W(CO)3(PiPr3)2(\h{2}\-H2)}}
+
* <code><nowiki>{{chem2/sandbox|W(CO)3(PiPr3)2(\h{2}\-H2)}}</nowiki></code> gives {{chem2/sandbox|W(CO)3(PiPr3)2(\h{2}\-H2)}}
* <code><nowiki>{{chem2\sandbox|auto=yes|W(CO)3(PiPr3)2(\h{2}\-H2)}}</nowiki></code> gives {{chem2\sandbox|auto=yes|W(CO)3(PiPr3)2(\h{2}\-H2)}}
+
* <code><nowiki>{{chem2/sandbox|auto=yes|W(CO)3(PiPr3)2(\h{2}\-H2)}}</nowiki></code> gives {{chem2/sandbox|auto=yes|W(CO)3(PiPr3)2(\h{2}\-H2)}}
  
 
Links: Use <code><nowiki>link=</nowiki></code><wiki page> or ordinary wiki link (<code><nowiki>[[</nowiki></code> and <code><nowiki>]]</nowiki></code>), e.g.:
 
Links: Use <code><nowiki>link=</nowiki></code><wiki page> or ordinary wiki link (<code><nowiki>[[</nowiki></code> and <code><nowiki>]]</nowiki></code>), e.g.:
* <code><nowiki>{{chem2\sandbox|link=Iron(III) chloride|FeCl3}}</nowiki></code> gives {{chem2\sandbox|link=Iron(III) chloride|FeCl3}}
+
* <code><nowiki>{{chem2/sandbox|link=Iron(III) chloride|FeCl3}}</nowiki></code> gives {{chem2/sandbox|link=Iron(III) chloride|FeCl3}}
* <code><nowiki>{{chem2\sandbox|3[[hydrogen|H2]] + 2[[nitrogen|N2]] <-> 2[[ammonia|NH3]]}}</nowiki></code> gives {{chem2\sandbox|3[[hydrogen|H2]] + 2[[nitrogen|N2]] <-> 2[[ammonia|NH3]]}}
+
* <code><nowiki>{{chem2/sandbox|3[[hydrogen|H2]] + 2[[nitrogen|N2]] <-> 2[[ammonia|NH3]]}}</nowiki></code> gives {{chem2/sandbox|3[[hydrogen|H2]] + 2[[nitrogen|N2]] <-> 2[[ammonia|NH3]]}}
  
 
Auto links: Automatic link elements: Use <code><nowiki>auto=</nowiki></code><something> (e.g. <code><nowiki>yes</nowiki></code>):
 
Auto links: Automatic link elements: Use <code><nowiki>auto=</nowiki></code><something> (e.g. <code><nowiki>yes</nowiki></code>):
* <code><nowiki>{{chem2\sandbox|auto=yes|CH3CH2CH3CBrFCIClCH3}}</nowiki></code> gives {{chem2\sandbox|auto=yes|CH3CH2CH3CBrFCIClCH3}}
+
* <code><nowiki>{{chem2/sandbox|auto=yes|CH3CH2CH3CBrFCIClCH3}}</nowiki></code> gives {{chem2/sandbox|auto=yes|CH3CH2CH3CBrFCIClCH3}}
  
 
;Examples
 
;Examples
* <code><nowiki>{{chem2\sandbox|[Cl4Re\qReCl4](2−)|}}</nowiki></code> gives {{chem2\sandbox|[Cl4Re\qReCl4](2−)|}}
+
* <code><nowiki>{{chem2/sandbox|[Cl4Re\qReCl4](2−)|}}</nowiki></code> gives {{chem2/sandbox|[Cl4Re\qReCl4](2−)|}}
* <code><nowiki>{{chem2\sandbox|[Cl4Re\qReCl4](2-)|}}</nowiki></code> gives {{chem2\sandbox|[Cl4Re\qReCl4](2-)|}}
+
* <code><nowiki>{{chem2/sandbox|[Cl4Re\qReCl4](2-)|}}</nowiki></code> gives {{chem2/sandbox|[Cl4Re\qReCl4](2-)|}}
* <code><nowiki>{{chem2\sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}</nowiki></code> gives {{chem2\sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}
+
* <code><nowiki>{{chem2/sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}</nowiki></code> gives {{chem2/sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}
 
----
 
----
* <code><nowiki>{{chem2\sandbox|\\hallo}}</nowiki></code> gives {{chem2\sandbox|\\hallo}}
+
* <code><nowiki>{{chem2/sandbox|\\hallo}}</nowiki></code> gives {{chem2/sandbox|\\hallo}}
* <code><nowiki>{{chem2\sandbox|H3CC\tCH <-> H2C\dC\dCH2}}</nowiki></code> gives {{chem2\sandbox|H3CC\tCH <-> H2C\dC\dCH2}}
+
* <code><nowiki>{{chem2/sandbox|H3CC\tCH <-> H2C\dC\dCH2}}</nowiki></code> gives {{chem2/sandbox|H3CC\tCH <-> H2C\dC\dCH2}}
* <code><nowiki>{{chem2\sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}</nowiki></code> gives {{chem2\sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}
+
* <code><nowiki>{{chem2/sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}</nowiki></code> gives {{chem2/sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}
 
----
 
----
* "H2O &amp;#8594; H2O" is {{chem2\sandbox|H2O &#8594; H2O}}
+
* "H2O &amp;#8594; H2O" is {{chem2/sandbox|H2O &#8594; H2O}}
* "H2O_{(l)} -> H2O_{(g)}" is {{chem2\sandbox|H2O_{(l)} -> H2O_{(g)}|}}
+
* "H2O_{(l)} -> H2O_{(g)}" is {{chem2/sandbox|H2O_{(l)} -> H2O_{(g)}|}}
 
----
 
----
* "4 NH3 + 5 O2 → 4 NO + 6 H2O" is {{chem2\sandbox|4 NH3 + 5 O2 → 4 NO + 6 H2O}}
+
* "4 NH3 + 5 O2 → 4 NO + 6 H2O" is {{chem2/sandbox|4 NH3 + 5 O2 → 4 NO + 6 H2O}}
* " 4 NH3 + 5 O2 → 4 NO + 6 H2O" is {{chem2\sandbox| 4 NH3 + 5 O2 → 4 NO + 6 H2O}}
+
* " 4 NH3 + 5 O2 → 4 NO + 6 H2O" is {{chem2/sandbox| 4 NH3 + 5 O2 → 4 NO + 6 H2O}}
* " 4NH3 + 5O2 → 4NO + 6H2O" is {{chem2\sandbox| 4NH3 + 5O2 → 4NO + 6H2O}}
+
* " 4NH3 + 5O2 → 4NO + 6H2O" is {{chem2/sandbox| 4NH3 + 5O2 → 4NO + 6H2O}}
* " 2Mn2(+)" is {{chem2\sandbox| 2Mn2(+)}}
+
* " 2Mn2(+)" is {{chem2/sandbox| 2Mn2(+)}}
* " 2Mn2(+) + 3H2O" is {{chem2\sandbox| 2Mn2(+) + 3H2O}}
+
* " 2Mn2(+) + 3H2O" is {{chem2/sandbox| 2Mn2(+) + 3H2O}}
* Mn– is {{chem2\sandbox|Mn–}}
+
* Mn– is {{chem2/sandbox|Mn–}}
 
----
 
----
* Mn2(2-) is {{chem2\sandbox|Mn2(2-)}}
+
* Mn2(2-) is {{chem2/sandbox|Mn2(2-)}}
* Mn2☃+ is {{chem2\sandbox|Mn2☃+}}, Mn2(2–) is {{chem2\sandbox|Mn2(2–)}}, Mn2(2☃–) is {{chem2\sandbox|Mn2(2☃–)}}
+
* Mn2☃+ is {{chem2/sandbox|Mn2☃+}}, Mn2(2–) is {{chem2/sandbox|Mn2(2–)}}, Mn2(2☃–) is {{chem2/sandbox|Mn2(2☃–)}}
* Mn2(+) is {{chem2\sandbox|Mn2(+)}}
+
* Mn2(+) is {{chem2/sandbox|Mn2(+)}}
* Mn2+ is {{chem2\sandbox|Mn2+}}
+
* Mn2+ is {{chem2/sandbox|Mn2+}}
* Mn2(-) is {{chem2\sandbox|Mn2(-)}}
+
* Mn2(-) is {{chem2/sandbox|Mn2(-)}}
* Mn2- is {{chem2\sandbox|Mn2-}}
+
* Mn2- is {{chem2/sandbox|Mn2-}}
 
----
 
----
*<nowiki>{{chem2\sandbox|C_{''n''}H_{2''n''&nbsp;+&nbsp;2}|}}</nowiki> gives {{chem2\sandbox|C_{''n''}H_{2''n''&nbsp;+&nbsp;2}|}}
+
*<nowiki>{{chem2/sandbox|C_{''n''}H_{2''n''&nbsp;+&nbsp;2}|}}</nowiki> gives {{chem2/sandbox|C_{''n''}H_{2''n''&nbsp;+&nbsp;2}|}}
*<nowiki>{{chem2\sandbox|C_{abc}|}}</nowiki> gives {{chem2\sandbox|C_{abc}|}}
+
*<nowiki>{{chem2/sandbox|C_{abc}|}}</nowiki> gives {{chem2/sandbox|C_{abc}|}}
 
*(chem gives {{chem|C|''n''|H|2''n''&nbsp;+&nbsp;2}})
 
*(chem gives {{chem|C|''n''|H|2''n''&nbsp;+&nbsp;2}})
*<nowiki>{{chem2\sandbox|CoCl2*1.5H2O}}</nowiki> gives {{chem2\sandbox|CoCl2*1.5H2O}}
+
*<nowiki>{{chem2/sandbox|CoCl2*1.5H2O}}</nowiki> gives {{chem2/sandbox|CoCl2*1.5H2O}}
*Mn22– is {{chem2\sandbox|Mn22–}}
+
*Mn22– is {{chem2/sandbox|Mn22–}}
* Cu2C2*H2O is {{chem2\sandbox|Cu2C2*H2O}}  
+
* Cu2C2*H2O is {{chem2/sandbox|Cu2C2*H2O}}  
 
----
 
----
 
;Special
 
;Special
  
*<nowiki>{{chem2\sandbox|[Me2Al(\m{2}Me)]2}}</nowiki> gives {{chem2\sandbox|[Me2Al(\m{2}Me)]2}}
+
*<nowiki>{{chem2/sandbox|[Me2Al(\m{2}Me)]2}}</nowiki> gives {{chem2/sandbox|[Me2Al(\m{2}Me)]2}}
*<nowiki>{{chem2\sandbox|^{13}CO2}}</nowiki> gives {{chem2\sandbox|^{13}CO2}}
+
*<nowiki>{{chem2/sandbox|^{13}CO2}}</nowiki> gives {{chem2/sandbox|^{13}CO2}}
*<nowiki>{{chem2\sandbox|auto=yes|^{13}CO2}}</nowiki> gives {{chem2\sandbox|auto=yes|^{13}CO2}}
+
*<nowiki>{{chem2/sandbox|auto=yes|^{13}CO2}}</nowiki> gives {{chem2/sandbox|auto=yes|^{13}CO2}}
*<nowiki>{{chem2\sandbox|\h{5}(C5H5)2TiCl2}}</nowiki> gives {{chem2\sandbox|\h{5}(C5H5)2TiCl2}}
+
*<nowiki>{{chem2/sandbox|\h{5}(C5H5)2TiCl2}}</nowiki> gives {{chem2/sandbox|\h{5}(C5H5)2TiCl2}}
*<nowiki>{{chem2\sandbox|\h{5}\s(C5H5)}}</nowiki> gives {{chem2\sandbox|\h{5}\s(C5H5)}}
+
*<nowiki>{{chem2/sandbox|\h{5}\s(C5H5)}}</nowiki> gives {{chem2/sandbox|\h{5}\s(C5H5)}}
*<nowiki>{{chem2\sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}}</nowiki> is {{chem2\sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}}
+
*<nowiki>{{chem2/sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}}</nowiki> is {{chem2/sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}}
 
----
 
----
*<nowiki>{{chem2\sandbox|RC(OR’)3}}</nowiki> gives {{chem2\sandbox|RC(OR’)3}}
+
*<nowiki>{{chem2/sandbox|RC(OR’)3}}</nowiki> gives {{chem2/sandbox|RC(OR’)3}}
*<nowiki>{{chem2\sandbox|C\\C}}</nowiki> gives {{chem2\sandbox|C\\C}}
+
*<nowiki>{{chem2/sandbox|C\\C}}</nowiki> gives {{chem2/sandbox|C\\C}}
*<nowiki>{{chem2\sandbox|C2*NH3}}</nowiki> gives {{chem2\sandbox|C2*NH3}}
+
*<nowiki>{{chem2/sandbox|C2*NH3}}</nowiki> gives {{chem2/sandbox|C2*NH3}}
*<nowiki>{{chem2\sandbox|C2*2NH3}}</nowiki> gives {{chem2\sandbox|C2*2NH3}}
+
*<nowiki>{{chem2/sandbox|C2*2NH3}}</nowiki> gives {{chem2/sandbox|C2*2NH3}}
*<nowiki>{{chem2\sandbox|C1.2H3.5}}</nowiki> gives {{chem2\sandbox|C1.2H3.5}}
+
*<nowiki>{{chem2/sandbox|C1.2H3.5}}</nowiki> gives {{chem2/sandbox|C1.2H3.5}}
 
----
 
----
* <nowiki>{{chem2\sandbox|12|6|C}}</nowiki> is {{chem2\sandbox|12|6|C}}
+
* <nowiki>{{chem2/sandbox|12|6|C}}</nowiki> is {{chem2/sandbox|12|6|C}}
* <nowiki>{{chem2\sandbox|12|C}}</nowiki> is {{chem2\sandbox|12|C}}
+
* <nowiki>{{chem2/sandbox|12|C}}</nowiki> is {{chem2/sandbox|12|C}}
* <nowiki>{{chem2\sandbox|CH3\i{13}CH2CH3}}</nowiki> is {{chem2\sandbox|CH3\i{13}CH2CH3}}
+
* <nowiki>{{chem2/sandbox|CH3\i{13}CH2CH3}}</nowiki> is {{chem2/sandbox|CH3\i{13}CH2CH3}}
* <nowiki>{{chem2\sandbox|\{\{abc\}\}}}</nowiki> is {{chem2\sandbox|\b\bAbC\e\e}}
+
* <nowiki>{{chem2/sandbox|\{\{abc\}\}}}</nowiki> is {{chem2/sandbox|\b\bAbC\e\e}}
* C2(μ\-C) is {{chem2\sandbox|C2(μ\-C) }}
+
* C2(μ\-C) is {{chem2/sandbox|C2(μ\-C) }}
 
----
 
----
* SO4(2-) is {{chem2\sandbox|SO4(2-)}}
+
* SO4(2-) is {{chem2/sandbox|SO4(2-)}}
* 2Mn2(2+) is {{chem2\sandbox|2Mn2(2+)}}
+
* 2Mn2(2+) is {{chem2/sandbox|2Mn2(2+)}}
* CH3-CH2-OH is {{chem2\sandbox|CH3-CH2-OH}}
+
* CH3-CH2-OH is {{chem2/sandbox|CH3-CH2-OH}}
* [ZnCl4]- is {{chem2\sandbox|[ZnCl4]-}}
+
* [ZnCl4]- is {{chem2/sandbox|[ZnCl4]-}}
* [ZnCl4](2-) is {{chem2\sandbox|[ZnCl4](2-)}}
+
* [ZnCl4](2-) is {{chem2/sandbox|[ZnCl4](2-)}}
* AUTO: ((H2O)5{CoCl2})2 is {{chem2\sandbox|auto=yes|((H2O)5{CoCl2})2}}
+
* AUTO: ((H2O)5{CoCl2})2 is {{chem2/sandbox|auto=yes|((H2O)5{CoCl2})2}}
* Si(OH)4 is {{chem2\sandbox|Si(OH)4}}
+
* Si(OH)4 is {{chem2/sandbox|Si(OH)4}}
 
----
 
----
* AUTO: Cu2C2*H2O is {{chem2\sandbox|auto=yes|Cu2C2*H2O}}  
+
* AUTO: Cu2C2*H2O is {{chem2/sandbox|auto=yes|Cu2C2*H2O}}  
* Cu2C2*2H2O is {{chem2\sandbox|Cu2C2*2H2O}}  
+
* Cu2C2*2H2O is {{chem2/sandbox|Cu2C2*2H2O}}  
* CuSO*2H2O is {{chem2\sandbox|CuSO*2H2O}}  
+
* CuSO*2H2O is {{chem2/sandbox|CuSO*2H2O}}  
* CuSO4*15H2O is {{chem2\sandbox|CuSO4*15H2O}}  
+
* CuSO4*15H2O is {{chem2/sandbox|CuSO4*15H2O}}  
* CuSO4(H2O)5 is {{chem2\sandbox|CuSO4(H2O)5}}  
+
* CuSO4(H2O)5 is {{chem2/sandbox|CuSO4(H2O)5}}  
* H+ + OH- → H2O is {{chem2\sandbox|H+ + OH- → H2O}}
+
* H+ + OH- → H2O is {{chem2/sandbox|H+ + OH- → H2O}}
* H → O is {{chem2\sandbox|H → O }}
+
* H → O is {{chem2/sandbox|H → O }}
 
----
 
----
* ZxPo4 is {{chem2\sandbox|ZxPo4}}        &nbsp;&nbsp;&nbsp;&nbsp;Unknown element
+
* ZxPo4 is {{chem2/sandbox|ZxPo4}}        &nbsp;&nbsp;&nbsp;&nbsp;Unknown element
* ((Na)Cl is {{chem2\sandbox|((Na)Cl}}      &nbsp;&nbsp;&nbsp;&nbsp;To many (
+
* ((Na)Cl is {{chem2/sandbox|((Na)Cl}}      &nbsp;&nbsp;&nbsp;&nbsp;To many (
* Si(OH))4 is {{chem2\sandbox|Si(OH))4}}    &nbsp;&nbsp;&nbsp;&nbsp;To many )
+
* Si(OH))4 is {{chem2/sandbox|Si(OH))4}}    &nbsp;&nbsp;&nbsp;&nbsp;To many )
* Si&[[☃]]Si is {{chem2\sandbox|Si&[[☃]]Si}}
+
* Si&[[☃]]Si is {{chem2/sandbox|Si&[[☃]]Si}}
* {{chem2\sandbox|1=CH2=CH2}}
+
* {{chem2/sandbox|1=CH2=CH2}}
  
 
;More
 
;More
* <nowiki>{{chem2\sandbox|Cl2O6|link=dichlorine hexoxide}}</nowiki> is {{chem2\sandbox|Cl2O6|link=dichlorine hexoxide}}
+
* <nowiki>{{chem2/sandbox|Cl2O6|link=dichlorine hexoxide}}</nowiki> is {{chem2/sandbox|Cl2O6|link=dichlorine hexoxide}}
* [Fe(Phen)(Phen)3](2+) is {{chem2\sandbox|[Fe(Phen)(Phen)3](2+)}}
+
* [Fe(Phen)(Phen)3](2+) is {{chem2/sandbox|[Fe(Phen)(Phen)3](2+)}}
* AUTO: [Fe(Phen)(Phen)3](2+) is {{chem2\sandbox|auto=yes|[Fe(Phen)(Phen)3](2+)}}
+
* AUTO: [Fe(Phen)(Phen)3](2+) is {{chem2/sandbox|auto=yes|[Fe(Phen)(Phen)3](2+)}}
* <nowiki>{{chem2\sandbox|[C2O2](2+)}}</nowiki> is {{chem2\sandbox|[C2O2](2+)}}
+
* <nowiki>{{chem2/sandbox|[C2O2](2+)}}</nowiki> is {{chem2/sandbox|[C2O2](2+)}}
* <nowiki>{{chem2\sandbox|link=Tomato|SI4}}</nowiki> is {{chem2\sandbox|link=Tomato|SI4}}
+
* <nowiki>{{chem2/sandbox|link=Tomato|SI4}}</nowiki> is {{chem2/sandbox|link=Tomato|SI4}}
* H2SO4+ is {{chem2\sandbox|H2SO4+}}
+
* H2SO4+ is {{chem2/sandbox|H2SO4+}}
* Mn- is {{chem2\sandbox|Mn-}}
+
* Mn- is {{chem2/sandbox|Mn-}}
* Mn22+ is {{chem2\sandbox|Mn22+}}, Mn22- is {{chem2\sandbox|Mn22-}},  
+
* Mn22+ is {{chem2/sandbox|Mn22+}}, Mn22- is {{chem2/sandbox|Mn22-}},  
* Mn(2+) is {{chem2\sandbox|Mn(2+)}}
+
* Mn(2+) is {{chem2/sandbox|Mn(2+)}}
* Mn2(+) is {{chem2\sandbox|Mn2(+)}}
+
* Mn2(+) is {{chem2/sandbox|Mn2(+)}}
* Mn(22-) is {{chem2\sandbox|Mn(22-)}}
+
* Mn(22-) is {{chem2/sandbox|Mn(22-)}}
* Mn3(22-) is {{chem2\sandbox|Mn3(22-)}}
+
* Mn3(22-) is {{chem2/sandbox|Mn3(22-)}}
* Mn(22+) is {{chem2\sandbox|Mn(22+)}}
+
* Mn(22+) is {{chem2/sandbox|Mn(22+)}}
* Mn2(22+) is {{chem2\sandbox|Mn2(22+)}}
+
* Mn2(22+) is {{chem2/sandbox|Mn2(22+)}}
* Mn2(2+) is {{chem2\sandbox|Mn2(2+)}}
+
* Mn2(2+) is {{chem2/sandbox|Mn2(2+)}}
* Mn22(2+) is {{chem2\sandbox|Mn22(2+)}}
+
* Mn22(2+) is {{chem2/sandbox|Mn22(2+)}}
  
 
;Examples
 
;Examples
* <code><nowiki>{{chem2\sandbox|[Cl4Re\qReCl4](2−)|}}</nowiki></code> gives {{chem2\sandbox|[Cl4Re\qReCl4](2−)|}}
+
* <code><nowiki>{{chem2/sandbox|[Cl4Re\qReCl4](2−)|}}</nowiki></code> gives {{chem2/sandbox|[Cl4Re\qReCl4](2−)|}}
* <code><nowiki>{{chem2\sandbox|[Cl4Re\qReCl4](2-)|}}</nowiki></code> gives {{chem2\sandbox|[Cl4Re\qReCl4](2-)|}}
+
* <code><nowiki>{{chem2/sandbox|[Cl4Re\qReCl4](2-)|}}</nowiki></code> gives {{chem2/sandbox|[Cl4Re\qReCl4](2-)|}}
* <code><nowiki>{{chem2\sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}</nowiki></code> gives {{chem2\sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}
+
* <code><nowiki>{{chem2/sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}</nowiki></code> gives {{chem2/sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}
 
----
 
----
* <code><nowiki>{{chem2\sandbox|\\hallo}}</nowiki></code> gives {{chem2\sandbox|\\hallo}}
+
* <code><nowiki>{{chem2/sandbox|\\hallo}}</nowiki></code> gives {{chem2/sandbox|\\hallo}}
* <code><nowiki>{{chem2\sandbox|H3CC\tCH <-> H2C\dC\dCH2}}</nowiki></code> gives {{chem2\sandbox|H3CC\tCH <-> H2C\dC\dCH2}}
+
* <code><nowiki>{{chem2/sandbox|H3CC\tCH <-> H2C\dC\dCH2}}</nowiki></code> gives {{chem2/sandbox|H3CC\tCH <-> H2C\dC\dCH2}}
* <code><nowiki>{{chem2\sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}</nowiki></code> gives {{chem2\sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}
+
* <code><nowiki>{{chem2/sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}</nowiki></code> gives {{chem2/sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}
 
----
 
----
* "H2O &amp;#8594; H2O" is {{chem2\sandbox|H2O &#8594; H2O}}
+
* "H2O &amp;#8594; H2O" is {{chem2/sandbox|H2O &#8594; H2O}}
* "H2O_{(l)} -> H2O_{(g)}" is {{chem2\sandbox|H2O_{(l)} -> H2O_{(g)}|}}
+
* "H2O_{(l)} -> H2O_{(g)}" is {{chem2/sandbox|H2O_{(l)} -> H2O_{(g)}|}}
 
----
 
----
* "4 NH3 + 5 O2 → 4 NO + 6 H2O" is {{chem2\sandbox|4 NH3 + 5 O2 → 4 NO + 6 H2O}}
+
* "4 NH3 + 5 O2 → 4 NO + 6 H2O" is {{chem2/sandbox|4 NH3 + 5 O2 → 4 NO + 6 H2O}}
* " 4 NH3 + 5 O2 → 4 NO + 6 H2O" is {{chem2\sandbox| 4 NH3 + 5 O2 → 4 NO + 6 H2O}}
+
* " 4 NH3 + 5 O2 → 4 NO + 6 H2O" is {{chem2/sandbox| 4 NH3 + 5 O2 → 4 NO + 6 H2O}}
* " 4NH3 + 5O2 → 4NO + 6H2O" is {{chem2\sandbox| 4NH3 + 5O2 → 4NO + 6H2O}}
+
* " 4NH3 + 5O2 → 4NO + 6H2O" is {{chem2/sandbox| 4NH3 + 5O2 → 4NO + 6H2O}}
* " 2Mn2(+)" is {{chem2\sandbox| 2Mn2(+)}}
+
* " 2Mn2(+)" is {{chem2/sandbox| 2Mn2(+)}}
* " 2Mn2(+) + 3H2O" is {{chem2\sandbox| 2Mn2(+) + 3H2O}}
+
* " 2Mn2(+) + 3H2O" is {{chem2/sandbox| 2Mn2(+) + 3H2O}}
* Mn– is {{chem2\sandbox|Mn–}}
+
* Mn– is {{chem2/sandbox|Mn–}}
 
----
 
----
* Mn2(2-) is {{chem2\sandbox|Mn2(2-)}}
+
* Mn2(2-) is {{chem2/sandbox|Mn2(2-)}}
* Mn2☃+ is {{chem2\sandbox|Mn2☃+}}, Mn2(2–) is {{chem2\sandbox|Mn2(2–)}}, Mn2(2☃–) is {{chem2\sandbox|Mn2(2☃–)}}
+
* Mn2☃+ is {{chem2/sandbox|Mn2☃+}}, Mn2(2–) is {{chem2/sandbox|Mn2(2–)}}, Mn2(2☃–) is {{chem2/sandbox|Mn2(2☃–)}}
* Mn2(+) is {{chem2\sandbox|Mn2(+)}}
+
* Mn2(+) is {{chem2/sandbox|Mn2(+)}}
* Mn2+ is {{chem2\sandbox|Mn2+}}
+
* Mn2+ is {{chem2/sandbox|Mn2+}}
* Mn2(-) is {{chem2\sandbox|Mn2(-)}}
+
* Mn2(-) is {{chem2/sandbox|Mn2(-)}}
* Mn2- is {{chem2\sandbox|Mn2-}}
+
* Mn2- is {{chem2/sandbox|Mn2-}}
 
----
 
----
*<nowiki>{{chem2\sandbox|C_{''n''}H_{2''n''&nbsp;+&nbsp;2}|}}</nowiki> gives {{chem2\sandbox|C_{''n''}H_{2''n''&nbsp;+&nbsp;2}|}}
+
*<nowiki>{{chem2/sandbox|C_{''n''}H_{2''n''&nbsp;+&nbsp;2}|}}</nowiki> gives {{chem2/sandbox|C_{''n''}H_{2''n''&nbsp;+&nbsp;2}|}}
*<nowiki>{{chem2\sandbox|C_{abc}|}}</nowiki> gives {{chem2\sandbox|C_{abc}|}}
+
*<nowiki>{{chem2/sandbox|C_{abc}|}}</nowiki> gives {{chem2/sandbox|C_{abc}|}}
 
*(chem gives {{chem|C|''n''|H|2''n''&nbsp;+&nbsp;2}})
 
*(chem gives {{chem|C|''n''|H|2''n''&nbsp;+&nbsp;2}})
*<nowiki>{{chem2\sandbox|CoCl2*1.5H2O}}</nowiki> gives {{chem2\sandbox|CoCl2*1.5H2O}}
+
*<nowiki>{{chem2/sandbox|CoCl2*1.5H2O}}</nowiki> gives {{chem2/sandbox|CoCl2*1.5H2O}}
*Mn22– is {{chem2\sandbox|Mn22–}}
+
*Mn22– is {{chem2/sandbox|Mn22–}}
* Cu2C2*H2O is {{chem2\sandbox|Cu2C2*H2O}}  
+
* Cu2C2*H2O is {{chem2/sandbox|Cu2C2*H2O}}  
 
----
 
----
 
;Special
 
;Special
  
*<nowiki>{{chem2\sandbox|[Me2Al(\m{2}Me)]2}}</nowiki> gives {{chem2\sandbox|[Me2Al(\m{2}Me)]2}}
+
*<nowiki>{{chem2/sandbox|[Me2Al(\m{2}Me)]2}}</nowiki> gives {{chem2/sandbox|[Me2Al(\m{2}Me)]2}}
*<nowiki>{{chem2\sandbox|^{13}CO2}}</nowiki> gives {{chem2\sandbox|^{13}CO2}}
+
*<nowiki>{{chem2/sandbox|^{13}CO2}}</nowiki> gives {{chem2/sandbox|^{13}CO2}}
*<nowiki>{{chem2\sandbox|auto=yes|^{13}CO2}}</nowiki> gives {{chem2\sandbox|auto=yes|^{13}CO2}}
+
*<nowiki>{{chem2/sandbox|auto=yes|^{13}CO2}}</nowiki> gives {{chem2/sandbox|auto=yes|^{13}CO2}}
*<nowiki>{{chem2\sandbox|\h{5}(C5H5)2TiCl2}}</nowiki> gives {{chem2\sandbox|\h{5}(C5H5)2TiCl2}}
+
*<nowiki>{{chem2/sandbox|\h{5}(C5H5)2TiCl2}}</nowiki> gives {{chem2/sandbox|\h{5}(C5H5)2TiCl2}}
*<nowiki>{{chem2\sandbox|\h{5}\s(C5H5)}}</nowiki> gives {{chem2\sandbox|\h{5}\s(C5H5)}}
+
*<nowiki>{{chem2/sandbox|\h{5}\s(C5H5)}}</nowiki> gives {{chem2/sandbox|\h{5}\s(C5H5)}}
*<nowiki>{{chem2\sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}}</nowiki> is {{chem2\sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}}
+
*<nowiki>{{chem2/sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}}</nowiki> is {{chem2/sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}}
 
----
 
----
*<nowiki>{{chem2\sandbox|RC(OR’)3}}</nowiki> gives {{chem2\sandbox|RC(OR’)3}}
+
*<nowiki>{{chem2/sandbox|RC(OR’)3}}</nowiki> gives {{chem2/sandbox|RC(OR’)3}}
*<nowiki>{{chem2\sandbox|C\\C}}</nowiki> gives {{chem2\sandbox|C\\C}}
+
*<nowiki>{{chem2/sandbox|C\\C}}</nowiki> gives {{chem2/sandbox|C\\C}}
*<nowiki>{{chem2\sandbox|C2*NH3}}</nowiki> gives {{chem2\sandbox|C2*NH3}}
+
*<nowiki>{{chem2/sandbox|C2*NH3}}</nowiki> gives {{chem2/sandbox|C2*NH3}}
*<nowiki>{{chem2\sandbox|C2*2NH3}}</nowiki> gives {{chem2\sandbox|C2*2NH3}}
+
*<nowiki>{{chem2/sandbox|C2*2NH3}}</nowiki> gives {{chem2/sandbox|C2*2NH3}}
*<nowiki>{{chem2\sandbox|C1.2H3.5}}</nowiki> gives {{chem2\sandbox|C1.2H3.5}}
+
*<nowiki>{{chem2/sandbox|C1.2H3.5}}</nowiki> gives {{chem2/sandbox|C1.2H3.5}}
 
----
 
----
* <nowiki>{{chem2\sandbox|12|6|C}}</nowiki> is {{chem2\sandbox|12|6|C}}
+
* <nowiki>{{chem2/sandbox|12|6|C}}</nowiki> is {{chem2/sandbox|12|6|C}}
* <nowiki>{{chem2\sandbox|12|C}}</nowiki> is {{chem2\sandbox|12|C}}
+
* <nowiki>{{chem2/sandbox|12|C}}</nowiki> is {{chem2/sandbox|12|C}}
* <nowiki>{{chem2\sandbox|CH3\i{13}CH2CH3}}</nowiki> is {{chem2\sandbox|CH3\i{13}CH2CH3}}
+
* <nowiki>{{chem2/sandbox|CH3\i{13}CH2CH3}}</nowiki> is {{chem2/sandbox|CH3\i{13}CH2CH3}}
* <nowiki>{{chem2\sandbox|\{\{abc\}\}}}</nowiki> is {{chem2\sandbox|\b\bAbC\e\e}}
+
* <nowiki>{{chem2/sandbox|\{\{abc\}\}}}</nowiki> is {{chem2/sandbox|\b\bAbC\e\e}}
* C2(μ\-C) is {{chem2\sandbox|C2(μ\-C) }}
+
* C2(μ\-C) is {{chem2/sandbox|C2(μ\-C) }}
 
----
 
----
* SO4(2-) is {{chem2\sandbox|SO4(2-)}}
+
* SO4(2-) is {{chem2/sandbox|SO4(2-)}}
* 2Mn2(2+) is {{chem2\sandbox|2Mn2(2+)}}
+
* 2Mn2(2+) is {{chem2/sandbox|2Mn2(2+)}}
* CH3-CH2-OH is {{chem2\sandbox|CH3-CH2-OH}}
+
* CH3-CH2-OH is {{chem2/sandbox|CH3-CH2-OH}}
* [ZnCl4]- is {{chem2\sandbox|[ZnCl4]-}}
+
* [ZnCl4]- is {{chem2/sandbox|[ZnCl4]-}}
* [ZnCl4](2-) is {{chem2\sandbox|[ZnCl4](2-)}}
+
* [ZnCl4](2-) is {{chem2/sandbox|[ZnCl4](2-)}}
* AUTO: ((H2O)5{CoCl2})2 is {{chem2\sandbox|auto=yes|((H2O)5{CoCl2})2}}
+
* AUTO: ((H2O)5{CoCl2})2 is {{chem2/sandbox|auto=yes|((H2O)5{CoCl2})2}}
* Si(OH)4 is {{chem2\sandbox|Si(OH)4}}
+
* Si(OH)4 is {{chem2/sandbox|Si(OH)4}}
 
----
 
----
* AUTO: Cu2C2*H2O is {{chem2\sandbox|auto=yes|Cu2C2*H2O}}  
+
* AUTO: Cu2C2*H2O is {{chem2/sandbox|auto=yes|Cu2C2*H2O}}  
* Cu2C2*2H2O is {{chem2\sandbox|Cu2C2*2H2O}}  
+
* Cu2C2*2H2O is {{chem2/sandbox|Cu2C2*2H2O}}  
* CuSO*2H2O is {{chem2\sandbox|CuSO*2H2O}}  
+
* CuSO*2H2O is {{chem2/sandbox|CuSO*2H2O}}  
* CuSO4*15H2O is {{chem2\sandbox|CuSO4*15H2O}}  
+
* CuSO4*15H2O is {{chem2/sandbox|CuSO4*15H2O}}  
* CuSO4(H2O)5 is {{chem2\sandbox|CuSO4(H2O)5}}  
+
* CuSO4(H2O)5 is {{chem2/sandbox|CuSO4(H2O)5}}  
* H+ + OH- → H2O is {{chem2\sandbox|H+ + OH- → H2O}}
+
* H+ + OH- → H2O is {{chem2/sandbox|H+ + OH- → H2O}}
* H → O is {{chem2\sandbox|H → O }}
+
* H → O is {{chem2/sandbox|H → O }}
 
----
 
----
* ZxPo4 is {{chem2\sandbox|ZxPo4}}        &nbsp;&nbsp;&nbsp;&nbsp;Unknown element
+
* ZxPo4 is {{chem2/sandbox|ZxPo4}}        &nbsp;&nbsp;&nbsp;&nbsp;Unknown element
* ((Na)Cl is {{chem2\sandbox|((Na)Cl}}      &nbsp;&nbsp;&nbsp;&nbsp;To many (
+
* ((Na)Cl is {{chem2/sandbox|((Na)Cl}}      &nbsp;&nbsp;&nbsp;&nbsp;To many (
* Si(OH))4 is {{chem2\sandbox|Si(OH))4}}    &nbsp;&nbsp;&nbsp;&nbsp;To many )
+
* Si(OH))4 is {{chem2/sandbox|Si(OH))4}}    &nbsp;&nbsp;&nbsp;&nbsp;To many )
* Si&[[☃]]Si is {{chem2\sandbox|Si&[[☃]]Si}}
+
* Si&[[☃]]Si is {{chem2/sandbox|Si&[[☃]]Si}}
* {{chem2\sandbox|1=CH2=CH2}}
+
* {{chem2/sandbox|1=CH2=CH2}}
  
 
;More  
 
;More  
* <nowiki>{{chem2\sandbox|Cl2O6|link=dichlorine hexoxide}}</nowiki> is {{chem2\sandbox|Cl2O6|link=dichlorine hexoxide}}
+
* <nowiki>{{chem2/sandbox|Cl2O6|link=dichlorine hexoxide}}</nowiki> is {{chem2/sandbox|Cl2O6|link=dichlorine hexoxide}}
* [Fe(Phen)(Phen)3](2+) is {{chem2\sandbox|[Fe(Phen)(Phen)3](2+)}}
+
* [Fe(Phen)(Phen)3](2+) is {{chem2/sandbox|[Fe(Phen)(Phen)3](2+)}}
* AUTO: [Fe(Phen)(Phen)3](2+) is {{chem2\sandbox|auto=yes|[Fe(Phen)(Phen)3](2+)}}
+
* AUTO: [Fe(Phen)(Phen)3](2+) is {{chem2/sandbox|auto=yes|[Fe(Phen)(Phen)3](2+)}}
* <nowiki>{{chem2\sandbox|[C2O2](2+)}}</nowiki> is {{chem2\sandbox|[C2O2](2+)}}
+
* <nowiki>{{chem2/sandbox|[C2O2](2+)}}</nowiki> is {{chem2/sandbox|[C2O2](2+)}}
* <nowiki>{{chem2\sandbox|link=Tomato|SI4}}</nowiki> is {{chem2\sandbox|link=Tomato|SI4}}
+
* <nowiki>{{chem2/sandbox|link=Tomato|SI4}}</nowiki> is {{chem2/sandbox|link=Tomato|SI4}}
* H2SO4+ is {{chem2\sandbox|H2SO4+}}
+
* H2SO4+ is {{chem2/sandbox|H2SO4+}}
* Mn- is {{chem2\sandbox|Mn-}}
+
* Mn- is {{chem2/sandbox|Mn-}}
* Mn22+ is {{chem2\sandbox|Mn22+}}, Mn22- is {{chem2\sandbox|Mn22-}},  
+
* Mn22+ is {{chem2/sandbox|Mn22+}}, Mn22- is {{chem2/sandbox|Mn22-}},  
* Mn(2+) is {{chem2\sandbox|Mn(2+)}}
+
* Mn(2+) is {{chem2/sandbox|Mn(2+)}}
* Mn2(+) is {{chem2\sandbox|Mn2(+)}}
+
* Mn2(+) is {{chem2/sandbox|Mn2(+)}}
* Mn(22-) is {{chem2\sandbox|Mn(22-)}}
+
* Mn(22-) is {{chem2/sandbox|Mn(22-)}}
* Mn3(22-) is {{chem2\sandbox|Mn3(22-)}}
+
* Mn3(22-) is {{chem2/sandbox|Mn3(22-)}}
* Mn(22+) is {{chem2\sandbox|Mn(22+)}}
+
* Mn(22+) is {{chem2/sandbox|Mn(22+)}}
* Mn2(22+) is {{chem2\sandbox|Mn2(22+)}}
+
* Mn2(22+) is {{chem2/sandbox|Mn2(22+)}}
* Mn2(2+) is {{chem2\sandbox|Mn2(2+)}}
+
* Mn2(2+) is {{chem2/sandbox|Mn2(2+)}}
* Mn22(2+) is {{chem2\sandbox|Mn22(2+)}}
+
* Mn22(2+) is {{chem2/sandbox|Mn22(2+)}}
  
 
==Line wrapping==
 
==Line wrapping==
== Unexpected wrapping ==
+
{| align=right class=wikitable style="float:right"
 
 
{| align=right class=wikitable style="margin-left:32px"
 
 
! colspan=3 |  Table 1: Incnis Mrsi original post demo<br/>{{nobold|1=(extended by DMacks)}}
 
! colspan=3 |  Table 1: Incnis Mrsi original post demo<br/>{{nobold|1=(extended by DMacks)}}
 
|-
 
|-
 
  !rowspan=17 |Incnis<br/>Mrsi's<br/>original
 
  !rowspan=17 |Incnis<br/>Mrsi's<br/>original
  !Running<br/>text
+
  !width:8em | sandbox (nowrap)
  !class=<br/>"nowrap"
+
  !width:8em | current live (wraps)
 
  |-
 
  |-
  |<div style="max-width:2.75em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.75em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.75em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.75em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.7em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.7em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.7em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.7em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.65em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.65em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.65em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.65em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.6em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.6em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.6em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.6em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.55em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.55em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.55em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.55em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.5em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.5em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.5em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.5em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.45em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.45em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.45em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.45em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.4em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.4em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.4em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.4em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.35em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.35em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.35em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.35em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.3em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.3em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.3em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.3em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.25em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.25em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.25em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.25em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.2em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.2em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.2em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.2em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.15em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.15em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.15em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.15em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.1em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.1em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.1em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.1em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.05em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.05em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.05em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.05em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.0em; overflow:hidden">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.0em; xxxoverflow:hidden">{{chem2/sandbox|CO3(2-)}}</div>
  |<div style="max-width:2.0em; overflow:hidden" class="nowrap">{{chem2|CO3(2-)}}</div>
+
  |<div style="max-width:2.0em; xxxoverflow:hidden" class="">{{chem2|CO3(2-)}}</div>
 
  |-
 
  |-
 
  !rowspan=3 |DMacks's<br/>additions
 
  !rowspan=3 |DMacks's<br/>additions
  |<div style="max-width:2.0em; overflow:hidden">{{chem2|C6H12O6}}</div>
+
  |<div style="max-width:2.0em; xxxxxxoverflow:hidden">{{chem2/sandbox|C6H12O6}}</div>
  |<div style="max-width:2.0em; overflow:hidden class="nowrap">{{chem2|C6H12O6}}</div>
+
  |<div style="max-width:2.0em; xxxxxxoverflow:hidden class="">{{chem2|C6H12O6}}</div>
 
  |-
 
  |-
  |<div style="max-width:2.0em; overflow:hidden">{{chem2|C6H12O6}}</div>
+
  |<div style="max-width:2.0em; xxxxxxoverflow:hidden">{{chem2/sandbox|C6H12O6}}</div>
  |<div style="max-width:2.0em; overflow:hidden"><span class="nowrap">{{chem2|C6H12O6}}</span></div>
+
  |<div style="max-width:2.0em; xxxxxxoverflow:hidden"><span class="">{{chem2|C6H12O6}}</span></div>
 
  |-
 
  |-
  |<div style="max-width:2.0em; overflow:hidden">{{chem2|2H2 + O2 -> 2H2O}}{{wbr}}+heat</div>
+
  |<div style="max-width:2.0em; xxxxxxoverflow:hidden">{{chem2/sandbox|2H2 + O2 -> 2H2O}}{{wbr}}+heat</div>
  |<div style="max-width:2.0em; overflow:hidden"><span class="nowrap">{{chem2|2H2 + O2 -> 2H2O}}{{wbr}}+heat</span>
+
  |<div style="max-width:2.0em; xxxxxxoverflow:hidden"><span class="">{{chem2|2H2 + O2 -> 2H2O}}{{wbr}}+heat</span>
 
|}
 
|}
  
Please, fix. {{serif|I}}’m lazy to investigate because have no privilege to edit many templates on this site. [[User:Incnis Mrsi|Incnis Mrsi]] ([[User talk:Incnis Mrsi|talk]]) 19:53, 16 August 2019 (UTC)
 
::Noting for ping purposes that this is a continuation or more limited case than [[User:Jorge Stolfi|Jorge Stolfi]]'s thought in [[#Bad line breaks]]. [[User:DMacks|DMacks]] ([[User talk:DMacks|talk]]) 16:12, 17 August 2019 (UTC)
 
  
:The template here is a wrapper around the real functionality in {{module|Chem2}}. Keeping a chemical formula together is pretty important. But <code>&lt;[[Span and div|div]] class="nowrap"></code> around the whole result is not sufficient—see my first additional example. Using <code>&lt;[[Span and div|span]] class="nowrap"></code> (equivalent to {{tl|nowrap}}), my second example seems better in that regard. But I think we ''do'' want to allow breaking at whitespace, as in a chemical equation rather than just a single formula as in my third example. Even {{tl|wbr}} doesn't seem to allow breaking, despite what that template indicates.
 
:
 
:It seems heavy-handed to wrap each non-space chunk in the formula with its own <code>span</code>. Is there a CSS way to allow breaking ''only'' at whitespace (not at other word-breaks)? [[User:DMacks|DMacks]] ([[User talk:DMacks|talk]]) 16:10, 17 August 2019 (UTC)
 
:: Why namely CSS? A sane HTML code should be generated, not one full of loopholes for bad wrapping. Normally it’s a bad idea to permit one “word” (compound) to be broken, but for long ones—IMHO for cases even longer than examples below—a very thin space can be inserted in places where wrapping is tolerable. See below examples based on U+2009 space. [[User:Incnis Mrsi|Incnis Mrsi]] ([[User talk:Incnis Mrsi|talk]]) 17:04, 17 August 2019 (UTC)
 
 
{| class=wikitable
 
{| class=wikitable
 
! colspan=2 | Table 2  
 
! colspan=2 | Table 2  
 
|-
 
|-
  |<div style="max-width:5em; overflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
+
  |<div style="max-width:5em; xxxoverflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
  |<div style="max-width:6em; overflow:hidden">CH<sub>3</sub> COO<sup>−</sub></div>
+
  |<div style="max-width:6em; xxxoverflow:hidden">CH<sub>3</sub> COO<sup>−</sup></div>
 
  |-
 
  |-
 
  |<div style="max-width:4.5em;">C<sub>2</sub>H<sub>5</sub> OH</div>
 
  |<div style="max-width:4.5em;">C<sub>2</sub>H<sub>5</sub> OH</div>
  |<div style="max-width:5.4em; overflow:hidden">CH<sub>3</sub> COO<sup>−</sub></div>
+
  |<div style="max-width:5.4em; xxxoverflow:hidden">CH<sub>3</sub> COO<sup>−</sup></div>
 
  |-
 
  |-
  |<div style="max-width:4em; overflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
+
  |<div style="max-width:4em; xxxoverflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
  |<div style="max-width:4.8em; overflow:hidden">CH<sub>3</sub> COO<sup>−</sub></div>
+
  |<div style="max-width:4.8em; xxxoverflow:hidden">CH<sub>3</sub> COO<sup>−</sup></div>
 
  |-
 
  |-
 
  |<div style="max-width:3.5em;">C<sub>2</sub>H<sub>5</sub> OH</div>
 
  |<div style="max-width:3.5em;">C<sub>2</sub>H<sub>5</sub> OH</div>
  |<div style="max-width:4.2em; overflow:hidden">CH<sub>3</sub> COO<sup>−</sub></div>
+
  |<div style="max-width:4.2em; xxxoverflow:hidden">CH<sub>3</sub> COO<sup>−</sup></div>
 
  |-
 
  |-
  |<div style="max-width:3em; overflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
+
  |<div style="max-width:3em; xxxoverflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
  |<div style="max-width:3.6em; overflow:hidden">CH<sub>3</sub> COO<sup>−</sub></div>
+
  |<div style="max-width:3.6em; xxxoverflow:hidden">CH<sub>3</sub> COO<sup>−</sup></div>
 
  |-
 
  |-
 
  |<div style="max-width:2.5em;">C<sub>2</sub>H<sub>5</sub> OH</div>
 
  |<div style="max-width:2.5em;">C<sub>2</sub>H<sub>5</sub> OH</div>
  |<div style="max-width:3.0em; overflow:hidden">CH<sub>3</sub> COO<sup>−</sub></div>
+
  |<div style="max-width:3.0em; xxxoverflow:hidden">CH<sub>3</sub> COO<sup>−</sup></div>
 
  |-
 
  |-
  |<div style="max-width:2.25em; overflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
+
  |<div style="max-width:2.25em; xxxoverflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
  |<div style="max-width:2.7em; overflow:hidden">CH<sub>3</sub> COO<sup>−</sub></div>
+
  |<div style="max-width:2.7em; xxxoverflow:hidden">CH<sub>3</sub> COO<sup>−</sup></div>
 
  |-
 
  |-
  |<div style="max-width:2em; overflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
+
  |<div style="max-width:2em; xxxoverflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
  |<div style="max-width:2.4em; overflow:hidden">CH<sub>3</sub> COO<sup>−</sub></div>
+
  |<div style="max-width:2.4em; xxxoverflow:hidden">CH<sub>3</sub> COO<sup>−</sup></div>
 
  |-
 
  |-
  |<div style="max-width:1.75em; overflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
+
  |<div style="max-width:1.75em; xxxoverflow:hidden">C<sub>2</sub>H<sub>5</sub> OH</div>
  |<div style="max-width:2.1em; overflow:hidden">CH<sub>3</sub> COO<sup>−</sub></div>
+
  |<div style="max-width:2.1em; xxxoverflow:hidden">CH<sub>3</sub> COO<sup>−</sup></div>
 
  |-
 
  |-
 
  | colspan=2 |Attention!<br/>It is not &#123;{chem2}},</br>it is HTML.
 
  | colspan=2 |Attention!<br/>It is not &#123;{chem2}},</br>it is HTML.
 
  |}
 
  |}
 
{{clear}}
 
{{clear}}

Latest revision as of 17:38, 6 March 2020

from Doc

{{Chems}}
Symbol Gives Example Output
\s {{chem2|CH3\sCH3}} CH
3
−CH
3
\d = {{chem2|CH2\dCH2}} CH
2
=CH
2
\t {{chem2|HC\tCH}} HC≡CH
\q {{chem2|[Cl4Re\qReCl4](2−)|}} [Cl
4
Re≣ReCl
4
]2−
\- -
\\ \
\h η
\h{1} η1-
\m{1} μ1-
-> {{chem2|2H2 + O2 -> 2H2O}} 2H
2
+ O
2
→ 2H
2
O
<->
* · {{chem2|CoCl2*6H2O}} CoCl
2
·6H2O
\* * {{chem2|Cp\*2Fe}} Cp*
2
Fe
_{} {{chem2|CH4_{(g)}|}} * CH
4

(g)
^{} {{chem2|^{13}CH4}} 13
CH
4
&nabla; {{chem2|&nabla;}}

^ If the last character of the template input is }, MediaWiki will confuse it with the end-of-template tag }}. Adding | between the two resolves this ambiguity. Other options include instead inserting (space), {{null}} or <nowiki/>.

Formulas (without charge) are just written. Eg.:

  • {{chem2|CH3(CH2)5CH3}} gives CH
    3
    (CH
    2
    )
    5
    CH
    3
  • {{chem2|Fe3S2(CO)9}} gives Fe
    3
    S
    2
    (CO)
    9
  • {{chem2|C_{''n''}H_{2''n''+2}|}} gives C
    n
    H
    2n+2

Charges are written inside parenthesis, otherwise its treated as +1 or −1, e.g.:

  • {{chem2|Na+}} gives Na+
  • {{chem2|O2-}} gives O
    2
    but can be written as {{chem2|O2(-)}} too.
  • {{chem2|SO4(2-)}} gives SO2−
    4
  • {{chem2|S19(2+)}} gives S2+
    19

Chemical equations can be written too. E.g.:

  • {{chem2|2 S + 3 O2 + 2 H2O -> 2 H2SO4}} gives 2 S + 3 O
    2
    + 2 H
    2
    O → 2 H
    2
    SO
    4
  • {{chem2|2S + 3O2 + 2H2O -> 2H2SO4}} gives 2S + 3O
    2
    + 2H
    2
    O → 2H
    2
    SO
    4

The arrows can be written as -> or just . All characters (and unicode markup) are valid input except \, = (Mediawiki use it), _ and - (endash etc.)

  • {{chem2|2 H2_{(g)} + O2_{(g)} -> 2H2O_{(g)}|}} gives 2 H
    2

    (g)
    + O
    2

    (g)
    → 2H
    2
    O
    (g)
  • {{chem2|NH2RCHCO2H <-> NH3+RCHCO2-}} gives NH
    2
    RCHCO
    2
    H ⇌ NH+
    3
    RCHCO
    2

Hapticity and mu:

  • {{chem2|W(CO)3(PiPr3)2(\h{2}\-H2)}} gives W(CO)
    3
    (PiPr
    3
    )
    2
    2--H
    2
    )
  • {{chem2|auto=yes|W(CO)3(PiPr3)2(\h{2}\-H2)}} gives W(CO)
    3
    (PiPr
    3
    )
    2
    (η2--H
    2
    )

Links: Use link=<wiki page> or ordinary wiki link ([[ and ]]), e.g.:

  • {{chem2|link=Iron(III) chloride|FeCl3}} gives FeCl
    3
  • {{chem2|3[[hydrogen|H2]] + 2[[nitrogen|N2]] <-> 2[[ammonia|NH3]]}} gives 3H
    2
    + 2N
    2
    ⇌ 2NH
    3

Auto links: Automatic link elements: Use auto=<something> (e.g. yes):

  • {{chem2|auto=yes|CH3CH2CH3CBrFCIClCH3}} gives CH
    3
    CH
    2
    CH
    3
    CBrFCIClCH
    3

All /sandbox

{{Chems/sandbox}}
Symbol Gives Example Output
\s {{chem2/sandbox|CH3\sCH3}} CH
3
−CH
3
\d = {{chem2/sandbox|CH2\dCH2}} CH
2
=CH
2
\t {{chem2/sandbox|HC\tCH}} HC≡CH
\q {{chem2/sandbox|[Cl4Re\qReCl4](2−)|}} [Cl
4
Re≣ReCl
4
]2−
\- -
\\ \
\h η
\h{1} η1-
\m{1} μ1-
-> {{chem2/sandbox|2H2 + O2 -> 2H2O}} 2H
2
+ O
2
→ 2H
2
O
<->
* · {{chem2/sandbox|CoCl2*6H2O}} CoCl
2
·6H2O
\* * {{chem2/sandbox|Cp\*2Fe}} Cp*
2
Fe
_{} {{chem2/sandbox|CH4_{(g)}|}} * CH
4

(g)
^{} {{chem2/sandbox|^{13}CH4}} 13
CH
4
&nabla; {{chem2/sandbox|&nabla;}}

^ If the last character of the template input is }, MediaWiki will confuse it with the end-of-template tag }}. Adding | between the two resolves this ambiguity. Other options include instead inserting (space), {{null}} or <nowiki/>.

Formulas (without charge) are just written. Eg.:

  • {{chem2/sandbox|CH3(CH2)5CH3}} gives CH
    3
    (CH
    2
    )
    5
    CH
    3
  • {{chem2/sandbox|Fe3S2(CO)9}} gives Fe
    3
    S
    2
    (CO)
    9
  • {{chem2/sandbox|C_{''n''}H_{2''n''+2}|}} gives C
    n
    H
    2n+2

Charges are written inside parenthesis, otherwise its treated as +1 or −1, e.g.:

  • {{chem2/sandbox|Na+}} gives Na+
  • {{chem2/sandbox|O2-}} gives O
    2
    but can be written as {{chem2/sandbox|O2(-)}} too.
  • {{chem2/sandbox|SO4(2-)}} gives SO2−
    4
  • {{chem2/sandbox|S19(2+)}} gives S2+
    19

Chemical equations can be written too. E.g.:

  • {{chem2/sandbox|2 S + 3 O2 + 2 H2O -> 2 H2SO4}} gives 2 S + 3 O
    2
    + 2 H
    2
    O → 2 H
    2
    SO
    4
  • {{chem2/sandbox|2S + 3O2 + 2H2O -> 2H2SO4}} gives 2S + 3O
    2
    + 2H
    2
    O → 2H
    2
    SO
    4

The arrows can be written as -> or just . All characters (and unicode markup) are valid input except \, = (Mediawiki use it), _ and - (endash etc.)

  • {{chem2/sandbox|2 H2_{(g)} + O2_{(g)} -> 2H2O_{(g)}|}} gives 2 H
    2

    (g)
    + O
    2

    (g)
    → 2H
    2
    O
    (g)
  • {{chem2/sandbox|NH2RCHCO2H <-> NH3+RCHCO2-}} gives NH
    2
    RCHCO
    2
    H ⇌ NH+
    3
    RCHCO
    2

Hapticity and mu:

  • {{chem2/sandbox|W(CO)3(PiPr3)2(\h{2}\-H2)}} gives W(CO)
    3
    (PiPr
    3
    )
    2
    2--H
    2
    )
  • {{chem2/sandbox|auto=yes|W(CO)3(PiPr3)2(\h{2}\-H2)}} gives W(CO)
    3
    (PiPr
    3
    )
    2
    (η2--H
    2
    )

Links: Use link=<wiki page> or ordinary wiki link ([[ and ]]), e.g.:

  • {{chem2/sandbox|link=Iron(III) chloride|FeCl3}} gives FeCl
    3
  • {{chem2/sandbox|3[[hydrogen|H2]] + 2[[nitrogen|N2]] <-> 2[[ammonia|NH3]]}} gives 3H
    2
    + 2N
    2
    ⇌ 2NH
    3

Auto links: Automatic link elements: Use auto=<something> (e.g. yes):

  • {{chem2/sandbox|auto=yes|CH3CH2CH3CBrFCIClCH3}} gives CH
    3
    CH
    2
    CH
    3
    CBrFCIClCH
    3
Examples
  • {{chem2/sandbox|[Cl4Re\qReCl4](2−)|}} gives [Cl
    4
    Re≣ReCl
    4
    ]2−
  • {{chem2/sandbox|[Cl4Re\qReCl4](2-)|}} gives [Cl
    4
    Re≣ReCl
    4
    ]2−
  • {{chem2/sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}} gives NH
    2
    RCHCO
    2
    H ⇌ NH+
    3
    RCHCO
    2

  • {{chem2/sandbox|\\hallo}} gives \hallo
  • {{chem2/sandbox|H3CC\tCH <-> H2C\dC\dCH2}} gives H
    3
    CC≡CH ⇌ H
    2
    C=C=CH
    2
  • {{chem2/sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}} gives 4 NH
    3
    + 5 O
    2
    → 4 NO + 6 H
    2
    O

  • "H2O &#8594; H2O" is H
    2
    O → H
    2
    O
  • "H2O_{(l)} -> H2O_{(g)}" is H
    2
    O
    (l)
    → H
    2
    O
    (g)

  • "4 NH3 + 5 O2 → 4 NO + 6 H2O" is 4 NH
    3
    + 5 O
    2
    → 4 NO + 6 H
    2
    O
  • " 4 NH3 + 5 O2 → 4 NO + 6 H2O" is 4 NH
    3
    + 5 O
    2
    → 4 NO + 6 H
    2
    O
  • " 4NH3 + 5O2 → 4NO + 6H2O" is 4NH
    3
    + 5O
    2
    → 4NO + 6H
    2
    O
  • " 2Mn2(+)" is 2Mn+
    2
  • " 2Mn2(+) + 3H2O" is 2Mn+
    2
    + 3H
    2
    O
  • Mn– is Mn

  • Mn2(2-) is Mn2−
    2
  • Mn2☃+ is Mn
    2
    +
    , Mn2(2–) is Mn2−
    2
    , Mn2(2☃–) is Mn
    2
    (
    2

    )
  • Mn2(+) is Mn+
    2
  • Mn2+ is Mn+
    2
  • Mn2(-) is Mn
    2
  • Mn2- is Mn
    2

  • {{chem2/sandbox|C_{''n''}H_{2''n'' + 2}|}} gives C
    n
    H
    2n + 2
  • {{chem2/sandbox|C_{abc}|}} gives C
    abc
  • (chem gives C
    n
    H
    2n + 2
    )
  • {{chem2/sandbox|CoCl2*1.5H2O}} gives CoCl
    2
    ·1.5H2O
  • Mn22– is Mn
    22
  • Cu2C2*H2O is Cu
    2
    C
    2
    ·H2O

Special
  • {{chem2/sandbox|[Me2Al(\m{2}Me)]2}} gives [Me
    2
    Al(μ2-Me)]
    2
  • {{chem2/sandbox|^{13}CO2}} gives 13
    CO
    2
  • {{chem2/sandbox|auto=yes|^{13}CO2}} gives 13
    CO
    2
  • {{chem2/sandbox|\h{5}(C5H5)2TiCl2}} gives η5-(C
    5
    H
    5
    )
    2
    TiCl
    2
  • {{chem2/sandbox|\h{5}\s(C5H5)}} gives η5-−(C
    5
    H
    5
    )
  • {{chem2/sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}} is CH
    2
    =CH
    2
    −CH
    2
    −C≡CH≣Mn

  • {{chem2/sandbox|RC(OR’)3}} gives RC(OR’)
    3
  • {{chem2/sandbox|C\\C}} gives C\C
  • {{chem2/sandbox|C2*NH3}} gives C
    2
    ·NH
    3
  • {{chem2/sandbox|C2*2NH3}} gives C
    2
    ·2NH
    3
  • {{chem2/sandbox|C1.2H3.5}} gives C
    1.2
    H
    3.5

  • {{chem2/sandbox|12|6|C}} is 12
  • {{chem2/sandbox|12|C}} is 12
  • {{chem2/sandbox|CH3\i{13}CH2CH3}} is CH
    3
    CH
    2
    CH
    3
  • {{chem2/sandbox|\{\{abc\}\}}} is AbC
  • C2(μ\-C) is C
    2
    (μ-C)

  • SO4(2-) is SO2−
    4
  • 2Mn2(2+) is 2Mn2+
    2
  • CH3-CH2-OH is CH
    3
    CH
    2
    OH
  • [ZnCl4]- is [ZnCl
    4
    ]
  • [ZnCl4](2-) is [ZnCl
    4
    ]2−
  • AUTO: ((H2O)5{CoCl2})2 is ((H
    2
    O)
    5
    {CoCl
    2
    })
    2
  • Si(OH)4 is Si(OH)
    4

  • AUTO: Cu2C2*H2O is Cu
    2
    C
    2
    ·H2O
  • Cu2C2*2H2O is Cu
    2
    C
    2
    ·2H2O
  • CuSO*2H2O is CuSO·2H2O
  • CuSO4*15H2O is CuSO
    4
    ·15H2O
  • CuSO4(H2O)5 is CuSO
    4
    (H
    2
    O)
    5
  • H+ + OH- → H2O is H+
    + OH
    → H
    2
    O
  • H → O is H → O

  • ZxPo4 is ZxPo
    4
        Unknown element
  • ((Na)Cl is ((Na)Cl     To many (
  • Si(OH))4 is Si(OH))
    4
        To many )
  • Si&Si is Si&Si
  • CH
    2
    =CH
    2
More
  • {{chem2/sandbox|Cl2O6|link=dichlorine hexoxide}} is Cl
    2
    O
    6
  • [Fe(Phen)(Phen)3](2+) is [Fe(Phen)(Phen)
    3
    ]2+
  • AUTO: [Fe(Phen)(Phen)3](2+) is [[[Iron|Fe]](Phen)(Phen)
    3
    ]2+
  • {{chem2/sandbox|[C2O2](2+)}} is [C
    2
    O
    2
    ]2+
  • {{chem2/sandbox|link=Tomato|SI4}} is SI
    4
  • H2SO4+ is H
    2
    SO+
    4
  • Mn- is Mn
  • Mn22+ is Mn+
    22
    , Mn22- is Mn
    22
    ,
  • Mn(2+) is Mn2+
  • Mn2(+) is Mn+
    2
  • Mn(22-) is Mn22−
  • Mn3(22-) is Mn22−
    3
  • Mn(22+) is Mn22+
  • Mn2(22+) is Mn22+
    2
  • Mn2(2+) is Mn2+
    2
  • Mn22(2+) is Mn2+
    22
Examples
  • {{chem2/sandbox|[Cl4Re\qReCl4](2−)|}} gives [Cl
    4
    Re≣ReCl
    4
    ]2−
  • {{chem2/sandbox|[Cl4Re\qReCl4](2-)|}} gives [Cl
    4
    Re≣ReCl
    4
    ]2−
  • {{chem2/sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}} gives NH
    2
    RCHCO
    2
    H ⇌ NH+
    3
    RCHCO
    2

  • {{chem2/sandbox|\\hallo}} gives \hallo
  • {{chem2/sandbox|H3CC\tCH <-> H2C\dC\dCH2}} gives H
    3
    CC≡CH ⇌ H
    2
    C=C=CH
    2
  • {{chem2/sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}} gives 4 NH
    3
    + 5 O
    2
    → 4 NO + 6 H
    2
    O

  • "H2O &#8594; H2O" is H
    2
    O → H
    2
    O
  • "H2O_{(l)} -> H2O_{(g)}" is H
    2
    O
    (l)
    → H
    2
    O
    (g)

  • "4 NH3 + 5 O2 → 4 NO + 6 H2O" is 4 NH
    3
    + 5 O
    2
    → 4 NO + 6 H
    2
    O
  • " 4 NH3 + 5 O2 → 4 NO + 6 H2O" is 4 NH
    3
    + 5 O
    2
    → 4 NO + 6 H
    2
    O
  • " 4NH3 + 5O2 → 4NO + 6H2O" is 4NH
    3
    + 5O
    2
    → 4NO + 6H
    2
    O
  • " 2Mn2(+)" is 2Mn+
    2
  • " 2Mn2(+) + 3H2O" is 2Mn+
    2
    + 3H
    2
    O
  • Mn– is Mn

  • Mn2(2-) is Mn2−
    2
  • Mn2☃+ is Mn
    2
    +
    , Mn2(2–) is Mn2−
    2
    , Mn2(2☃–) is Mn
    2
    (
    2

    )
  • Mn2(+) is Mn+
    2
  • Mn2+ is Mn+
    2
  • Mn2(-) is Mn
    2
  • Mn2- is Mn
    2

  • {{chem2/sandbox|C_{''n''}H_{2''n'' + 2}|}} gives C
    n
    H
    2n + 2
  • {{chem2/sandbox|C_{abc}|}} gives C
    abc
  • (chem gives C
    n
    H
    2n + 2
    )
  • {{chem2/sandbox|CoCl2*1.5H2O}} gives CoCl
    2
    ·1.5H2O
  • Mn22– is Mn
    22
  • Cu2C2*H2O is Cu
    2
    C
    2
    ·H2O

Special
  • {{chem2/sandbox|[Me2Al(\m{2}Me)]2}} gives [Me
    2
    Al(μ2-Me)]
    2
  • {{chem2/sandbox|^{13}CO2}} gives 13
    CO
    2
  • {{chem2/sandbox|auto=yes|^{13}CO2}} gives 13
    CO
    2
  • {{chem2/sandbox|\h{5}(C5H5)2TiCl2}} gives η5-(C
    5
    H
    5
    )
    2
    TiCl
    2
  • {{chem2/sandbox|\h{5}\s(C5H5)}} gives η5-−(C
    5
    H
    5
    )
  • {{chem2/sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}} is CH
    2
    =CH
    2
    −CH
    2
    −C≡CH≣Mn

  • {{chem2/sandbox|RC(OR’)3}} gives RC(OR’)
    3
  • {{chem2/sandbox|C\\C}} gives C\C
  • {{chem2/sandbox|C2*NH3}} gives C
    2
    ·NH
    3
  • {{chem2/sandbox|C2*2NH3}} gives C
    2
    ·2NH
    3
  • {{chem2/sandbox|C1.2H3.5}} gives C
    1.2
    H
    3.5

  • {{chem2/sandbox|12|6|C}} is 12
  • {{chem2/sandbox|12|C}} is 12
  • {{chem2/sandbox|CH3\i{13}CH2CH3}} is CH
    3
    CH
    2
    CH
    3
  • {{chem2/sandbox|\{\{abc\}\}}} is AbC
  • C2(μ\-C) is C
    2
    (μ-C)

  • SO4(2-) is SO2−
    4
  • 2Mn2(2+) is 2Mn2+
    2
  • CH3-CH2-OH is CH
    3
    CH
    2
    OH
  • [ZnCl4]- is [ZnCl
    4
    ]
  • [ZnCl4](2-) is [ZnCl
    4
    ]2−
  • AUTO: ((H2O)5{CoCl2})2 is ((H
    2
    O)
    5
    {CoCl
    2
    })
    2
  • Si(OH)4 is Si(OH)
    4

  • AUTO: Cu2C2*H2O is Cu
    2
    C
    2
    ·H2O
  • Cu2C2*2H2O is Cu
    2
    C
    2
    ·2H2O
  • CuSO*2H2O is CuSO·2H2O
  • CuSO4*15H2O is CuSO
    4
    ·15H2O
  • CuSO4(H2O)5 is CuSO
    4
    (H
    2
    O)
    5
  • H+ + OH- → H2O is H+
    + OH
    → H
    2
    O
  • H → O is H → O

  • ZxPo4 is ZxPo
    4
        Unknown element
  • ((Na)Cl is ((Na)Cl     To many (
  • Si(OH))4 is Si(OH))
    4
        To many )
  • Si&Si is Si&Si
  • CH
    2
    =CH
    2
More
  • {{chem2/sandbox|Cl2O6|link=dichlorine hexoxide}} is Cl
    2
    O
    6
  • [Fe(Phen)(Phen)3](2+) is [Fe(Phen)(Phen)
    3
    ]2+
  • AUTO: [Fe(Phen)(Phen)3](2+) is [[[Iron|Fe]](Phen)(Phen)
    3
    ]2+
  • {{chem2/sandbox|[C2O2](2+)}} is [C
    2
    O
    2
    ]2+
  • {{chem2/sandbox|link=Tomato|SI4}} is SI
    4
  • H2SO4+ is H
    2
    SO+
    4
  • Mn- is Mn
  • Mn22+ is Mn+
    22
    , Mn22- is Mn
    22
    ,
  • Mn(2+) is Mn2+
  • Mn2(+) is Mn+
    2
  • Mn(22-) is Mn22−
  • Mn3(22-) is Mn22−
    3
  • Mn(22+) is Mn22+
  • Mn2(22+) is Mn22+
    2
  • Mn2(2+) is Mn2+
    2
  • Mn22(2+) is Mn2+
    22

Line wrapping

Table 1: Incnis Mrsi original post demo
(extended by DMacks)
Incnis
Mrsi's
original
sandbox (nowrap) current live (wraps)
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
CO2−
3
DMacks's
additions
C
6
H
12
O
6
C
6
H
12
O
6
C
6
H
12
O
6
C
6
H
12
O
6
2H
2
+ O
2
→ 2H
2
O
Template:Wbr+heat
2H
2
+ O
2
→ 2H
2
O
Template:Wbr+heat


Table 2
C2H5 OH
CH3 COO
C2H5 OH
CH3 COO
C2H5 OH
CH3 COO
C2H5 OH
CH3 COO
C2H5 OH
CH3 COO
C2H5 OH
CH3 COO
C2H5 OH
CH3 COO
C2H5 OH
CH3 COO
C2H5 OH
CH3 COO
Attention!
It is not {{chem2}},
it is HTML.