Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Template:Chem2





Template  

Talk  



Language  

Watch  

View source  





{{chem2}} is a template used to format a chemical formulaorequation.

Use

Formula punctuation

Symbol Gives Example Output
\s {{chem2|CH3\sCH3}} CH3−CH3
\d = {{chem2|CH2\dCH2}} CH2=CH2
\t {{chem2|HC\tCH}} HC≡CH
\q {{chem2|[Cl4Re\qReCl4](2−)}} [Cl4Re≣ReCl4]2−
\- - {{chem2|A\-B}} A-B
\\ \ {{chem2|C\\D}} C\D
\h η {{chem2|\h}} η
\h{1} η1- {{chem2|\h{1} |}}

§ {}

η1-
\m{1} μ1- {{chem2|\m{1} |}} μ1-
-> {{chem2|2H2 + O2 -> 2H2O}}

§ {}

2H2 + O2 → 2H2O
<-> {{chem2|K<->L}} K ⇌ L
* · {{chem2|CoCl2*6H2O}} CoCl2·6H2O
\* * {{chem2|Cp\*2Fe}} Cp*2Fe
_{} subscript {{chem2|C_{''n''}H_{2''n''+2} }}

§ {}

CnH2n+2
^{} superscript {{chem2|^{13}CH4}} 13CH4
&nabla; {{chem2|&nabla;}}
( ) ( ) {{chem2|R\sCH(OH)CN}} R−CH(OH)CN

end }-bracket issue

When input ends correctly with a }-bracket, like with A_{x}H_{1-x}, the final }-brackets are technically mixed up:

{{chem2|A_{x}H_{1-x}}}AxH_{1x} Red XN

The closing bracket {..} of input and end of template brackets }}.

add empty pipe: {{chem2|..{..}|}} (empty parameter #2)
add parameters numbers 1 and 2 (empty): {{chem2|1=..{..}|2=}}
add a space: {{chem2|..{..} }}
Result: {{chem2|A_{x}H_{1-x}|}}AxH1−x Green tickY

Formulas, charges, equations

Formulas (without charge) are just written:

Charges are written inside parentheses:

Charges +1 and −1 can be written plain:

same as {{chem2|O2(-)}}O2

Chemical equations:

The arrows can be written as -> or just . All characters (and unicode markup) are valid input except \, = (Mediawiki use it), _ and - (endash etc.)

Hapticity and mu:

As of March 2023, {{chem2}} should not be used inside wikilinks; this can cause erratic failures to properly render sub/superscripts in other invocations on the same page. Instead, use the following options.

Link the whole formula with |link=<wiki pagename>:

Or use wikilink brackets in input like [[ammonia|NH3]]:

Use |auto=yes to link from the first occurrence of each element symbol, and some functional-group symbols such as Ph

Some common groups are recognized and linked if you wikilink them using [[ ]]

You can link to any article even if chem2 is unaware of it:

To change the default link:

All recognised symbols and codes

All link targets recognised by {{chem2}} (elements, general codes, functional groups)

Elements and element-style symbols

These may be automatically linked or used as if they were redirects.

Symbol Link target
Ac Actinium
Ag Silver
Al Aluminium
Am Americium
Ar Argon
As Arsenic
At Astatine
Au Gold
B Boron
Ba Barium
Be Beryllium
Bh Bohrium
Bi Bismuth
Bk Berkelium
Bn Benzyl group
Br Bromine
Bz Benzoyl group
C Carbon
Ca Calcium
Cd Cadmium
Ce Cerium
Cf Californium
Cl Chlorine
Cm Curium
Co Cobalt
Cp Copernicium
Cr Chromium
Cs Caesium
Cu Copper
D Deuterium
Db Dubnium
Ds Darmstadtium
Dy Dysprosium
Er Erbium
Es Einsteinium
Et Ethyl group
Eu Europium
F Fluorine
Fe Iron
Fl Flerovium
Fm Fermium
Fr Francium
Ga Gallium
Gd Gadolinium
Ge Germanium
H Hydrogen
He Helium
Hf Hafnium
Hg Mercury (element)
Ho Holmium
Hs Hassium
I Iodine
In Indium
Ir Iridium
K Potassium
Kr Krypton
La Lanthanum
Li Lithium
Ln Lanthanide
Lr Lawrencium
Lu Lutetium
Lv Livermorium
Mc Moscovium
Md Mendelevium
Mg Magnesium
Mn Manganese
Mo Molybdenum
Mt Meitnerium
N Nitrogen
Na Sodium
Nb Niobium
Nd Neodymium
Ne Neon
Nh Nihonium
Ni Nickel
No Nobelium
Np Neptunium
Nu Nucleophile
O Oxygen
Og Oganesson
Os Osmium
P Phosphorus
Pa Protactinium
Pb Lead
Pd Palladium
Ph Phenyl group
Pm Promethium
Po Polonium
Pr Praseodymium
Pt Platinum
Pu Plutonium
R Substituent
Ra Radium
Rb Rubidium
Re Rhenium
Rf Rutherfordium
Rg Roentgenium
Rh Rhodium
Rn Radon
Ru Ruthenium
S Sulfur
Sb Antimony
Sc Scandium
Se Selenium
Sg Seaborgium
Si Silicon
Sm Samarium
Sn Tin
Sr Strontium
T Tritium
Ta Tantalum
Tb Terbium
Tc Technetium
Te Tellurium
Tf Trifluoromethylsulfonyl group
Th Thorium
Ti Titanium
Tl Thallium
Tm Thulium
Ts Tennessine
U Uranium
V Vanadium
W Tungsten
X Halogen
Xe Xenon
Y Yttrium
Yb Ytterbium
Zn Zinc
Zr Zirconium

Groups

These must be linked manually; they work as if they were redirects.

Symbol Link target
CH3 Methyl group
CO3 Carbonate
COOH Carboxyl group
ClO Hypochlorite
ClO2 Chlorite
ClO3 Chlorate
ClO4 Perchlorate
H2O Water of crystallization
H3O Hydronium
NH2 Amine group
NH4 Ammonium
NO3 Nitrate
PO3 Phosphite
PO4 Phosphate
SH Thiol group
SO3 Sulfite
SO4 Sulfate
SeH Selenol group

Examples and tests

(The first『→』in each example is not part of the output; it separates the example from its output.)







Special






More

Chem vs chem2

Predefined codes (groups etc.)

Predefined codes
code target article {{chem2|code}} type note
A. Groups etc with element-like names
Bz Benzoyl group Bz A: wl |auto=yes
Et Ethyl group Et A: wl |auto=yes
Ln Lanthanide Ln A: wl |auto=yes
Nu Nucleophile Nu A: wl |auto=yes
Ph Phenyl group Ph A: wl |auto=yes
R Substituent R A: wl |auto=yes
T Tritium T A: wl |auto=yes
Tf Trifluoromethylsulfonyl group Tf A: wl |auto=yes
X Halogen X A: wl |auto=yes
B. Groups which are redirected from their normal target if wikilinked; never autolinked.
CH3 Methyl group CH3 B: wl |..[[code]]..
CO3 Carbonate CO3 B: wl |..[[code]]..
COOH Carboxyl group COOH B: wl |..[[code]]..
ClO Hypochlorite ClO B: wl |..[[code]]..
ClO2 Chlorite ClO2 B: wl |..[[code]]..
ClO3 Chlorate ClO3 B: wl |..[[code]]..
ClO4 Perchlorate ClO4 B: wl |..[[code]]..
H2O Water of crystallization H2O B: wl |..[[code]]..
H3O Hydronium H3O B: wl |..[[code]]..
NH2 Amine group NH2 B: wl |..[[code]]..
NH4 Ammonium NH4 B: wl |..[[code]]..
NO3 Nitrate NO3 B: wl |..[[code]]..
PO3 Phosphite PO3 B: wl |..[[code]]..
PO4 Phosphate PO4 B: wl |..[[code]]..
SH Thiol group SH B: wl |..[[code]]..
SO3 Sulfite SO3 B: wl |..[[code]]..
SO4 Sulfate SO4 B: wl |..[[code]]..
SeH Selenol group SeH B: wl |..[[code]]..

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Chem2 in articles based on its TemplateData.

TemplateData for Chem2

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
autoauto

no description

Unknownoptional
linklink

no description

Unknownoptional

Tracking

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Chem2&oldid=1145859494"
 



Last edited on 21 March 2023, at 11:17  


Languages

 


العربية

 / Bân-lâm-gú

Български
Bosanski
Català
Ελληνικά
Español
Euskara
فارسی
Galego


Bahasa Indonesia
Kurdî
Македонски



Oʻzbekcha / ўзбекча

Polski
Português

Simple English
Slovenščina
کوردی
Српски / srpski
Sunda
ி


Türkçe
Tiếng Vit


 

Wikipedia


This page was last edited on 21 March 2023, at 11:17 (UTC).

Content is available under CC BY-SA 4.0 unless otherwise noted.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop