Predloga:Chem molar mass

Iz Wikipedije, proste enciklopedije
Jump to navigation Jump to search
Documentation icon Dokumentacija predloge[predogled] [uredi] [zgodovina] [osveži]

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[uredi kodo]

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[uredi kodo]

{{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[uredi kodo]

Atomic number
Z
Element Molar mass
g/mol
Note
 
0 C9H8O4 7005180157000000000180.157 fixed value input
0 C9H8O4 7005180157000000000180.157 g/mol fixed value input
0 C9H8O4 7005180159000000000180.159 aspirin
1 H 70031008000000000001.008
2 He 70064002602000000004.002602
3 Li 70026940000000000006.94
4 Be 70079012183100000009.0121831
5 B 700310810000000000010.81
6 C 700412011000000000012.011
7 N 700414007000000000014.007
8 O 700415999000000000015.999
9 F 701018998403163000018.998403163
10 Ne 700520179700000000020.1797
11 Na 700922989769280000022.98976928
12 Mg 700424305000000000024.305
13 Al 700826981538500000026.9815385
14 Si 700428085000000000028.085
15 P 701030973761998000030.973761998
16 S 700332060000000000032.06
17 Cl 700335450000000000035.45
18 Ar 700439948000000000039.948
19 K 700539098300000000039.0983
20 Ca 700440078000000000040.078
21 Sc 700744955908000000044.955908
22 Ti 700447867000000000047.867
23 V 700550941500000000050.9415
24 Cr 700551996100000000051.9961
25 Mn 700754938044000000054.938044
26 Fe 700455845000000000055.845
27 Co 700758933194000000058.933194
28 Ni 700558693400000000058.6934
29 Cu 700463546000000000063.546
30 Zn 700365380000000000065.38
31 Ga 700469723000000000069.723
32 Ge 700372630000000000072.63
33 As 700774921595000000074.921595
34 Se 700478971000000000078.971
35 Br 700479904000000000079.904
36 Kr 700483798000000000083.798
37 Rb 700585467800000000085.4678
38 Sr 700387620000000000087.62
39 Y 700688905840000000088.90584
40 Zr 700491224000000000091.224
41 Nb 700692906370000000092.90637
42 Mo 700395950000000000095.95
43 Tc 700198000000000000098
44 Ru 7004101070000000000101.07
45 Rh 7006102905500000000102.9055
46 Pd 7004106420000000000106.42
47 Ag 7006107868200000000107.8682
48 Cd 7005112414000000000112.414
49 In 7005114818000000000114.818
50 Sn 7004118710000000000118.71
51 Sb 7004121760000000000121.76
52 Te 7003127600000000000127.6 (Does not follow atomic number)
53 I 7007126904470000000126.90447 (Does not follow atomic number)
54 Xe 7005131293000000000131.293
55 Cs 7010132905451960000132.90545196
56 Ba 7005137327000000000137.327
57 La 7007138905470000000138.90547
58 Ce 7005140116000000000140.116
59 Pr 7007140907660000000140.90766
60 Nd 7005144242000000000144.242
61 Pm 7002145000000000000145
62 Sm 7004150360000000000150.36
63 Eu 7005151964000000000151.964
64 Gd 7004157250000000000157.25
65 Tb 7007158925350000000158.92535
66 Dy 7003162500000000000162.5
67 Ho 7007164930330000000164.93033
68 Er 7005167259000000000167.259
69 Tm 7007168934220000000168.93422
70 Yb 7005173045000000000173.045
71 Lu 7006174966800000000174.9668
72 Hf 7004178490000000000178.49
73 Ta 7007180947880000000180.94788
74 W 7004183840000000000183.84
75 Re 7005186207000000000186.207
76 Os 7004190230000000000190.23
77 Ir 7005192217000000000192.217
78 Pt 7005195084000000000195.084
79 Au 7008196966569000000196.966569
80 Hg 7005200592000000000200.592
81 Tl 7004204380000000000204.38
82 Pb 7003207200000000000207.2
83 Bi 7006208980400000000208.9804
84 Po 7002209000000000000209
85 At 7002210000000000000210
86 Rn 7002222000000000000222
87 Fr 7002223000000000000223
88 Ra 7002226000000000000226
89 Ac 7002227000000000000227
90 Th 7006232037700000000232.0377
91 Pa 7007231035880000000231.03588
92 U 7007238028910000000238.02891
93 Np 7002237000000000000237
94 Pu 7002244000000000000244
95 Am 7002243000000000000243
96 Cm 7002247000000000000247
97 Bk 7002247000000000000247
98 Cf 7002251000000000000251
99 Es 7002252000000000000252
100 Fm 7002257000000000000257
101 Md 7002258000000000000258
102 No 7002259000000000000259
103 Lr 7002266000000000000266
104 Rf 7002267000000000000267
105 Db 7002268000000000000268
106 Sg 7002269000000000000269
107 Bh 7002270000000000000270
108 Hs 7002269000000000000269
109 Mt 7002278000000000000278
110 Ds 7002281000000000000281
111 Rg 7002281000000000000281
112 Cn 7002285000000000000285
113 Uut 7002286000000000000286
114 Fl 7002289000000000000289
115 Uup 7002289000000000000289
116 Lv 7002293000000000000293
117 Uus 7002294000000000000294
118 Uuo 7002294000000000000294

Data sources (CIAAW)[uredi kodo]

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

Coplen, T.B.; et al. (2013). "Atomic weights of the elements 2013 (xls)". CIAAW. Pridobljeno dne 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[uredi kodo]

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[uredi kodo]

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[uredi kodo]

See also[uredi kodo]

  1. Some source