有关显示化学符号的MediaWiki 解析器扩展标签 <ce>(重命名为<chem>),显示公式 Chemistry”。
Chemistry
有三种方式呈现在使用的化学式和化学方程式:
- <chem>...</chem>(是已弃用的别名)<ce>...</ce>
- <math chem>...</math>
- {{chem}} 和 {{chem2}},需要模板支持
Warning:
请注意,MediaWiki中的mhchem支持仍然存在主要问题。通过启用扩展功能并使用格式化单个项目,可以解决某些问题。例如, <math chem>\ce
模板:Leftrightflex
| mhchem |
Equivalent HTML
|
| Markup |
Renders as
|
| <chem>H2O</chem> |
|
| <chem>Sb2O3</chem> |
|
| <chem>(NH4)2S</chem> |
|
|
| Markup |
Renders as
|
| H<sub>2</sub>O |
H2O
|
| Sb<sub>2</sub>O<sub>3</sub> |
Sb2O3
|
| (NH<sub>4</sub>)<sub>2</sub>S |
(NH4)2S
|
|
Bonds
| Markup |
Renders as
|
| <chem>C6H5-CHO</chem> |
|
| <chem>A-B=C#D</chem> |
|
Charges
| <chem>H+</chem> |
|
| <chem>NO3-</chem> |
|
| <chem>CrO4^2-</chem> |
|
| <chem>AgCl2-</chem> |
|
| <chem>[AgCl2]-</chem> |
|
| <chem>Y^99+</chem> |
|
| <chem>Y^{99+}+</chem> |
|
Addition compounds and stoichiometric numbers
| <chem>MgSO4.7H2O</chem> |
|
| <chem>KCr(SO4)2*12H2O</chem> |
|
| <chem>CaSO4.1/2H2O + 1\!1/2 H2O -> CaSO4.2H2O</chem> |
|
| <chem>25/2 O2 + C8H18 -> 8 CO2 + 9 H2O</chem> |
|
Wiki linking
(Italic) Math
| <chem>{C_\mathit{x}H_\mathit{y}} + \mathit{z}O2 -> {\mathit{x}CO2} + \frac{\mathit{y}}{2}H2O</chem> |
|
Oxidation states
| <chem>Fe^{II}Fe^{III}2O4</chem> |
|
Greek characters
| <chem>\mu-Cl</chem> |
|
| <chem>[Fe(\eta^5-C5H5)2]</chem> |
|
Isotopes
| <chem>^{227}_{90}Th+</chem> |
|
| <chem>^0_{-1}n-</chem> |
|
States
States subscripting is not IUPAC recommendation.
| <chem>H2_{(aq)}</chem> |
|
| <chem>CO3^{2-}(aq)</chem> |
|
Precipitate
| <chem>Ba^2+ + SO4^{2-} -> BaSO4(v)</chem> |
|
Reaction arrows
| <chem>A ->B</chem>
|
|
| <chem>A <- B</chem>
|
|
| <chem>A <=> B</chem>
|
|
| <chem>A <=>> B</chem>
|
|
| <chem>A <<=> B</chem>
|
|
<chem>A ->[{}\atop x] B</chem>
|
|
<chem>A ->[\text{text above}][\text{text below}] B</chem>
|
|
<chem>A ->[{}\atop\ce{+H2O}] B</chem>
|
|
Comparison of arrow symbols
| <math>\rightarrow</math>
|
|
| <math>\rightleftarrows</math>
|
|
| <math>\rightleftharpoons</math>
|
|
| <math>\leftrightarrow</math>
|
|
| <math>\longrightarrow</math>
<chem>-></chem>
|
|
| <math>\rightleftharpoons</math>
<chem><=></chem>
|
|
| <math>\longleftrightarrow</math>
<chem><-></chem>
|
|
<math chem>\begin{align}
\overbrace{\ce{2Fe3O4}}^{\text{magnetite}} + \ce{1/2 O2 ->}\ &{\color{Brown}\overbrace{\ce{3(\lambda{-}Fe2O3)}}^{\text{maghemite}}}\\
\underbrace{\ce{2Fe3O4}}_{\text{magnetite}} + \ce{1/2 O2 ->}\ &{\color{Red}\underbrace{\ce{3(\alpha{-}Fe2O3)}}_{\text{hematite}}}
\end{align}</math>
To align the equations or color them, use 模板:Xtag and 模板:Code.
模板:-