Template:CAS/sandbox
Appearance
This is the template sandbox page for Template:CAS (diff). |
This template is used on approximately 3,800 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. |
CAS registry numbers are unique numerical identifiers for chemical elements, compounds, polymers, biological sequences, mixtures and alloys. They are also referred to as CAS numbers, CAS RNs or CAS #s. This template is used to cite CAS numbers within articles.
Usage
[edit]{{CAS|paste the CAS number here|write the compound name here}}
If the first parameter contains a valid CAS-number (e.g. no letters), a link will be placed to the appropriate compound entry on the http://www.commonchemistry.org/ website. If it is not a valid CAS-number, plain text will be shown. In any case, leading and ending spaces are trimmed. Text in the second parameter (if given) will be shown as plain text.
Examples with valid CAS numbers
[edit]{{CAS|7200-25-1|(DL-arginine)}}<br />{{CAS|74-79-3|(L-arginine)}}<br />{{CAS|157-06-2|(D-arginine)}}
renders as:
Example with an invalid CAS number
[edit]{{CAS|abc-7200-25-1-xyz|(DL-arginine)}}
renders as:- abc-7200-25-1-xyz (DL-arginine)