Template:Chem2/testcases
![]() | This is the template test cases page for the sandbox of Template:Chem2. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
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 4Re≣ReCl 4]2− |
\- |
- | ||
\\ |
\ | ||
\h |
η | ||
\h{1} |
η1- | ||
\m{1} |
μ1- | ||
-> |
→ | {{chem2|2H2 + O2 -> 2H2O}} |
2H 2 + O 2 → 2H 2O |
<-> |
⇌ | ||
* |
· | {{chem2|CoCl2*6H2O}} |
CoCl 2·6H2O |
\* |
* | {{chem2|Cp\*2Fe}} |
Cp* 2Fe |
_{} |
{{chem2|CH4_{(g)}|}} * |
CH 4 (g) | |
^{} |
{{chem2|^{13}CH4}} |
13 CH 4 | |
∇ |
∇ | {{chem2|∇}} |
∇ |
^ 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)
5CH
3{{chem2|Fe3S2(CO)9}}
gives Fe
3S
2(CO)
9{{chem2|C_{''n''}H_{2''n''+2}|}}
gives C
nH
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
2O → 2 H
2SO
4{{chem2|2S + 3O2 + 2H2O -> 2H2SO4}}
gives 2S + 3O
2 + 2H
2O → 2H
2SO
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
2O
(g){{chem2|NH2RCHCO2H <-> NH3+RCHCO2-}}
gives NH
2RCHCO
2H ⇌ NH+
3RCHCO−
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
):
All \sandbox
- {{Chems\sandbox}}
Symbol | Gives | Example | Output |
---|---|---|---|
\s |
Template:Chem2\sandbox | {{chem2\sandbox|CH3\sCH3}} |
Template:Chem2\sandbox |
\d |
Template:Chem2\sandbox | {{chem2\sandbox|CH2\dCH2}} |
Template:Chem2\sandbox |
\t |
Template:Chem2\sandbox | {{chem2\sandbox|HC\tCH}} |
Template:Chem2\sandbox |
\q |
Template:Chem2\sandbox | {{chem2\sandbox|[Cl4Re\qReCl4](2−)|}} |
Template:Chem2\sandbox |
\- |
Template:Chem2\sandbox | ||
\\ |
Template:Chem2\sandbox | ||
\h |
Template:Chem2\sandbox | ||
\h{1} |
Template:Chem2\sandbox | ||
\m{1} |
Template:Chem2\sandbox | ||
-> |
Template:Chem2\sandbox | {{chem2\sandbox|2H2 + O2 -> 2H2O}} |
Template:Chem2\sandbox |
<-> |
Template:Chem2\sandbox | ||
* |
Template:Chem2\sandbox | {{chem2\sandbox|CoCl2*6H2O}} |
Template:Chem2\sandbox |
\* |
* | {{chem2\sandbox|Cp\*2Fe}} |
Template:Chem2\sandbox |
_{} |
{{chem2\sandbox|CH4_{(g)}|}} * |
Template:Chem2\sandbox | |
^{} |
{{chem2\sandbox|^{13}CH4}} |
Template:Chem2\sandbox | |
∇ |
Template:Chem2\sandbox | {{chem2\sandbox|∇}} |
Template:Chem2\sandbox |
^ 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 Template:Chem2\sandbox{{chem2\sandbox|Fe3S2(CO)9}}
gives Template:Chem2\sandbox{{chem2\sandbox|C_{''n''}H_{2''n''+2}|}}
gives Template:Chem2\sandbox
Charges are written inside parenthesis, otherwise its treated as +1 or −1, e.g.:
{{chem2\sandbox|Na+}}
gives Template:Chem2\sandbox{{chem2\sandbox|O2-}}
gives Template:Chem2\sandbox but can be written as{{chem2\sandbox|O2(-)}}
too.{{chem2\sandbox|SO4(2-)}}
gives Template:Chem2\sandbox{{chem2\sandbox|S19(2+)}}
gives Template:Chem2\sandbox
Chemical equations can be written too. E.g.:
{{chem2\sandbox|2 S + 3 O2 + 2 H2O -> 2 H2SO4}}
gives Template:Chem2\sandbox{{chem2\sandbox|2S + 3O2 + 2H2O -> 2H2SO4}}
gives Template:Chem2\sandbox
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 Template:Chem2\sandbox{{chem2\sandbox|NH2RCHCO2H <-> NH3+RCHCO2-}}
gives Template:Chem2\sandbox
Hapticity and mu:
{{chem2\sandbox|W(CO)3(PiPr3)2(\h{2}\-H2)}}
gives Template:Chem2\sandbox{{chem2\sandbox|auto=yes|W(CO)3(PiPr3)2(\h{2}\-H2)}}
gives Template:Chem2\sandbox
Links: Use link=
<wiki page> or ordinary wiki link ([[
and ]]
), e.g.:
{{chem2\sandbox|link=Iron(III) chloride|FeCl3}}
gives Template:Chem2\sandbox{{chem2\sandbox|3[[hydrogen|H2]] + 2[[nitrogen|N2]] <-> 2[[ammonia|NH3]]}}
gives Template:Chem2\sandbox
Auto links: Automatic link elements: Use auto=
<something> (e.g. yes
):
{{chem2\sandbox|auto=yes|CH3CH2CH3CBrFCIClCH3}}
gives Template:Chem2\sandbox
- Examples
{{chem2\sandbox|[Cl4Re\qReCl4](2−)|}}
gives Template:Chem2\sandbox{{chem2\sandbox|[Cl4Re\qReCl4](2-)|}}
gives Template:Chem2\sandbox{{chem2\sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}
gives Template:Chem2\sandbox
{{chem2\sandbox|\\hallo}}
gives Template:Chem2\sandbox{{chem2\sandbox|H3CC\tCH <-> H2C\dC\dCH2}}
gives Template:Chem2\sandbox{{chem2\sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}
gives Template:Chem2\sandbox
- "H2O → H2O" is Template:Chem2\sandbox
- "H2O_{(l)} -> H2O_{(g)}" is Template:Chem2\sandbox
- "4 NH3 + 5 O2 → 4 NO + 6 H2O" is Template:Chem2\sandbox
- " 4 NH3 + 5 O2 → 4 NO + 6 H2O" is Template:Chem2\sandbox
- " 4NH3 + 5O2 → 4NO + 6H2O" is Template:Chem2\sandbox
- " 2Mn2(+)" is Template:Chem2\sandbox
- " 2Mn2(+) + 3H2O" is Template:Chem2\sandbox
- Mn– is Template:Chem2\sandbox
- Mn2(2-) is Template:Chem2\sandbox
- Mn2☃+ is Template:Chem2\sandbox, Mn2(2–) is Template:Chem2\sandbox, Mn2(2☃–) is Template:Chem2\sandbox
- Mn2(+) is Template:Chem2\sandbox
- Mn2+ is Template:Chem2\sandbox
- Mn2(-) is Template:Chem2\sandbox
- Mn2- is Template:Chem2\sandbox
- {{chem2\sandbox|C_{''n''}H_{2''n'' + 2}|}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C_{abc}|}} gives Template:Chem2\sandbox
- (chem gives C
nH
2n + 2) - {{chem2\sandbox|CoCl2*1.5H2O}} gives Template:Chem2\sandbox
- Mn22– is Template:Chem2\sandbox
- Cu2C2*H2O is Template:Chem2\sandbox
- Special
- {{chem2\sandbox|[Me2Al(\m{2}Me)]2}} gives Template:Chem2\sandbox
- {{chem2\sandbox|^{13}CO2}} gives Template:Chem2\sandbox
- {{chem2\sandbox|auto=yes|^{13}CO2}} gives Template:Chem2\sandbox
- {{chem2\sandbox|\h{5}(C5H5)2TiCl2}} gives Template:Chem2\sandbox
- {{chem2\sandbox|\h{5}\s(C5H5)}} gives Template:Chem2\sandbox
- {{chem2\sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}} is Template:Chem2\sandbox
- {{chem2\sandbox|RC(OR’)3}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C\\C}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C2*NH3}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C2*2NH3}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C1.2H3.5}} gives Template:Chem2\sandbox
- {{chem2\sandbox|12|6|C}} is Template:Chem2\sandbox
- {{chem2\sandbox|12|C}} is Template:Chem2\sandbox
- {{chem2\sandbox|CH3\i{13}CH2CH3}} is Template:Chem2\sandbox
- {{chem2\sandbox|\{\{abc\}\}}} is Template:Chem2\sandbox
- C2(μ\-C) is Template:Chem2\sandbox
- SO4(2-) is Template:Chem2\sandbox
- 2Mn2(2+) is Template:Chem2\sandbox
- CH3-CH2-OH is Template:Chem2\sandbox
- [ZnCl4]- is Template:Chem2\sandbox
- [ZnCl4](2-) is Template:Chem2\sandbox
- AUTO: ((H2O)5{CoCl2})2 is Template:Chem2\sandbox
- Si(OH)4 is Template:Chem2\sandbox
- AUTO: Cu2C2*H2O is Template:Chem2\sandbox
- Cu2C2*2H2O is Template:Chem2\sandbox
- CuSO*2H2O is Template:Chem2\sandbox
- CuSO4*15H2O is Template:Chem2\sandbox
- CuSO4(H2O)5 is Template:Chem2\sandbox
- H+ + OH- → H2O is Template:Chem2\sandbox
- H → O is Template:Chem2\sandbox
- ZxPo4 is Template:Chem2\sandbox Unknown element
- ((Na)Cl is Template:Chem2\sandbox To many (
- Si(OH))4 is Template:Chem2\sandbox To many )
- Si&☃Si is Template:Chem2\sandbox
- Template:Chem2\sandbox
- More
- {{chem2\sandbox|Cl2O6|link=dichlorine hexoxide}} is Template:Chem2\sandbox
- [Fe(Phen)(Phen)3](2+) is Template:Chem2\sandbox
- AUTO: [Fe(Phen)(Phen)3](2+) is Template:Chem2\sandbox
- {{chem2\sandbox|[C2O2](2+)}} is Template:Chem2\sandbox
- {{chem2\sandbox|link=Tomato|SI4}} is Template:Chem2\sandbox
- H2SO4+ is Template:Chem2\sandbox
- Mn- is Template:Chem2\sandbox
- Mn22+ is Template:Chem2\sandbox, Mn22- is Template:Chem2\sandbox,
- Mn(2+) is Template:Chem2\sandbox
- Mn2(+) is Template:Chem2\sandbox
- Mn(22-) is Template:Chem2\sandbox
- Mn3(22-) is Template:Chem2\sandbox
- Mn(22+) is Template:Chem2\sandbox
- Mn2(22+) is Template:Chem2\sandbox
- Mn2(2+) is Template:Chem2\sandbox
- Mn22(2+) is Template:Chem2\sandbox
- Examples
{{chem2\sandbox|[Cl4Re\qReCl4](2−)|}}
gives Template:Chem2\sandbox{{chem2\sandbox|[Cl4Re\qReCl4](2-)|}}
gives Template:Chem2\sandbox{{chem2\sandbox|NH2RCHCO2H <-> NH3+RCHCO2−}}
gives Template:Chem2\sandbox
{{chem2\sandbox|\\hallo}}
gives Template:Chem2\sandbox{{chem2\sandbox|H3CC\tCH <-> H2C\dC\dCH2}}
gives Template:Chem2\sandbox{{chem2\sandbox|4 NH3 + 5 O2 -> 4 NO + 6 H2O}}
gives Template:Chem2\sandbox
- "H2O → H2O" is Template:Chem2\sandbox
- "H2O_{(l)} -> H2O_{(g)}" is Template:Chem2\sandbox
- "4 NH3 + 5 O2 → 4 NO + 6 H2O" is Template:Chem2\sandbox
- " 4 NH3 + 5 O2 → 4 NO + 6 H2O" is Template:Chem2\sandbox
- " 4NH3 + 5O2 → 4NO + 6H2O" is Template:Chem2\sandbox
- " 2Mn2(+)" is Template:Chem2\sandbox
- " 2Mn2(+) + 3H2O" is Template:Chem2\sandbox
- Mn– is Template:Chem2\sandbox
- Mn2(2-) is Template:Chem2\sandbox
- Mn2☃+ is Template:Chem2\sandbox, Mn2(2–) is Template:Chem2\sandbox, Mn2(2☃–) is Template:Chem2\sandbox
- Mn2(+) is Template:Chem2\sandbox
- Mn2+ is Template:Chem2\sandbox
- Mn2(-) is Template:Chem2\sandbox
- Mn2- is Template:Chem2\sandbox
- {{chem2\sandbox|C_{''n''}H_{2''n'' + 2}|}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C_{abc}|}} gives Template:Chem2\sandbox
- (chem gives C
nH
2n + 2) - {{chem2\sandbox|CoCl2*1.5H2O}} gives Template:Chem2\sandbox
- Mn22– is Template:Chem2\sandbox
- Cu2C2*H2O is Template:Chem2\sandbox
- Special
- {{chem2\sandbox|[Me2Al(\m{2}Me)]2}} gives Template:Chem2\sandbox
- {{chem2\sandbox|^{13}CO2}} gives Template:Chem2\sandbox
- {{chem2\sandbox|auto=yes|^{13}CO2}} gives Template:Chem2\sandbox
- {{chem2\sandbox|\h{5}(C5H5)2TiCl2}} gives Template:Chem2\sandbox
- {{chem2\sandbox|\h{5}\s(C5H5)}} gives Template:Chem2\sandbox
- {{chem2\sandbox|CH2\dCH2\sCH2\sC\tCH\qMn}} is Template:Chem2\sandbox
- {{chem2\sandbox|RC(OR’)3}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C\\C}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C2*NH3}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C2*2NH3}} gives Template:Chem2\sandbox
- {{chem2\sandbox|C1.2H3.5}} gives Template:Chem2\sandbox
- {{chem2\sandbox|12|6|C}} is Template:Chem2\sandbox
- {{chem2\sandbox|12|C}} is Template:Chem2\sandbox
- {{chem2\sandbox|CH3\i{13}CH2CH3}} is Template:Chem2\sandbox
- {{chem2\sandbox|\{\{abc\}\}}} is Template:Chem2\sandbox
- C2(μ\-C) is Template:Chem2\sandbox
- SO4(2-) is Template:Chem2\sandbox
- 2Mn2(2+) is Template:Chem2\sandbox
- CH3-CH2-OH is Template:Chem2\sandbox
- [ZnCl4]- is Template:Chem2\sandbox
- [ZnCl4](2-) is Template:Chem2\sandbox
- AUTO: ((H2O)5{CoCl2})2 is Template:Chem2\sandbox
- Si(OH)4 is Template:Chem2\sandbox
- AUTO: Cu2C2*H2O is Template:Chem2\sandbox
- Cu2C2*2H2O is Template:Chem2\sandbox
- CuSO*2H2O is Template:Chem2\sandbox
- CuSO4*15H2O is Template:Chem2\sandbox
- CuSO4(H2O)5 is Template:Chem2\sandbox
- H+ + OH- → H2O is Template:Chem2\sandbox
- H → O is Template:Chem2\sandbox
- ZxPo4 is Template:Chem2\sandbox Unknown element
- ((Na)Cl is Template:Chem2\sandbox To many (
- Si(OH))4 is Template:Chem2\sandbox To many )
- Si&☃Si is Template:Chem2\sandbox
- Template:Chem2\sandbox
- More
- {{chem2\sandbox|Cl2O6|link=dichlorine hexoxide}} is Template:Chem2\sandbox
- [Fe(Phen)(Phen)3](2+) is Template:Chem2\sandbox
- AUTO: [Fe(Phen)(Phen)3](2+) is Template:Chem2\sandbox
- {{chem2\sandbox|[C2O2](2+)}} is Template:Chem2\sandbox
- {{chem2\sandbox|link=Tomato|SI4}} is Template:Chem2\sandbox
- H2SO4+ is Template:Chem2\sandbox
- Mn- is Template:Chem2\sandbox
- Mn22+ is Template:Chem2\sandbox, Mn22- is Template:Chem2\sandbox,
- Mn(2+) is Template:Chem2\sandbox
- Mn2(+) is Template:Chem2\sandbox
- Mn(22-) is Template:Chem2\sandbox
- Mn3(22-) is Template:Chem2\sandbox
- Mn(22+) is Template:Chem2\sandbox
- Mn2(22+) is Template:Chem2\sandbox
- Mn2(2+) is Template:Chem2\sandbox
- Mn22(2+) is Template:Chem2\sandbox
Line wrapping
Table 1: Incnis Mrsi original post demo (extended by DMacks) | ||
---|---|---|
Incnis Mrsi's original |
sandbox (nowrap) | current live (wraps) |
DMacks's additions |
||
Table 2 | |
---|---|
C2H5 OH
|
|
C2H5 OH
|
|
C2H5 OH
|
|
Attention! It is not {{chem2}}, it is HTML. |