Template:Chemical formula

From Safer nicotine wiki

Template documentation[view] [edit] [history] [purge]

Usage

Use the odd parameters for atoms (automatically linked) or miscellaneous text, and the even parameters for number of atoms. For example:

  • {{Chemical formula|H|2|O}} produces: H2O
  • {{Chemical formula|H|2|S||O|4}} produces: H2SO4

Some of the miscellaneous text (like common polyatomic anions) are also automatically linked if included in a single parameter. For example:

  • {{Chemical formula|H2O}} produces: H2O
  • {{Chemical formula|Ca||SO4}} produces: CaSO4

Here is the full table:

Type Symbol[nb 1] Linked page Notes
Atomic series X Halogen
Atomic series Ng Noble gas
Atomic series Ln Lanthanide
Atomic series Nu Nucleophile
Isotope D Deuterium
Isotope T Tritium
Molecule H2O Properties of water
Molecule CO2 Carbon dioxide
Molecule CH4 Methane
Molecule O2 Dioxygen
Group of a molecule R R group
Group of a molecule Ph Phenyl group
Group of a molecule Bn Benzyl group
Group of a molecule Bz Benzoyl group
Group of a molecule Et Ethyl group
Group of a molecule Me Methyl group
CH3
Group of a molecule NH2 Amine group
Group of a molecule OH Hydroxy group
Group of a molecule SH Thiol group
Group of a molecule SeH Selenol group
Group of a molecule Teh Tellurol group
Group of a molecule COOH Carboxyl group
Group of a molecule Tf Trifluoromethylsulfonyl group
Anion CO3 Carbonate
Anion PO4 Phosphate could theoretically refer to tetrapolonium (Po4), but that is not likely
Anion SO4 Sulfate
Anion SO3 Sulfite
Anion NO3 Nitrate could theoretically refer to trinobelium (No3), but that is not likely
Anion PO3 Phosphite could theoretically refer to tripolonium (Po3), but that is not likely
Anion ClO4 Perchlorate
Anion ClO4 Chlorate
Anion ClO4 Chlorite
Anion ClO Hypochlorite
Cation NH4 Ammonium
Cation H3O Hydronium
Exotic matter Ps Positronium
Exotic matter Pn Protonium a bound proton and an anti-proton; the hydrogen isotope is protium
Exotic matter Mu Muonium
  1. ^ The inputs during usage are all-lowercase, and the numbers are not subscripted.

Template data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Chemical formula

Extended content

No description.

Template parameters

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
22

no description

Unknownoptional
33

no description

Unknownoptional
44

no description

Unknownoptional
55

no description

Unknownoptional
66

no description

Unknownoptional
77

no description

Unknownoptional
88

no description

Unknownoptional
99

no description

Unknownoptional
1010

no description

Unknownoptional
1111

no description

Unknownoptional
1212

no description

Unknownoptional
1313

no description

Unknownoptional
1414

no description

Unknownoptional
1515

no description

Unknownoptional
1616

no description

Unknownoptional
1717

no description

Unknownoptional
1818

no description

Unknownoptional
1919

no description

Unknownoptional
2020

no description

Unknownoptional
2121

no description

Unknownoptional
2222

no description

Unknownoptional
2323

no description

Unknownoptional
2424

no description

Unknownoptional
2525

no description

Unknownoptional
2626

no description

Unknownoptional
2727

no description

Unknownoptional
2828

no description

Unknownoptional
2929

no description

Unknownoptional
3030

no description

Unknownoptional
3131

no description

Unknownoptional
3232

no description

Unknownoptional
3333

no description

Unknownoptional
3434

no description

Unknownoptional
3535

no description

Unknownoptional
3636

no description

Unknownoptional
3737

no description

Unknownoptional
3838

no description

Unknownoptional
3939

no description

Unknownoptional
4040

no description

Unknownoptional

See also

  • Template:Chem, which allows providing charge, atomic number and mass number, but doesn't automatically link the elements or common formulas
  • Template:Chem2, which has same functionality e.g. {{chem2|auto=yes|H2SO4}} gives H
    2
    SO
    4
Cookies help us deliver our services. By using our services, you agree to our use of cookies.