Jump to content

Fyrimynd:Chem molar mass/doc

Frá Wikipedia, hin frælsa alfrøðin

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

Parameters

[rætta wikitekst]

Use chemical symbols to compose the molecular formula: {{Chem molar mass|H=2|O=1}} (for H2O) 18,02 g·mol−1

|round= by default the calculated number is rounded to 2 decimals.

|round=no will show all decimals:
{{Chem molar mass|Be=1|round=no}} 9.0121831 g·mol−1
|round=a number will round to that number of decimals
{{Chem molar mass|Be=1|round=4}} 9,0122 g·mol−1

|unit= changes the unit for the calculated result. The default unit is g·mol−1.

{{Chem molar mass|H=2|O=1|unit=gram per mole}} 18,02 gram per mole


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|ref=<ref>Some source</ref>|comment=My Comment}} 234.56 g/mol[1] 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

[rætta wikitekst]
{{Chem molar mass
| round   =
| unit    =
| fixed   =
| ref     =
| comment =
| sortable=
| catname =
}}
{{Chem molar mass
<!-- 118 chemical symbols: -->|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= |Uub= |Uut= |Lv= |Uup= |Fl= |Uus= |Uuo=
| round   =
| unit    =
| fixed   =
| ref     =
| comment =
| sortable=
| catname =
}}

Standard atomic weights used

[rætta wikitekst]
Atomic number
Z
Element Molar mass
g/mol
Note
 
0C9H8O4180.157fixed value input
0C9H8O4180.157 g/molfixed value input
0C9H8O4180.159aspirin
1H1.008
2He4.002602
3Li6.94
4Be9.0121831
5B10.81
6C12.011
7N14.007
8O15.999
9F18.998403163
10Ne20.1797
11Na22.98976928
12Mg24.305
13Al26.9815385
14Si28.085
15P30.973761998
16S32.06
17Cl35.45
18Ar39.948
19K39.0983
20Ca40.078
21Sc44.955908
22Ti47.867
23V50.9415
24Cr51.9961
25Mn54.938044
26Fe55.845
27Co58.933194
28Ni58.6934
29Cu63.546
30Zn65.38
31Ga69.723
32Ge72.63
33As74.921595
34Se78.971
35Br79.904
36Kr83.798
37Rb85.4678
38Sr87.62
39Y88.90584
40Zr91.224
41Nb92.90637
42Mo95.95
43Tc98
44Ru101.07
45Rh102.9055
46Pd106.42
47Ag107.8682
48Cd112.414
49In114.818
50Sn118.71
51Sb121.76
52Te127.6(Does not follow atomic number)
53I126.90447(Does not follow atomic number)
54Xe131.293
55Cs132.90545196
56Ba137.327
57La138.90547
58Ce140.116
59Pr140.90766
60Nd144.242
61Pm145
62Sm150.36
63Eu151.964
64Gd157.25
65Tb158.92535
66Dy162.5
67Ho164.93033
68Er167.259
69Tm168.93422
70Yb173.045
71Lu174.9668
72Hf178.49
73Ta180.94788
74W183.84
75Re186.207
76Os190.23
77Ir192.217
78Pt195.084
79Au196.966569
80Hg200.592
81Tl204.38
82Pb207.2
83Bi208.9804
84Po209
85At210
86Rn222
87Fr223
88Ra226
89Ac227
90Th232.0377
91Pa231.03588
92U238.02891
93Np237
94Pu244
95Am243
96Cm247
97Bk247
98Cf251
99Es252
100Fm257
101Md258
102No259
103Lr266
104Rf267
105Db268
106Sg269
107Bh270
108Hs269
109Mt278
110Ds281
111Rg281
112Cn285
113Uut286
114Fl289
115Uup289
116Lv293
117Uus294
118Uuo294

Data sources (CIAAW)

[rætta wikitekst]

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

Coplen, T.B.; Brand, W.A. (2013). "Atomic weights of the elements 2013 (xls)". CIAAW. http://www.ciaaw.org/publications.htm. Heintað 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.

Embedding in a template

[rætta wikitekst]

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=.

For this usage one extra parameter is available:
|catname=. A category name entered here, which will be used as maintenance category for articles that have both calculated and fixed input. These are two inputs for one data value. The maintenance task is to remove the |fixed= input (unless overwriting is intentional).

Know issue: uncertainty

[rætta wikitekst]

Atomic weights are given with a precision and uncertainty, for example: 20.1797(6) for neon (more here).

Uncertainty

This template does not maintain the uncertainty (the bracketed part). When done correctly, the uncertainty could influence the result, especially when precision (number of decimals) is larger.

Rounding

This template usually does rounding on the calculated result, to 2 decimals by default:

For neon: {{Chem molar mass|Ne=1}} 20,18 g·mol−1

Two decimals is common practice for trade and most laboratory situations. However, rounding is set to more decimals, and the compounnd has atoms with less precision, the resulting number will be inaccurate (suggesting a wrong precision). For example strontium :

{{Chem molar mass|Sr=1|round=4}} 87,6200 g·mol−1

Six elements have values ending with a final decimal being "0" (a zero), like Sn: 118.710. This value does not show for technical reasons (the calculation 'rounds them away'), but it does signify an extra precision. The six elements are Sn, Rh, Ge, Sb, Dy, Bi.

Calculate cumulative uncertainties

[rætta wikitekst]
  • ,
  1. Some source