Revision as of 14:15, 25 May 2015 view sourceDePiep (talk | contribs)Extended confirmed users294,285 editsNo edit summary← Previous edit | Revision as of 14:19, 25 May 2015 view source DePiep (talk | contribs)Extended confirmed users294,285 editsNo edit summaryNext edit → | ||
Line 10: | Line 10: | ||
-->|{{#ifeq:{{{round|x}}}|no | -->|{{#ifeq:{{{round|x}}}|no | ||
|{{{value|0}}}}} {{#if:{{{unit|}}} |{{{unit|}}} |g·mol<sup>−1</sup>}} | |{{{value|0}}}}} {{#if:{{{unit|}}} |{{{unit|}}} |g·mol<sup>−1</sup>}} | ||
|{{#invoke:math|precision_format | |
|{{#invoke:math|precision_format |{{{value|0}}} |{{{round|2}}} }} | ||
}} | }} | ||
|{{{fixed|}}}<!-- | |{{{fixed|}}}<!-- |
Revision as of 14:19, 25 May 2015
r:>x<
Template documentation[view] [edit] [history] [purge]This 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< 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 text
is 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<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< g·mol | aspirin, calculated from formula | |||||
C9H8O4 | r:>no<180.157 g·mol | fixed value from ... | |||||
|charge=+1
|
r:>no< | ||||||
|charge=-1
|
r:>no<0.00054857990907 g·mol | ||||||
H | r:>no<1.0074514200909 g·mol | ||||||
1 | hydrogen | H | r:>no<1.008 g·mol | atomic mass for H, not molar mass for H2 | |||
] | D | r:>no<2.013553212745 g·mol | deuterium, H | ||||
2 | helium | He | r:>no<4.002602 g·mol | 4.002602±0.000002 | 4.002602±0.000002 | ||
3 | lithium | Li | r:>no<6.94 g·mol | ||||
4 | beryllium | Be | r:>no<9.0121831 g·mol | 9.0121831±0.0000005 | 9.0121831±0.0000005 | ||
5 | boron | B | r:>no<10.81 g·mol | ||||
6 | carbon | C | r:>no<12.011 g·mol | ||||
7 | nitrogen | N | r:>no<14.007 g·mol | ||||
8 | oxygen | O | r:>no<15.999 g·mol | ||||
9 | fluorine | F | r:>no<18.998403163 g·mol | 18.998403162±0.000000005 | 18.998403162±0.000000005 | ||
10 | neon | Ne | r:>no<20.1797 g·mol | 20.1797±0.0006 | 20.1797±0.0006 | ||
11 | sodium | Na | r:>no<22.98976928 g·mol | 22.98976928±0.00000002 | 22.98976928±0.00000002 | ||
12 | magnesium | Mg | r:>no<24.305 g·mol | ||||
13 | aluminium | Al | r:>no<26.9815384 g·mol | 26.9815384±0.0000003 | 26.9815384±0.0000003 | ||
14 | silicon | Si | r:>no<28.085 g·mol | ||||
15 | phosphorus | P | r:>no<30.973761998 g·mol | 30.973761998±0.000000005 | 30.973761998±0.000000005 | ||
16 | sulfur | S | r:>no<32.06 g·mol | ||||
17 | chlorine | Cl | r:>no<35.45 g·mol | ||||
18 | argon | Ar | r:>no<39.948 g·mol | ||||
19 | potassium | K | r:>no<39.0983 g·mol | 39.0983±0.0001 | 39.0983±0.0001 | ||
20 | calcium | Ca | r:>no<40.078 g·mol | 40.078±0.004 | 40.078±0.004 | ||
21 | scandium | Sc | r:>no<44.955908 g·mol | 44.955907±0.000004 | 44.955907±0.000004 | ||
22 | titanium | Ti | r:>no<47.867 g·mol | 47.867±0.001 | 47.867±0.001 | ||
23 | vanadium | V | r:>no<50.9415 g·mol | 50.9415±0.0001 | 50.9415±0.0001 | ||
24 | chromium | Cr | r:>no<51.9961 g·mol | 51.9961±0.0006 | 51.9961±0.0006 | ||
25 | manganese | Mn | r:>no<54.938043 g·mol | 54.938043±0.000002 | 54.938043±0.000002 | ||
26 | iron | Fe | r:>no<55.845 g·mol | 55.845±0.002 | 55.845±0.002 | ||
27 | cobalt | Co | r:>no<58.933194 g·mol | 58.933194±0.000003 | 58.933194±0.000003 | ||
28 | nickel | Ni | r:>no<58.6934 g·mol | 58.6934±0.0004 | 58.6934±0.0004 | ||
29 | copper | Cu | r:>no<63.546 g·mol | 63.546±0.003 | 63.546±0.003 | ||
30 | zinc | Zn | r:>no<65.38 g·mol | 65.38±0.02 | 65.38±0.02 | ||
31 | gallium | Ga | r:>no<69.723 g·mol | 69.723±0.001 | 69.723±0.001 | ||
32 | germanium | Ge | r:>no<72.63 g·mol | 72.630±0.008 | 72.630±0.008 | ||
33 | arsenic | As | r:>no<74.921595 g·mol | 74.921595±0.000006 | 74.921595±0.000006 | ||
34 | selenium | Se | r:>no<78.971 g·mol | 78.971±0.008 | 78.971±0.008 | ||
35 | bromine | Br | r:>no<79.904 g·mol | ||||
36 | krypton | Kr | r:>no<83.798 g·mol | 83.798±0.002 | 83.798±0.002 | ||
37 | rubidium | Rb | r:>no<85.4678 g·mol | 85.4678±0.0003 | 85.4678±0.0003 | ||
38 | strontium | Sr | r:>no<87.62 g·mol | 87.62±0.01 | 87.62±0.01 | ||
39 | yttrium | Y | r:>no<88.90584 g·mol | 88.905838±0.000002 | 88.905838±0.000002 | ||
40 | zirconium | Zr | r:>no<91.224 g·mol | 91.222±0.003 | 91.222±0.003 | ||
41 | niobium | Nb | r:>no<92.90637 g·mol | 92.90637±0.00001 | 92.90637±0.00001 | ||
42 | molybdenum | Mo | r:>no<95.95 g·mol | 95.95±0.01 | 95.95±0.01 | ||
43 | technetium | Tc | r:>no<98 g·mol | ||||
44 | ruthenium | Ru | r:>no<101.07 g·mol | 101.07±0.02 | 101.07±0.02 | ||
45 | rhodium | Rh | r:>no<102.90549 g·mol | 102.90549±0.00002 | 102.90549±0.00002 | ||
46 | palladium | Pd | r:>no<106.42 g·mol | 106.42±0.01 | 106.42±0.01 | ||
47 | silver | Ag | r:>no<107.8682 g·mol | 107.8682±0.0002 | 107.8682±0.0002 | ||
48 | cadmium | Cd | r:>no<112.414 g·mol | 112.414±0.004 | 112.414±0.004 | ||
49 | indium | In | r:>no<114.818 g·mol | 114.818±0.001 | 114.818±0.001 | ||
50 | tin | Sn | r:>no<118.71 g·mol | 118.710±0.007 | 118.710±0.007 | ||
51 | antimony | Sb | r:>no<121.76 g·mol | 121.760±0.001 | 121.760±0.001 | ||
52 | tellurium | Te | r:>no<127.6 g·mol | 127.60±0.03 | 127.60±0.03 | (Does not follow atomic number) | |
53 | iodine | I | r:>no<126.90447 g·mol | 126.90447±0.00003 | 126.90447±0.00003 | (Does not follow atomic number) | |
54 | xenon | Xe | r:>no<131.293 g·mol | 131.293±0.006 | 131.293±0.006 | ||
55 | caesium | Cs | r:>no<132.90545196 g·mol | 132.90545196±0.00000006 | 132.90545196±0.00000006 | ||
56 | barium | Ba | r:>no<137.327 g·mol | 137.327±0.007 | 137.327±0.007 | ||
57 | lanthanum | La | r:>no<138.90547 g·mol | 138.90547±0.00007 | 138.90547±0.00007 | ||
58 | cerium | Ce | r:>no<140.116 g·mol | 140.116±0.001 | 140.116±0.001 | ||
59 | praseodymium | Pr | r:>no<140.90766 g·mol | 140.90766±0.00001 | 140.90766±0.00001 | ||
60 | neodymium | Nd | r:>no<144.242 g·mol | 144.242±0.003 | 144.242±0.003 | ||
61 | promethium | Pm | r:>no<145 g·mol | ||||
62 | samarium | Sm | r:>no<150.36 g·mol | 150.36±0.02 | 150.36±0.02 | ||
63 | europium | Eu | r:>no<151.964 g·mol | 151.964±0.001 | 151.964±0.001 | ||
64 | gadolinium | Gd | r:>no<157.25 g·mol | 157.249±0.002 | 157.249±0.002 | ||
65 | terbium | Tb | r:>no<158.925354 g·mol | 158.925354±0.000007 | 158.925354±0.000007 | ||
66 | dysprosium | Dy | r:>no<162.5 g·mol | 162.500±0.001 | 162.500±0.001 | ||
67 | holmium | Ho | r:>no<164.930328 g·mol | 164.930329±0.000005 | 164.930329±0.000005 | ||
68 | erbium | Er | r:>no<167.259 g·mol | 167.259±0.003 | 167.259±0.003 | ||
69 | thulium | Tm | r:>no<168.934218 g·mol | 168.934219±0.000005 | 168.934219±0.000005 | ||
70 | ytterbium | Yb | r:>no<173.045 g·mol | 173.045±0.010 | 173.045±0.010 | ||
71 | lutetium | Lu | r:>no<174.9668 g·mol | 174.96669±0.00005 | 174.96669±0.00005 | ||
72 | hafnium | Hf | r:>no<178.49 g·mol | 178.486±0.006 | 178.486±0.006 | ||
73 | tantalum | Ta | r:>no<180.94788 g·mol | 180.94788±0.00002 | 180.94788±0.00002 | ||
74 | tungsten | W | r:>no<183.84 g·mol | 183.84±0.01 | 183.84±0.01 | ||
75 | rhenium | Re | r:>no<186.207 g·mol | 186.207±0.001 | 186.207±0.001 | ||
76 | osmium | Os | r:>no<190.23 g·mol | 190.23±0.03 | 190.23±0.03 | ||
77 | iridium | Ir | r:>no<192.217 g·mol | 192.217±0.002 | 192.217±0.002 | ||
78 | platinum | Pt | r:>no<195.084 g·mol | 195.084±0.009 | 195.084±0.009 | ||
79 | gold | Au | r:>no<196.96657 g·mol | 196.966570±0.000004 | 196.966570±0.000004 | ||
80 | mercury | Hg | r:>no<200.592 g·mol | 200.592±0.003 | 200.592±0.003 | ||
81 | thallium | Tl | r:>no<204.38 g·mol | ||||
82 | lead | Pb | r:>no<207.2 g·mol | ||||
83 | bismuth | Bi | r:>no<208.9804 g·mol | 208.98040±0.00001 | 208.98040±0.00001 | ||
84 | polonium | Po | r:>no<209 g·mol | ||||
85 | astatine | At | r:>no<210 g·mol | ||||
86 | radon | Rn | r:>no<222 g·mol | ||||
87 | francium | Fr | r:>no<223 g·mol | ||||
88 | radium | Ra | r:>no<226 g·mol | ||||
89 | actinium | Ac | r:>no<227 g·mol | ||||
90 | thorium | Th | r:>no<232.0377 g·mol | 232.0377±0.0004 | 232.0377±0.0004 | ||
91 | protactinium | Pa | r:>no<231.03588 g·mol | 231.03588±0.00001 | 231.03588±0.00001 | ||
92 | uranium | U | r:>no<238.02891 g·mol | 238.02891±0.00003 | 238.02891±0.00003 | ||
93 | neptunium | Np | r:>no<237 g·mol | ||||
94 | plutonium | Pu | r:>no<244 g·mol | ||||
95 | americium | Am | r:>no<243 g·mol | ||||
96 | curium | Cm | r:>no<247 g·mol | ||||
97 | berkelium | Bk | r:>no<247 g·mol | ||||
98 | californium | Cf | r:>no<251 g·mol | ||||
99 | einsteinium | Es | r:>no<252 g·mol | ||||
100 | fermium | Fm | r:>no<257 g·mol | ||||
101 | mendelevium | Md | r:>no<258 g·mol | ||||
102 | nobelium | No | r:>no<259 g·mol | ||||
103 | lawrencium | Lr | r:>no<266 g·mol | ||||
104 | rutherfordium | Rf | r:>no<267 g·mol | ||||
105 | dubnium | Db | r:>no<268 g·mol | ||||
106 | seaborgium | Sg | r:>no<269 g·mol | ||||
107 | bohrium | Bh | r:>no<270 g·mol | ||||
108 | hassium | Hs | r:>no<270 g·mol | ||||
109 | meitnerium | Mt | r:>no<278 g·mol | ||||
110 | darmstadtium | Ds | r:>no<281 g·mol | ||||
111 | roentgenium | Rg | r:>no<282 g·mol | ||||
112 | copernicium | Cn | r:>no<285 g·mol | ||||
113 | nihonium | Nh | r:>no<286 g·mol | ||||
114 | flerovium | Fl | r:>no<289 g·mol | ||||
115 | moscovium | Mc | r:>no<290 g·mol | ||||
116 | livermorium | Lv | r:>no<293 g·mol | ||||
117 | tennessine | Ts | r:>no<294 g·mol | ||||
118 | oganesson | Og | r:>no<294 g·mol |
References
References
These references will appear in the article, but this list appears only on this page.- Some source
- ^ 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.
- NIST
Data sources (CIAAW)
Primarily, the atomic weights used here are defined by CIAAW :
- "Standard Atomic Weights". Commission on Isotopic Abundances and Atomic Weights (CIAAW). 2015. Retrieved 2015-09-20. (68 elements)
- CIAAW also published additional lists in spreadsheet format (2013). It has additional conventional values for trade usage, and some background information on the numbers and calculations. (12 elements: B, Br, C, Cl, H, Li, Mg, N, O, S, Si, Tl).
- 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.
- Possolo, Antonio; van der Veen, Adriaan M. H.; Meija, Juris; Hibbert, D. Brynn (2018-01-04). "Interpreting and propagating the uncertainty of the standard atomic weights (IUPAC Technical Report)". doi:10.1515/pac-2016-0402. Retrieved 2018-09-23.
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
- Possolo, Antonio; van der Veen, Adriaan M.H.; Meija, Juris; Brynn Hibbert, D. (2018-01-04). "Interpreting and propagating the uncertainty of the standard atomic weights (IUPAC Technical Report)". Retrieved 2019-02-08.
- ,
Tracking categories
- Category:Articles with erroneous molar mass calculations (0)
- Category:Pages using Chem molar mass with unsupported parameters (0)
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.
|
See also
- {{Chem molar mass/format}} -- subtemplate
- {{Chem molar mass/calc charge}} -- subtemplate
- {{Chem}} (formula)
- {{Atomic mass}}
- {{Molar mass}}
- {{Chem molar mass/sandbox}} -- tests sandbox template too (compare values).
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Subpages of this template.