Misplaced Pages

Template:Chem molar mass/format: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Chem molar mass Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 14:42, 22 May 2015 view sourceDePiep (talk | contribs)Extended confirmed users294,285 editsNo edit summary← Previous edit Revision as of 14:47, 22 May 2015 view source DePiep (talk | contribs)Extended confirmed users294,285 editsNo edit summaryNext edit →
Line 13: Line 13:


-->|yes=<!-- -->|yes=<!--
-->{{ntsh|1={{#ifexpr:{{#expr:{{formatnum:{{{value|0}}}|R}}}}>0 -->{{ntsh|1={{#if:{{{fixed|}}} |{{#invoke:String|match|s={{{fixed|}}} |pattern=^+ |plain=false |nomatch={{{fixed|0}}} }} |{{{value|0}}} }}<!--
-->}}
|{{#if:{{{fixed|}}}
|{{#invoke:String|match|s={{{fixed|}}} |pattern=^+ |plain=false |nomatch={{{fixed|0}}} }}<!--
-->|{{{value|0}}} }}
|FX:{{{fixed|}}}&lt;<!--
-->}}
|debug=yes}}AAA{{#if:{{{fixed|}}}|{{#invoke:String|match|s={{{fixed|0}}} |pattern=^+|plain=false|nomatch={{{fixed|999}}}}}|no_fixed_input}}ZZZ<!-- note: set debug=yes to show ntsh number. |debug=yes}}AAA{{#if:{{{fixed|}}}|{{#invoke:String|match|s={{{fixed|0}}} |pattern=^+|plain=false|nomatch={{{fixed|999}}}}}|no_fixed_input}}ZZZ<!-- note: set debug=yes to show ntsh number.
-->{{#ifexpr:{{#expr:{{formatnum:{{{value|0}}}|R}}}}>0 -->{{#ifexpr:{{#expr:{{formatnum:{{{value|0}}}|R}}}}>0

Revision as of 14:47, 22 May 2015

AAAno_fixed_inputZZZ}}

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 19,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

This template calculates the molecular mass (or molar mass) of a chemical compound. It is designed to be embedded in infoboxes {{Infobox drug}} and {{Chembox}}, but it can be used in-line just as well.

Rounding and uncertainty

(to be documented, 2019-02-09)

Parameters

Use chemical symbols to compose the molecular formula: {{Chem molar mass|H=2|O=1}} (for H2O) → AAAno_fixed_inputZZZ18.02}}

|round=
|unit=


The next parameters will always show:
|fixed= to enter a fixed (predefined) value+unit. It will overwrite any calculated value+unit.

|ref=<ref>some source</ref> will add the reference right after the unit.

|comment=Any textis added as a suffix, after a space and unedited (no brackets added etc.).

Example:

{{Chem molar mass|fixed=234.56 g·mol<sup>−1</sup>|ref=<ref>Some source</ref>|comment=My Comment}} → AAA234.56ZZZ234.56 g·mol}} My Comment

|sortable=yes, for use in sortable tables: will add a hidden sortable number, and omits the unit (see table below).

Blank parameter list

{{Chem molar mass
| round   =
| unit    =
| fixed   =
| ref     =
| comment =
| sortable=
}}
{{Chem molar mass
<!-- with 118 chemical symbols: -->|D= |H= |He= |Li= |Be= |B= |C= |N= |O= |F= |Ne= |Na= |Mg= |Al= |Si= |P= |S= |Cl= |Ar= |K= |Ca= |Sc= |Ti= |V= |Cr= |Mn= |Fe= |Co= |Ni= |Cu= |Zn= |Ga= |Ge= |As= |Se= |Br= |Kr= |Rb= |Sr= |Y= |Zr= |Nb= |Mo= |Tc= |Ru= |Rh= |Pd= |Ag= |Cd= |In= |Sn= |Sb= |Te= |I= |Xe= |Cs= |Ba= |La= |Ce= |Pr= |Nd= |Pm= |Sm= |Eu= |Gd= |Tb= |Dy= |Ho= |Er= |Tm= |Yb= |Lu= |Hf= |Ta= |W= |Re= |Os= |Ir= |Pt= |Au= |Hg= |Tl= |Pb= |Bi= |Po= |At= |Rn= |Fr= |Ra= |Ac= |Th= |Pa= |U= |Np= |Pu= |Am= |Cm= |Bk= |Cf= |Es= |Fm= |Md= |No= |Lr= |Rf= |Db= |Sg= |Bh= |Hs= |Mt= |Ds= |Rg= |Cn= |Nh= |Lv= |Mc= |Fl= |Ts= |Og=
| round   =
| unit    =
| fixed   =
| ref     =
| comment =
| sortable=
}}

Standard atomic weights used

Chem molar mass tests
Atomic number Element Molar mass Formal standard atomic weight s.a.w., formal short Note
Z calculated; g·mol Ar, standard (data) Ar, abridged and conventional
 
C9H8O4 AAAno_fixed_inputZZZ180.16}} aspirin, calculated from formula
C9H8O4 AAA180.157ZZZ180.157 g·mol}} fixed value from ...
|charge=+1 AAAno_fixed_inputZZZ}}
|charge=-1 AAAno_fixed_inputZZZ0.00054857990907}}
H AAAno_fixed_inputZZZ1.0074514200909}}
1 hydrogen H AAAno_fixed_inputZZZ1.008}} atomic mass for H, not molar mass for H2
] D AAAno_fixed_inputZZZ2.013553212745}} deuterium, H
2 helium He AAAno_fixed_inputZZZ4.002602}} 4.002602±0.000002 4.002602±0.000002
3 lithium Li AAAno_fixed_inputZZZ6.94}}
4 beryllium Be AAAno_fixed_inputZZZ9.0121831}} 9.0121831±0.0000005 9.0121831±0.0000005
5 boron B AAAno_fixed_inputZZZ10.81}}
6 carbon C AAAno_fixed_inputZZZ12.011}}
7 nitrogen N AAAno_fixed_inputZZZ14.007}}
8 oxygen O AAAno_fixed_inputZZZ15.999}}
9 fluorine F AAAno_fixed_inputZZZ18.998403163}} 18.998403162±0.000000005 18.998403162±0.000000005
10 neon Ne AAAno_fixed_inputZZZ20.1797}} 20.1797±0.0006 20.1797±0.0006
11 sodium Na AAAno_fixed_inputZZZ22.98976928}} 22.98976928±0.00000002 22.98976928±0.00000002
12 magnesium Mg AAAno_fixed_inputZZZ24.305}}
13 aluminium Al AAAno_fixed_inputZZZ26.9815384}} 26.9815384±0.0000003 26.9815384±0.0000003
14 silicon Si AAAno_fixed_inputZZZ28.085}}
15 phosphorus P AAAno_fixed_inputZZZ30.973761998}} 30.973761998±0.000000005 30.973761998±0.000000005
16 sulfur S AAAno_fixed_inputZZZ32.06}}
17 chlorine Cl AAAno_fixed_inputZZZ35.45}}
18 argon Ar AAAno_fixed_inputZZZ39.948}}
19 potassium K AAAno_fixed_inputZZZ39.0983}} 39.0983±0.0001 39.0983±0.0001
20 calcium Ca AAAno_fixed_inputZZZ40.078}} 40.078±0.004 40.078±0.004
21 scandium Sc AAAno_fixed_inputZZZ44.955908}} 44.955907±0.000004 44.955907±0.000004
22 titanium Ti AAAno_fixed_inputZZZ47.867}} 47.867±0.001 47.867±0.001
23 vanadium V AAAno_fixed_inputZZZ50.9415}} 50.9415±0.0001 50.9415±0.0001
24 chromium Cr AAAno_fixed_inputZZZ51.9961}} 51.9961±0.0006 51.9961±0.0006
25 manganese Mn AAAno_fixed_inputZZZ54.938043}} 54.938043±0.000002 54.938043±0.000002
26 iron Fe AAAno_fixed_inputZZZ55.845}} 55.845±0.002 55.845±0.002
27 cobalt Co AAAno_fixed_inputZZZ58.933194}} 58.933194±0.000003 58.933194±0.000003
28 nickel Ni AAAno_fixed_inputZZZ58.6934}} 58.6934±0.0004 58.6934±0.0004
29 copper Cu AAAno_fixed_inputZZZ63.546}} 63.546±0.003 63.546±0.003
30 zinc Zn AAAno_fixed_inputZZZ65.38}} 65.38±0.02 65.38±0.02
31 gallium Ga AAAno_fixed_inputZZZ69.723}} 69.723±0.001 69.723±0.001
32 germanium Ge AAAno_fixed_inputZZZ72.63}} 72.630±0.008 72.630±0.008
33 arsenic As AAAno_fixed_inputZZZ74.921595}} 74.921595±0.000006 74.921595±0.000006
34 selenium Se AAAno_fixed_inputZZZ78.971}} 78.971±0.008 78.971±0.008
35 bromine Br AAAno_fixed_inputZZZ79.904}}
36 krypton Kr AAAno_fixed_inputZZZ83.798}} 83.798±0.002 83.798±0.002
37 rubidium Rb AAAno_fixed_inputZZZ85.4678}} 85.4678±0.0003 85.4678±0.0003
38 strontium Sr AAAno_fixed_inputZZZ87.62}} 87.62±0.01 87.62±0.01
39 yttrium Y AAAno_fixed_inputZZZ88.90584}} 88.905838±0.000002 88.905838±0.000002
40 zirconium Zr AAAno_fixed_inputZZZ91.224}} 91.222±0.003 91.222±0.003
41 niobium Nb AAAno_fixed_inputZZZ92.90637}} 92.90637±0.00001 92.90637±0.00001
42 molybdenum Mo AAAno_fixed_inputZZZ95.95}} 95.95±0.01 95.95±0.01
43 technetium Tc AAAno_fixed_inputZZZ98}}
44 ruthenium Ru AAAno_fixed_inputZZZ101.07}} 101.07±0.02 101.07±0.02
45 rhodium Rh AAAno_fixed_inputZZZ102.90549}} 102.90549±0.00002 102.90549±0.00002
46 palladium Pd AAAno_fixed_inputZZZ106.42}} 106.42±0.01 106.42±0.01
47 silver Ag AAAno_fixed_inputZZZ107.8682}} 107.8682±0.0002 107.8682±0.0002
48 cadmium Cd AAAno_fixed_inputZZZ112.414}} 112.414±0.004 112.414±0.004
49 indium In AAAno_fixed_inputZZZ114.818}} 114.818±0.001 114.818±0.001
50 tin Sn AAAno_fixed_inputZZZ118.71}} 118.710±0.007 118.710±0.007
51 antimony Sb AAAno_fixed_inputZZZ121.76}} 121.760±0.001 121.760±0.001
52 tellurium Te AAAno_fixed_inputZZZ127.6}} 127.60±0.03 127.60±0.03 (Does not follow atomic number)
53 iodine I AAAno_fixed_inputZZZ126.90447}} 126.90447±0.00003 126.90447±0.00003 (Does not follow atomic number)
54 xenon Xe AAAno_fixed_inputZZZ131.293}} 131.293±0.006 131.293±0.006
55 caesium Cs AAAno_fixed_inputZZZ132.90545196}} 132.90545196±0.00000006 132.90545196±0.00000006
56 barium Ba AAAno_fixed_inputZZZ137.327}} 137.327±0.007 137.327±0.007
57 lanthanum La AAAno_fixed_inputZZZ138.90547}} 138.90547±0.00007 138.90547±0.00007
58 cerium Ce AAAno_fixed_inputZZZ140.116}} 140.116±0.001 140.116±0.001
59 praseodymium Pr AAAno_fixed_inputZZZ140.90766}} 140.90766±0.00001 140.90766±0.00001
60 neodymium Nd AAAno_fixed_inputZZZ144.242}} 144.242±0.003 144.242±0.003
61 promethium Pm AAAno_fixed_inputZZZ145}}
62 samarium Sm AAAno_fixed_inputZZZ150.36}} 150.36±0.02 150.36±0.02
63 europium Eu AAAno_fixed_inputZZZ151.964}} 151.964±0.001 151.964±0.001
64 gadolinium Gd AAAno_fixed_inputZZZ157.25}} 157.249±0.002 157.249±0.002
65 terbium Tb AAAno_fixed_inputZZZ158.925354}} 158.925354±0.000007 158.925354±0.000007
66 dysprosium Dy AAAno_fixed_inputZZZ162.5}} 162.500±0.001 162.500±0.001
67 holmium Ho AAAno_fixed_inputZZZ164.930328}} 164.930329±0.000005 164.930329±0.000005
68 erbium Er AAAno_fixed_inputZZZ167.259}} 167.259±0.003 167.259±0.003
69 thulium Tm AAAno_fixed_inputZZZ168.934218}} 168.934219±0.000005 168.934219±0.000005
70 ytterbium Yb AAAno_fixed_inputZZZ173.045}} 173.045±0.010 173.045±0.010
71 lutetium Lu AAAno_fixed_inputZZZ174.9668}} 174.96669±0.00005 174.96669±0.00005
72 hafnium Hf AAAno_fixed_inputZZZ178.49}} 178.486±0.006 178.486±0.006
73 tantalum Ta AAAno_fixed_inputZZZ180.94788}} 180.94788±0.00002 180.94788±0.00002
74 tungsten W AAAno_fixed_inputZZZ183.84}} 183.84±0.01 183.84±0.01
75 rhenium Re AAAno_fixed_inputZZZ186.207}} 186.207±0.001 186.207±0.001
76 osmium Os AAAno_fixed_inputZZZ190.23}} 190.23±0.03 190.23±0.03
77 iridium Ir AAAno_fixed_inputZZZ192.217}} 192.217±0.002 192.217±0.002
78 platinum Pt AAAno_fixed_inputZZZ195.084}} 195.084±0.009 195.084±0.009
79 gold Au AAAno_fixed_inputZZZ196.96657}} 196.966570±0.000004 196.966570±0.000004
80 mercury Hg AAAno_fixed_inputZZZ200.592}} 200.592±0.003 200.592±0.003
81 thallium Tl AAAno_fixed_inputZZZ204.38}}
82 lead Pb AAAno_fixed_inputZZZ207.2}}
83 bismuth Bi AAAno_fixed_inputZZZ208.9804}} 208.98040±0.00001 208.98040±0.00001
84 polonium Po AAAno_fixed_inputZZZ209}}
85 astatine At AAAno_fixed_inputZZZ210}}
86 radon Rn AAAno_fixed_inputZZZ222}}
87 francium Fr AAAno_fixed_inputZZZ223}}
88 radium Ra AAAno_fixed_inputZZZ226}}
89 actinium Ac AAAno_fixed_inputZZZ227}}
90 thorium Th AAAno_fixed_inputZZZ232.0377}} 232.0377±0.0004 232.0377±0.0004
91 protactinium Pa AAAno_fixed_inputZZZ231.03588}} 231.03588±0.00001 231.03588±0.00001
92 uranium U AAAno_fixed_inputZZZ238.02891}} 238.02891±0.00003 238.02891±0.00003
93 neptunium Np AAAno_fixed_inputZZZ237}}
94 plutonium Pu AAAno_fixed_inputZZZ244}}
95 americium Am AAAno_fixed_inputZZZ243}}
96 curium Cm AAAno_fixed_inputZZZ247}}
97 berkelium Bk AAAno_fixed_inputZZZ247}}
98 californium Cf AAAno_fixed_inputZZZ251}}
99 einsteinium Es AAAno_fixed_inputZZZ252}}
100 fermium Fm AAAno_fixed_inputZZZ257}}
101 mendelevium Md AAAno_fixed_inputZZZ258}}
102 nobelium No AAAno_fixed_inputZZZ259}}
103 lawrencium Lr AAAno_fixed_inputZZZ266}}
104 rutherfordium Rf AAAno_fixed_inputZZZ267}}
105 dubnium Db AAAno_fixed_inputZZZ268}}
106 seaborgium Sg AAAno_fixed_inputZZZ269}}
107 bohrium Bh AAAno_fixed_inputZZZ270}}
108 hassium Hs AAAno_fixed_inputZZZ270}}
109 meitnerium Mt AAAno_fixed_inputZZZ278}}
110 darmstadtium Ds AAAno_fixed_inputZZZ281}}
111 roentgenium Rg AAAno_fixed_inputZZZ282}}
112 copernicium Cn AAAno_fixed_inputZZZ285}}
113 nihonium Nh AAAno_fixed_inputZZZ286}}
114 flerovium Fl AAAno_fixed_inputZZZ289}}
115 moscovium Mc AAAno_fixed_inputZZZ290}}
116 livermorium Lv AAAno_fixed_inputZZZ293}}
117 tennessine Ts AAAno_fixed_inputZZZ294}}
118 oganesson Og AAAno_fixed_inputZZZ294}}

References

References

These references will appear in the article, but this list appears only on this page.
  1. Some source
  2. ^ Meija, Juris; et al. (2016). "Atomic weights of the elements 2013 (IUPAC Technical Report)". Pure and Applied Chemistry. 88 (3): 265–291. doi:10.1515/pac-2015-0305.
  3. NIST

Data sources (CIAAW)

Primarily, the atomic weights used here are defined by CIAAW :

Coplen, T.B.; et al. (2013). "Atomic weights of the elements 2013 (xls)". CIAAW. Retrieved 2015-05-26.
  • Some unstable elements can naturally occur, and so are listed (4 elements: Bi, Th, Pa, U)
  • Additional values are those of the most stable isotopes, as given in List of chemical elements (34 elements). This source is not supported by the CIAAW publications.

See also: "Atomic weights of the elements 2013 (IUPAC Technical Report)". Pure and Applied Chemistry. February 2016. pp. 265–291. doi:10.1515/pac-2015-0305. eISSN 1365-3075. ISSN 0033-4545. Retrieved 2016-12-29.

Embedding in a template

The template is designed to be embedded in a template like {{Drugbox}}. The molecular formula can be entered like ...|H=2|O=1, and these values then are passed through to this subtemplate, together with the other parameters like |round=.

Units

  • |unit=
1. When some |unit=kg/mol is used, it is added as is, always ("by the editor").
2. When |fixed= is used, no unit is added to this (could be in it already).
3. When |sortable= is used, no unit is added by the template (expected: put in top of table column).
4. When value is calculated, unit g/mol is added by template.
5. There is automatic no conversion from g to kg.

Uncertainty handling

  • Uncertainty is ignored.
Calcium: Ar(Ca) being 40.078(4) is read and calculated as 40.078(0)
  • Elements having interval notation are calculated by their conventional value.
Hydrogen: is calculated using conventional: 1.008(0)

Calculate cumulative uncertainties

Tracking categories

TemplateData

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

TemplateData for Chem molar mass

Parameter list (all element symbols, and template options)

No description.

Template parameters

ParameterDescriptionTypeStatus
HH

no description

Unknownoptional
DD

no description

Unknownoptional
LiLi

no description

Unknownoptional
BB

no description

Unknownoptional
CC

no description

Unknownoptional
NN

no description

Unknownoptional
OO

no description

Unknownoptional
MgMg

no description

Unknownoptional
SiSi

no description

Unknownoptional
SS

no description

Unknownoptional
ClCl

no description

Unknownoptional
BrBr

no description

Unknownoptional
TlTl

no description

Unknownoptional
HeHe

no description

Unknownoptional
BeBe

no description

Unknownoptional
FF

no description

Unknownoptional
NeNe

no description

Unknownoptional
NaNa

no description

Unknownoptional
AlAl

no description

Unknownoptional
PP

no description

Unknownoptional
KK

no description

Unknownoptional
ArAr

no description

Unknownoptional
CaCa

no description

Unknownoptional
ScSc

no description

Unknownoptional
TiTi

no description

Unknownoptional
VV

no description

Unknownoptional
CrCr

no description

Unknownoptional
MnMn

no description

Unknownoptional
FeFe

no description

Unknownoptional
NiNi

no description

Unknownoptional
CoCo

no description

Unknownoptional
CuCu

no description

Unknownoptional
ZnZn

no description

Unknownoptional
GaGa

no description

Unknownoptional
GeGe

no description

Unknownoptional
AsAs

no description

Unknownoptional
SeSe

no description

Unknownoptional
KrKr

no description

Unknownoptional
RbRb

no description

Unknownoptional
SrSr

no description

Unknownoptional
YY

no description

Unknownoptional
ZrZr

no description

Unknownoptional
NbNb

no description

Unknownoptional
MoMo

no description

Unknownoptional
RuRu

no description

Unknownoptional
RhRh

no description

Unknownoptional
PdPd

no description

Unknownoptional
AgAg

no description

Unknownoptional
CdCd

no description

Unknownoptional
InIn

no description

Unknownoptional
SnSn

no description

Unknownoptional
SbSb

no description

Unknownoptional
II

no description

Unknownoptional
TeTe

no description

Unknownoptional
XeXe

no description

Unknownoptional
CsCs

no description

Unknownoptional
BaBa

no description

Unknownoptional
LaLa

no description

Unknownoptional
CeCe

no description

Unknownoptional
PrPr

no description

Unknownoptional
NdNd

no description

Unknownoptional
SmSm

no description

Unknownoptional
EuEu

no description

Unknownoptional
GdGd

no description

Unknownoptional
TbTb

no description

Unknownoptional
DyDy

no description

Unknownoptional
HoHo

no description

Unknownoptional
ErEr

no description

Unknownoptional
TmTm

no description

Unknownoptional
YbYb

no description

Unknownoptional
LuLu

no description

Unknownoptional
HfHf

no description

Unknownoptional
TaTa

no description

Unknownoptional
WW

no description

Unknownoptional
ReRe

no description

Unknownoptional
OsOs

no description

Unknownoptional
IrIr

no description

Unknownoptional
PtPt

no description

Unknownoptional
AuAu

no description

Unknownoptional
HgHg

no description

Unknownoptional
PbPb

no description

Unknownoptional
BiBi

no description

Unknownoptional
PaPa

no description

Unknownoptional
ThTh

no description

Unknownoptional
UU

no description

Unknownoptional
TcTc

no description

Unknownoptional
PmPm

no description

Unknownoptional
PoPo

no description

Unknownoptional
AtAt

no description

Unknownoptional
RnRn

no description

Unknownoptional
FrFr

no description

Unknownoptional
RaRa

no description

Unknownoptional
AcAc

no description

Unknownoptional
NpNp

no description

Unknownoptional
PuPu

no description

Unknownoptional
AmAm

no description

Unknownoptional
CmCm

no description

Unknownoptional
BkBk

no description

Unknownoptional
CfCf

no description

Unknownoptional
EsEs

no description

Unknownoptional
FmFm

no description

Unknownoptional
MdMd

no description

Unknownoptional
NoNo

no description

Unknownoptional
LrLr

no description

Unknownoptional
RfRf

no description

Unknownoptional
DbDb

no description

Unknownoptional
SgSg

no description

Unknownoptional
BhBh

no description

Unknownoptional
HsHs

no description

Unknownoptional
MtMt

no description

Unknownoptional
DsDs

no description

Unknownoptional
RgRg

no description

Unknownoptional
CnCn

no description

Unknownoptional
NhNh

no description

Unknownoptional
FlFl

no description

Unknownoptional
McMc

no description

Unknownoptional
LvLv

no description

Unknownoptional
TsTs

no description

Unknownoptional
OgOg

no description

Unknownoptional
roundround

no description

Unknownoptional
unitunit

no description

Unknownoptional
refref

no description

Unknownoptional
commentcomment

no description

Unknownoptional
fixedfixed

no description

Unknownoptional
sortablesortable

no description

Unknownoptional

See also

{{Chem molar mass/sandbox}} -- tests sandbox template too (compare values).
The above documentation is transcluded from Template:Chem molar mass/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Subpages of this template.


Categories: