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