使用方法/chem
来自康健生活
< 使用方法
有关显示化学符号的MediaWiki 解析器扩展标签 <ce>(重命名为<chem>),显示公式 Chemistry”。
Chemistry
有三种方式呈现在使用的化学式和化学方程式:
- <chem>...</chem>(是已弃用的别名)<ce>...</ce>
- <math chem>...</math>
- {{chem}} 和 {{chem2}},需要模板支持
Molecular and condensed formula
| mhchem | Equivalent HTML | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
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
| mhchem | Equivalent {{chem}} and HTML
|
|---|---|
Isotopes
| mhchem | Equivalent {{chem}} and HTML
|
|---|---|
States
States subscripting is not IUPAC recommendation.
| mhchem | {{chem}}
|
|---|---|
| mhchem | 模板:Markupv |
|---|---|
{{chem}}
|
模板:Markupv |
{{chem2}}
|
模板:Markupv |
| Equivalent HTML | 模板:Markupv |
Reaction arrows
Comparison of arrow symbols
Further examples using ordinary LaTeX tags
<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. 模板:-
No categories