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 15:38, 25 May 2015 view sourceDePiep (talk | contribs)Extended confirmed users294,285 editsNo edit summary← Previous edit Revision as of 15:42, 25 May 2015 view source DePiep (talk | contribs)Extended confirmed users294,285 editsNo edit summaryNext edit →
Line 1: Line 1:
r:>{{{round|r}}}-{{{unit|u}}}-{{{sortable|s}}}&lt;<!-- r:>{{{round|r}}}-{{{unit|u}}}-{{{sortable|s}}}&lt;<!--
-->{{yesno |{{{sortable|no}}}<!-- -->{{yesno |{{{sortable|no}}}<!--
-->|no=N<!-- -->|no=<!--
-->{{#ifexpr:{{#expr:{{formatnum:{{{value|0}}}|R}}}}>0 -->{{#ifexpr:{{#expr:{{formatnum:{{{value|0}}}|R}}}}>0
|{{#if:{{{fixed|}}} |{{{fixed|}}}<!-- |{{#if:{{{fixed|}}} |{{{fixed|}}}<!--
Line 17: Line 17:
|{{{fixed|}}} }}<!-- |{{{fixed|}}} }}<!--


-->|yes=Y<!-- -->|yes=<!--
-->{{ntsh|1={{#if:{{{fixed|}}} |{{#invoke:String|match|s={{{fixed|}}} |pattern=^+ |plain=false |nomatch={{{fixed|0}}} }} |{{{value|0}}}<!-- -->{{ntsh|1={{#if:{{{fixed|}}} |{{#invoke:String|match|s={{{fixed|}}} |pattern=^+ |plain=false |nomatch={{{fixed|0}}} }} |{{{value|0}}}<!--
-->|debug=no}} }}<!-- set debug=yes to show the hidden sortkey number. -->|debug=no}} }}<!-- set debug=yes to show the hidden sortkey number.

Revision as of 15:42, 25 May 2015

r:>r-u-s<

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) → r:>smart--no<Formatting error: invalid input when rounding g·mol

|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}} → r:>smart--no<234.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 r:>smart--yes<Formatting error: invalid input when rounding aspirin, calculated from formula
C9H8O4 r:>no--yes<180.157 g·mol fixed value from ...
|charge=+1 r:>no--yes<
|charge=-1 r:>no--yes<0.00054857990907
H r:>no--yes<1.0074514200909
1 hydrogen H r:>no--yes<1.008 atomic mass for H, not molar mass for H2
] D r:>no--yes<2.013553212745 deuterium, H
2 helium He r:>no--yes<4.002602 4.002602±0.000002 4.002602±0.000002
3 lithium Li r:>no--yes<6.94
4 beryllium Be r:>no--yes<9.0121831 9.0121831±0.0000005 9.0121831±0.0000005
5 boron B r:>no--yes<10.81
6 carbon C r:>no--yes<12.011
7 nitrogen N r:>no--yes<14.007
8 oxygen O r:>no--yes<15.999
9 fluorine F r:>no--yes<18.998403163 18.998403162±0.000000005 18.998403162±0.000000005
10 neon Ne r:>no--yes<20.1797 20.1797±0.0006 20.1797±0.0006
11 sodium Na r:>no--yes<22.98976928 22.98976928±0.00000002 22.98976928±0.00000002
12 magnesium Mg r:>no--yes<24.305
13 aluminium Al r:>no--yes<26.9815384 26.9815384±0.0000003 26.9815384±0.0000003
14 silicon Si r:>no--yes<28.085
15 phosphorus P r:>no--yes<30.973761998 30.973761998±0.000000005 30.973761998±0.000000005
16 sulfur S r:>no--yes<32.06
17 chlorine Cl r:>no--yes<35.45
18 argon Ar r:>no--yes<39.948
19 potassium K r:>no--yes<39.0983 39.0983±0.0001 39.0983±0.0001
20 calcium Ca r:>no--yes<40.078 40.078±0.004 40.078±0.004
21 scandium Sc r:>no--yes<44.955908 44.955907±0.000004 44.955907±0.000004
22 titanium Ti r:>no--yes<47.867 47.867±0.001 47.867±0.001
23 vanadium V r:>no--yes<50.9415 50.9415±0.0001 50.9415±0.0001
24 chromium Cr r:>no--yes<51.9961 51.9961±0.0006 51.9961±0.0006
25 manganese Mn r:>no--yes<54.938043 54.938043±0.000002 54.938043±0.000002
26 iron Fe r:>no--yes<55.845 55.845±0.002 55.845±0.002
27 cobalt Co r:>no--yes<58.933194 58.933194±0.000003 58.933194±0.000003
28 nickel Ni r:>no--yes<58.6934 58.6934±0.0004 58.6934±0.0004
29 copper Cu r:>no--yes<63.546 63.546±0.003 63.546±0.003
30 zinc Zn r:>no--yes<65.38 65.38±0.02 65.38±0.02
31 gallium Ga r:>no--yes<69.723 69.723±0.001 69.723±0.001
32 germanium Ge r:>no--yes<72.63 72.630±0.008 72.630±0.008
33 arsenic As r:>no--yes<74.921595 74.921595±0.000006 74.921595±0.000006
34 selenium Se r:>no--yes<78.971 78.971±0.008 78.971±0.008
35 bromine Br r:>no--yes<79.904
36 krypton Kr r:>no--yes<83.798 83.798±0.002 83.798±0.002
37 rubidium Rb r:>no--yes<85.4678 85.4678±0.0003 85.4678±0.0003
38 strontium Sr r:>no--yes<87.62 87.62±0.01 87.62±0.01
39 yttrium Y r:>no--yes<88.90584 88.905838±0.000002 88.905838±0.000002
40 zirconium Zr r:>no--yes<91.224 91.222±0.003 91.222±0.003
41 niobium Nb r:>no--yes<92.90637 92.90637±0.00001 92.90637±0.00001
42 molybdenum Mo r:>no--yes<95.95 95.95±0.01 95.95±0.01
43 technetium Tc r:>no--yes<98
44 ruthenium Ru r:>no--yes<101.07 101.07±0.02 101.07±0.02
45 rhodium Rh r:>no--yes<102.90549 102.90549±0.00002 102.90549±0.00002
46 palladium Pd r:>no--yes<106.42 106.42±0.01 106.42±0.01
47 silver Ag r:>no--yes<107.8682 107.8682±0.0002 107.8682±0.0002
48 cadmium Cd r:>no--yes<112.414 112.414±0.004 112.414±0.004
49 indium In r:>no--yes<114.818 114.818±0.001 114.818±0.001
50 tin Sn r:>no--yes<118.71 118.710±0.007 118.710±0.007
51 antimony Sb r:>no--yes<121.76 121.760±0.001 121.760±0.001
52 tellurium Te r:>no--yes<127.6 127.60±0.03 127.60±0.03 (Does not follow atomic number)
53 iodine I r:>no--yes<126.90447 126.90447±0.00003 126.90447±0.00003 (Does not follow atomic number)
54 xenon Xe r:>no--yes<131.293 131.293±0.006 131.293±0.006
55 caesium Cs r:>no--yes<132.90545196 132.90545196±0.00000006 132.90545196±0.00000006
56 barium Ba r:>no--yes<137.327 137.327±0.007 137.327±0.007
57 lanthanum La r:>no--yes<138.90547 138.90547±0.00007 138.90547±0.00007
58 cerium Ce r:>no--yes<140.116 140.116±0.001 140.116±0.001
59 praseodymium Pr r:>no--yes<140.90766 140.90766±0.00001 140.90766±0.00001
60 neodymium Nd r:>no--yes<144.242 144.242±0.003 144.242±0.003
61 promethium Pm r:>no--yes<145
62 samarium Sm r:>no--yes<150.36 150.36±0.02 150.36±0.02
63 europium Eu r:>no--yes<151.964 151.964±0.001 151.964±0.001
64 gadolinium Gd r:>no--yes<157.25 157.249±0.002 157.249±0.002
65 terbium Tb r:>no--yes<158.925354 158.925354±0.000007 158.925354±0.000007
66 dysprosium Dy r:>no--yes<162.5 162.500±0.001 162.500±0.001
67 holmium Ho r:>no--yes<164.930328 164.930329±0.000005 164.930329±0.000005
68 erbium Er r:>no--yes<167.259 167.259±0.003 167.259±0.003
69 thulium Tm r:>no--yes<168.934218 168.934219±0.000005 168.934219±0.000005
70 ytterbium Yb r:>no--yes<173.045 173.045±0.010 173.045±0.010
71 lutetium Lu r:>no--yes<174.9668 174.96669±0.00005 174.96669±0.00005
72 hafnium Hf r:>no--yes<178.49 178.486±0.006 178.486±0.006
73 tantalum Ta r:>no--yes<180.94788 180.94788±0.00002 180.94788±0.00002
74 tungsten W r:>no--yes<183.84 183.84±0.01 183.84±0.01
75 rhenium Re r:>no--yes<186.207 186.207±0.001 186.207±0.001
76 osmium Os r:>no--yes<190.23 190.23±0.03 190.23±0.03
77 iridium Ir r:>no--yes<192.217 192.217±0.002 192.217±0.002
78 platinum Pt r:>no--yes<195.084 195.084±0.009 195.084±0.009
79 gold Au r:>no--yes<196.96657 196.966570±0.000004 196.966570±0.000004
80 mercury Hg r:>no--yes<200.592 200.592±0.003 200.592±0.003
81 thallium Tl r:>no--yes<204.38
82 lead Pb r:>no--yes<207.2
83 bismuth Bi r:>no--yes<208.9804 208.98040±0.00001 208.98040±0.00001
84 polonium Po r:>no--yes<209
85 astatine At r:>no--yes<210
86 radon Rn r:>no--yes<222
87 francium Fr r:>no--yes<223
88 radium Ra r:>no--yes<226
89 actinium Ac r:>no--yes<227
90 thorium Th r:>no--yes<232.0377 232.0377±0.0004 232.0377±0.0004
91 protactinium Pa r:>no--yes<231.03588 231.03588±0.00001 231.03588±0.00001
92 uranium U r:>no--yes<238.02891 238.02891±0.00003 238.02891±0.00003
93 neptunium Np r:>no--yes<237
94 plutonium Pu r:>no--yes<244
95 americium Am r:>no--yes<243
96 curium Cm r:>no--yes<247
97 berkelium Bk r:>no--yes<247
98 californium Cf r:>no--yes<251
99 einsteinium Es r:>no--yes<252
100 fermium Fm r:>no--yes<257
101 mendelevium Md r:>no--yes<258
102 nobelium No r:>no--yes<259
103 lawrencium Lr r:>no--yes<266
104 rutherfordium Rf r:>no--yes<267
105 dubnium Db r:>no--yes<268
106 seaborgium Sg r:>no--yes<269
107 bohrium Bh r:>no--yes<270
108 hassium Hs r:>no--yes<270
109 meitnerium Mt r:>no--yes<278
110 darmstadtium Ds r:>no--yes<281
111 roentgenium Rg r:>no--yes<282
112 copernicium Cn r:>no--yes<285
113 nihonium Nh r:>no--yes<286
114 flerovium Fl r:>no--yes<289
115 moscovium Mc r:>no--yes<290
116 livermorium Lv r:>no--yes<293
117 tennessine Ts r:>no--yes<294
118 oganesson Og r:>no--yes<294

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: