Template:Chem2/doc

chem2 (or CHEM2) is a template used to format a chemical formula or equation.

Formula punctuation
 ^ If the last character of the template input is, MediaWiki will confuse it with the end-of-template tag. Adding a space between the two resolves this ambiguity. Other options include instead inserting  or.

Formulas, charges, equations
Formulas (without charge) are just written:
 * &rarr; CH3(CH2)5CH3
 * &rarr; Fe3S2(CO)9
 * &rarr; C_{n}H_{2n+2}

Charges are written inside parameters:
 * &rarr; SO4(2-)
 * &rarr; S19(2+)

Charges +1 and &minus;1 can be written plain:
 * &rarr; Na+
 * &rarr; O2-
 * equals

Chemical equations: The arrows can be written as  or just. All characters (and unicode markup) are valid input except, = (Mediawiki use it),   and   (endash etc.)
 * &rarr; 2 S + 3 O2 + 2 H2O -> 2 H2SO4
 * &rarr; 2S + 3O2 + 2H2O -> 2H2SO4
 * &rarr; 2 H2_{(g)} + O2_{(g)} -> 2H2O_{(g)}
 * &rarr; NH2RCHCO2H <-> NH3+RCHCO2-

Hapticity and mu:
 * &rarr; W(CO)3(PiPr3)2(\h{2}H2)
 * &rarr; W(CO)3(PiPr3)2(\h{2}H2)

Whole formula link
Link the whole formula with &lt;wiki pagename&gt;:

Or use wikilink brackets in input like :

Link each element (C, Hg) and generic element code (R, X)

 * Use yes to link each element symbol once, as well as some others such as Ph



Link functional groups
Some common groups are recognized and linked if you wikilink them using
 * In particular H2O links to water of crystallization in, because a link to water is generally unnecessary.
 * In particular H2O links to water of crystallization in, because a link to water is generally unnecessary.
 * In particular H2O links to water of crystallization in, because a link to water is generally unnecessary.

You can link to any article even if chem2 is unaware of it:!-- same as |link=... then -->

To change the default link:

Examples

 * gives [Cl4Re\qReCl4](2−)
 * gives [Cl4Re\qReCl4](2-)
 * gives NH2RCHCO2H <-> NH3+RCHCO2−


 * gives \\hallo
 * gives H3CC\tCH <-> H2C\dC\dCH2
 * gives 4 NH3 + 5 O2 -> 4 NO + 6 H2O


 * "H2O &amp;#8594; H2O" is H2O &#8594; H2O
 * "H2O_{(l)} -> H2O_{(g)}" is H2O_{(l)} -> H2O_{(g)}


 * "4 NH3 + 5 O2 → 4 NO + 6 H2O" is 4 NH3 + 5 O2 → 4 NO + 6 H2O
 * " 4 NH3 + 5 O2 → 4 NO + 6 H2O" is 4 NH3 + 5 O2 → 4 NO + 6 H2O
 * " 4NH3 + 5O2 → 4NO + 6H2O" is 4NH3 + 5O2 → 4NO + 6H2O
 * " 2Mn2(+)" is 2Mn2(+)
 * " 2Mn2(+) + 3H2O" is 2Mn2(+) + 3H2O
 * Mn– is Mn–


 * Mn2(2-) is Mn2(2-)
 * Mn2☃+ is Mn2☃+, Mn2(2–) is Mn2(2–), Mn2(2☃–) is Mn2(2☃–)
 * Mn2(+) is Mn2(+)
 * Mn2+ is Mn2+
 * Mn2(-) is Mn2(-)
 * Mn2- is Mn2-


 * C_{n}H_{2n + 2} gives C_{n}H_{2n + 2}
 * C_{abc} gives C_{abc}
 * (chem gives )
 * CoCl2*1.5H2O gives CoCl2*1.5H2O
 * Mn22– is Mn22–
 * Cu2C2*H2O is Cu2C2*H2O


 * Special


 * [Me2Al(\m{2}Me)]2 gives [Me2Al(\m{2}Me)]2
 * ^{13}CO2 gives ^{13}CO2
 * ^{13}CO2 gives ^{13}CO2
 * \h{5}(C5H5)2TiCl2 gives \h{5}(C5H5)2TiCl2
 * \h{5}\s(C5H5) gives \h{5}\s(C5H5)
 * CH2\dCH2\sCH2\sC\tCH\qMn is CH2\dCH2\sCH2\sC\tCH\qMn


 * RC(OR’)3 gives RC(OR’)3
 * C\\C gives C\\C
 * C2*NH3 gives C2*NH3
 * C2*2NH3 gives C2*2NH3
 * C1.2H3.5 gives C1.2H3.5


 * 12 is 12
 * 12 is 12
 * CH3\i{13}CH2CH3 is CH3\i{13}CH2CH3
 * \{\{abc\}\} is \b\bAbC\e\e
 * C2(μ\-C) is C2(μ\-C)


 * SO4(2-) is SO4(2-)
 * 2Mn2(2+) is 2Mn2(2+)
 * CH3-CH2-OH is CH3-CH2-OH
 * [ZnCl4]- is [ZnCl4]-
 * [ZnCl4](2-) is [ZnCl4](2-)
 * AUTO: ((H2O)5{CoCl2})2 is ((H2O)5{CoCl2})2
 * Si(OH)4 is Si(OH)4


 * AUTO: Cu2C2*H2O is Cu2C2*H2O
 * Cu2C2*2H2O is Cu2C2*2H2O
 * CuSO*2H2O is CuSO*2H2O
 * CuSO4*15H2O is CuSO4*15H2O
 * CuSO4(H2O)5 is CuSO4(H2O)5
 * H+ + OH- → H2O is H+ + OH- → H2O
 * H → O is H → O


 * ZxPo4 is ZxPo4           Unknown element.
 * ((Na)Cl is ((Na)Cl         Too many "(".
 * Si(OH))4 is Si(OH))4        Too many ")".
 * Si&☃Si is Si&☃Si
 * CH2=CH2

More

 * Cl2O6 is Cl2O6
 * [Fe(Phen)(Phen)3](2+) is [Fe(Phen)(Phen)3](2+)
 * AUTO: [Fe(Phen)(Phen)3](2+) is [Fe(Phen)(Phen)3](2+)
 * [C2O2](2+) is [C2O2](2+)
 * SI4 is SI4
 * H2SO4+ is H2SO4+
 * Mn- is Mn-
 * Mn22+ is Mn22+, Mn22- is Mn22-,
 * Mn(2+) is Mn(2+)
 * Mn2(+) is Mn2(+)
 * Mn(22-) is Mn(22-)
 * Mn3(22-) is Mn3(22-)
 * Mn(22+) is Mn(22+)
 * Mn2(22+) is Mn2(22+)
 * Mn2(2+) is Mn2(2+)
 * Mn22(2+) is Mn22(2+)

Chem vs chem2

 * Chem
 * (CH3)2CO        Chem2
 * Chem
 * H2+        Chem2

TemplateData
{	"params": { "1": {},		"auto": {}, "link": {} } }