Template:Chem molar mass/doc

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: (for H2O) &rarr;


 * round
 * unit

The next parameters will always show:fixed to enter a fixed (predefined) value+unit. It will overwrite any calculated value+unit.

&lt;ref>some source will add the reference right after the unit.

Any textis added as a suffix, after a space and unedited (no brackets added etc.).

Example:
 * &rarr;

yes, for use in sortable tables: will add a hidden sortable number, and omits the unit (see table below).

Data sources (CIAAW)
Primarily, the atomic weights used here are defined by CIAAW :
 * (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).


 * 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:



Embedding in a template
The template is designed to be embedded in a template like Drugbox. The molecular formula can be entered like, and these values then are passed through to this subtemplate, together with the other parameters like.

Units

 * unit
 * 1. When some 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: [$1.008$, $1.008$] is calculated using conventional: 1.008(0)

Calculate cumulative uncertainties

 * ,
 * ,

TemplateData
{	"params": { "H": {}, "D": {}, "Li": {}, "B": {}, "C": {}, "N": {}, "O": {}, "Mg": {}, "Si": {}, "S": {}, "Cl": {}, "Br": {}, "Tl": {}, "He": {}, "Be": {}, "F": {}, "Ne": {}, "Na": {}, "Al": {}, "P": {}, "K": {}, "Ar": {}, "Ca": {}, "Sc": {}, "Ti": {}, "V": {}, "Cr": {}, "Mn": {}, "Fe": {}, "Ni": {}, "Co": {}, "Cu": {}, "Zn": {}, "Ga": {}, "Ge": {}, "As": {}, "Se": {}, "Kr": {}, "Rb": {}, "Sr": {}, "Y": {}, "Zr": {}, "Nb": {}, "Mo": {}, "Ru": {}, "Rh": {}, "Pd": {}, "Ag": {}, "Cd": {}, "In": {}, "Sn": {}, "Sb": {}, "I": {}, "Te": {}, "Xe": {}, "Cs": {}, "Ba": {}, "La": {}, "Ce": {}, "Pr": {}, "Nd": {}, "Sm": {}, "Eu": {}, "Gd": {}, "Tb": {}, "Dy": {}, "Ho": {}, "Er": {}, "Tm": {}, "Yb": {}, "Lu": {}, "Hf": {}, "Ta": {}, "W": {}, "Re": {}, "Os": {}, "Ir": {}, "Pt": {}, "Au": {}, "Hg": {}, "Pb": {}, "Bi": {}, "Pa": {}, "Th": {}, "U": {}, "Tc": {}, "Pm": {}, "Po": {}, "At": {}, "Rn": {}, "Fr": {}, "Ra": {}, "Ac": {}, "Np": {}, "Pu": {}, "Am": {}, "Cm": {}, "Bk": {}, "Cf": {}, "Es": {}, "Fm": {}, "Md": {}, "No": {}, "Lr": {}, "Rf": {}, "Db": {}, "Sg": {}, "Bh": {}, "Hs": {}, "Mt": {}, "Ds": {}, "Rg": {}, "Cn": {}, "Nh": {}, "Fl": {}, "Mc": {}, "Lv": {}, "Ts": {}, "Og": {}, "round": {}, "unit": {}, "ref": {}, "comment": {}, "fixed": {}, "sortable": {} }	}