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:50, 22 May 2015 view sourceDePiep (talk | contribs)Extended confirmed users294,285 editsNo edit summary← Previous edit Revision as of 14:51, 22 May 2015 view source DePiep (talk | contribs)Extended confirmed users294,285 editsNo edit summaryNext edit →
Line 14: Line 14:
-->|yes=<!-- -->|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=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}}<!-- note: set debug=yes to show ntsh number.
-->{{#ifexpr:{{#expr:{{formatnum:{{{value|0}}}|R}}}}>0 -->{{#ifexpr:{{#expr:{{formatnum:{{{value|0}}}|R}}}}>0
|{{#if:{{{fixed|}}} |{{#if:{{{fixed|}}}

Revision as of 14:51, 22 May 2015

5000000000000000000♠

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