|
|
| 第91行: |
第91行: |
|
| |
|
| ===Wiki linking=== | | ===Wiki linking=== |
| {|class="wikitable" style="width:100%"
| |
| ! {{tlx|chem}}
| |
| |{{markupv|width=100%|style="vertical-align:middle"
| |
| |m=<nowiki>25 {{chem|link=oxygen|O|2}} + 2 {{chem|link=octane|C|8|H|18}} → 16 {{chem|link=Carbon dioxide|C|O|2}} + 9 {{chem|link=water|H|2|O}}</nowiki>
| |
| |r=25 {{chem|link=oxygen|O|2}} + 2 {{chem|link=octane|C|8|H|18}} → 16 {{chem|link=Carbon dioxide|C|O|2}} + 9 {{chem|link=water|H|2|O}}
| |
| }}
| |
| |-
| |
| ! {{tlx|chem2}}
| |
| |{{markupv|width=100%|style="vertical-align:middle"
| |
| |m=<nowiki>{{chem2|25 [[oxygen|O2]] + 2 [[octane|C8H18]] -> 16 [[Carbon dioxide|CO2]] + 18 [[water|H2O]]}}</nowiki>
| |
| |r={{chem2|25 [[oxygen|O2]] + 2 [[octane|C8H18]] -> 16 [[Carbon dioxide|CO2]] + 18 [[water|H2O]]}}
| |
| }}
| |
| |}
| |
|
| |
|
| ===(Italic) Math=== | | ===(Italic) Math=== |
2020年2月20日 (四) 14:55的版本
有关显示化学符号的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
Oxidation states
Greek characters
Isotopes
States
States subscripting is not IUPAC recommendation.
Reaction arrows
模板:Markup
Comparison of arrow symbols
模板:Markup
<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.
模板:-