Template:NIST
Usage
[edit]This template produces a citation to the NIST Chemistry WebBook. All parameters are optional. By default, the template produces a generic CS1 citation to the WebBook:
- Linstrom, Peter J.; Mallard, William G. (eds.). NIST Chemistry WebBook. NIST Standard Reference Database Number 69. Gaithersburg, MD: National Institute of Standards and Technology. doi:10.18434/T4D303.
To link to a specific substance, the id parameter needs to be supplied. An example using all available parameters is the following:
{{NIST |name=Ammonium chloride |id=C12125029 |access-date=25 March 2008 |mask=1F |units=CAL}}
Which renders as:
- Linstrom, Peter J.; Mallard, William G. (eds.). "Ammonium chloride". NIST Chemistry WebBook. NIST Standard Reference Database Number 69. Gaithersburg, MD: National Institute of Standards and Technology. doi:10.18434/T4D303. Retrieved 25 March 2008.
Parameters
[edit]- id
- the NIST ID for the substance (can be obtained from the URL); corresponds to the unhyphenated CAS Registry Number.
- name
- the name of the substance, used for the link name. If not present, the ID will be used as a name.
- access-date
- this can be useful because the WebBook could change as data is updated.
- units
- either CAL (for calorie-based units) or SI. The default is SI.
- mask
- this can be obtained from the URL and determines which sort of data is displayed. The current meaning of this field is a hexadecimala number resulting from the sum of the following bits:
1 Gas phase thermochemical data 2 Condensed phase thermochemistry data 4 Phase change data 8 Reaction thermochemistry data 20 Gas phase ion energetics data 40 Ion clustering data 80 IR Spectrum 200 Mass spectrum (electron ionization) 800 Vibrational and/or electronic energy levels 2000 Gas Chromatography
^a So a way of including just about everything would be to use a mask value of FFFF.
- mode
- can be used to set the citation style to
cs1orcs2. The default iscs1. - ref
- can be used to supply, eg.
{{SfnRef|NIST|n.d.}}, to set the ref id as used by {{sfn}} and related templates. If more than one instance of {{NIST}} is used,|ref=should be used to set distinct {{SfnRef}} ids for each. - doi
- sets the DOI; by default, the DOI for NIST Chemistry WebBook is included. Can be suppressed by adding
|doi=and leaving it blank.
Centralization
[edit]There is always a risk that NIST may change the structure of the website and the query parameters. But at least using a template instead of just using a URL ensures that the links from Wikipedia are centralized and hopefully easier to fix.