Template:chem

From Wiktionary

Documentation icon Template documentation[view] [change] [history] [refresh]

This template is used to easily create chemical formulas.

Usage[change]

{{chem
| link = Page to link to for the given formula
| 1 = Atomic symbol(s)
| 2 = Number in subscript
}}

This template can accept up to 20 parameters (10 atomic symbols and 10 subscript numbers). All other parameters are optional.

Example[change]

{{chem|link=sulfuric acid|H|2|SO|4}} gives you:

H2SO4

TemplateData[change]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for chem

Template for adding chemical formulas easily.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

The atomic symbol(s) of the chemical formula.

Lineoptional
22

The subscript number.

Numberoptional
33

The atomic symbol(s) of the chemical formula.

Lineoptional
44

The subscript number.

Numberoptional
55

The atomic symbol(s) of the chemical formula.

Lineoptional
66

The subscript number.

Numberoptional
77

The atomic symbol(s) of the chemical formula.

Lineoptional
88

The subscript number.

Numberoptional
99

The atomic symbol(s) of the chemical formula.

Lineoptional
1010

The subscript number.

Numberoptional
1111

The atomic symbol(s) of the chemical formula.

Lineoptional
1212

The subscript number.

Numberoptional
1313

The atomic symbol(s) of the chemical formula.

Lineoptional
1414

The subscript number.

Numberoptional
1515

The atomic symbol(s) of the chemical formula.

Lineoptional
1616

The subscript number.

Numberoptional
1717

The atomic symbol(s) of the chemical formula.

Lineoptional
1818

The subscript number.

Numberoptional
1919

The atomic symbol(s) of the chemical formula.

Lineoptional
2020

The subscript number.

Numberoptional
Linklink

The page title for the chemical formula to link to.

Page nameoptional