|
|
| (6 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <templatestyles src="Chembox/styles.css"/> | | <!-- Template:Chembox --> |
| {| class="infobox" style="width:22em; background:#f9f9f9; border:1px solid #aaa; padding:5px; font-size:90%;"
| | <div class="infobox" style="width: 22em; font-size: 90%; border: 1px solid #aaa; padding: 0.5em; background: #f9f9f9;"> |
| |+ style="font-weight:bold; font-size:110%; background:#efefef; padding:3px;" | {{{Name|{{PAGENAME}}}}}
| | {| style="width: 100%;" |
| | | ! colspan="2" style="text-align: center; background: #f0f0f0; font-weight: bold; font-size: 110%; padding: 0.5em;" | {{{name|Chemical Compound}}} |
| <!-- IMAGES -->
| |
| {{#if: {{{ImageFile|}}} |
| |
| |- | | |- |
| | style="text-align:center;" | [[File:{{{ImageFile}}}|{{{ImageSize|200px}}}|alt={{{ImageAlt|}}}]] | | | colspan="2" style="text-align: center;" | {{{image|}}} |
| <br><small>{{{ImageCaption|}}}</small>
| |
| }}
| |
| {{#if: {{{ImageFile1|}}} | | |
| |- | | |- |
| | style="text-align:center;" | [[File:{{{ImageFile1}}}|{{{ImageSize1|200px}}}|alt={{{ImageAlt1|}}}]] | | | colspan="2" style="text-align: center;" | <small>{{{image_caption|}}}</small> |
| <br><small>{{{ImageCaption1|}}}</small>
| |
| }}
| |
| | |
| <!-- IDENTIFIERS -->
| |
| {{#if: {{{IUPACName|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | IUPAC Name | | | colspan="2" style="text-align: center; background: #f0f0f0;" | <b>Identifiers</b> |
| | {{{IUPACName}}}
| |
| }}
| |
| {{#if: {{{OtherNames|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | Other Names | | | <b>CAS Number</b> || {{{cas_number|}}} |
| | {{{OtherNames}}} | |
| }}
| |
| | |
| <!-- SECTION 1: IDENTIFIERS -->
| |
| {{#if: {{{Section1|}}} |
| |
| |- | | |- |
| | colspan="2" style="background:#d9edf7; text-align:center; font-weight:bold;" | Identifiers | | | <b>PubChem CID</b> || {{{pubchem|}}} |
| |- | | |- |
| | colspan="2" style="padding:5px;" | {{{Section1}}} | | | <b>ChemSpider ID</b> || {{{chemspider|}}} |
| }}
| |
| | |
| <!-- SECTION 2: PROPERTIES --> | |
| {{#if: {{{Section2|}}} |
| |
| |- | | |- |
| | colspan="2" style="background:#d9edf7; text-align:center; font-weight:bold;" | Properties | | | <b>UNII</b> || {{{unii|}}} |
| |- | | |- |
| | colspan="2" style="padding:5px;" | {{{Section2}}} | | | <b>ChEBI</b> || {{{chebi|}}} |
| }}
| |
| | |
| <!-- SECTION 3: HAZARDS --> | |
| {{#if: {{{Section3|}}} |
| |
| |- | | |- |
| | colspan="2" style="background:#d9534f; color:#fff; text-align:center; font-weight:bold;" | Hazards | | | <b>ChEMBL</b> || {{{chembl|}}} |
| |- | | |- |
| | colspan="2" style="padding:5px;" | {{{Section3}}} | | | colspan="2" style="text-align: center; background: #f0f0f0;" | <b>Properties</b> |
| }}
| |
| | |
| <!-- FOOTER --> | |
| |- | | |- |
| | colspan="2" style="text-align:center; font-size:85%; padding:5px;" | <small>Data sourced from verified databases</small> | | | <b>Chemical Formula</b> || {{{formula|}}} |
| | |- |
| | | <b>Molar Mass</b> || {{{molar_mass|}}} |
| | |- |
| | | <b>Appearance</b> || {{{appearance|}}} |
| | |- |
| | | <b>Density</b> || {{{density|}}} |
| | |- |
| | | <b>Melting Point</b> || {{{melting_point|}}} |
| | |- |
| | | <b>Boiling Point</b> || {{{boiling_point|}}} |
| | |- |
| | | colspan="2" style="text-align: center; background: #f0f0f0;" | <b>Hazards</b> |
| | |- |
| | | <b>GHS Pictograms</b> || [[File:{{{ghs_pictograms|}}}|50px]] |
| | |- |
| | | <b>GHS Signal Word</b> || {{{ghs_signal_word|}}} |
| | |- |
| | | <b>GHS Hazard Statements</b> || {{{ghs_hazard_statements|}}} |
| | |- |
| | | <b>NFPA 704</b> || [[File:{{{nfpa704|}}}|50px]] |
| | |- |
| | | colspan="2" style="text-align: center; background: #f0f0f0;" | <b>References</b> |
| | |- |
| | | colspan="2" | {{{references|}}} |
| |} | | |} |
| <noinclude> | | </div> |
| == Usage ==
| |
| This template displays chemical information in a clean infobox.
| |
| | |
| === Example ===
| |
| <syntaxhighlight lang="mediawiki">
| |
| {{Chembox
| |
| | Name = Flavopiridol
| |
| | ImageFile = Flavopiridol.svg
| |
| | ImageSize = 200px
| |
| | ImageFile1 = Alvocidib ball-and-stick.png
| |
| | ImageSize1 = 200px
| |
| | IUPACName = 2-(2-chlorophenyl)-5,7-dihydroxy-8-[(3S,4R)-3-hydroxy-1-methyl-4-piperidinyl]-4-chromenone
| |
| | OtherNames = Flavopiridol, HMR 1275, L-868275
| |
| | |
| | Section1 = {{Chembox Identifiers
| |
| | UNII = 45AD6X575G
| |
| | CASNo = 146426-40-6
| |
| | PubChem = 5287969
| |
| | ChEBI = 47344
| |
| | ChEMBL = 428690
| |
| | ChemSpiderID = 4450222
| |
| | KEGG = D09868
| |
| | StdInChI = 1S/C21H20ClNO5/...
| |
| | DrugBank = DB03496
| |
| | SMILES = Clc4ccccc4C=2Oc1c(c(O)cc(O)c1...)
| |
| }}
| |
| | |
| | Section2 = {{Chembox Properties
| |
| | Formula = C<sub>21</sub>H<sub>20</sub>ClNO<sub>5</sub>
| |
| | MolarMass = 401.8402
| |
| }}
| |
| | |
| | Section3 = {{Chembox Hazards
| |
| | MainHazards =
| |
| }}
| |
| }}
| |
| </syntaxhighlight>
| |
| | |
| === Parameters ===
| |
| * `Name` - Title displayed in the infobox header.
| |
| * `ImageFile`, `ImageFile1` - Chemical structure or other images.
| |
| * `ImageSize` - Image size (default 200px).
| |
| * `IUPACName` - Official IUPAC name.
| |
| * `OtherNames` - Alternate names.
| |
| * `Section1` - Identifier section using `Chembox Identifiers`.
| |
| * `Section2` - Properties section using `Chembox Properties`.
| |
| * `Section3` - Hazards section using `Chembox Hazards`.
| |
| | |
| == Notes ==
| |
| * Sections like `Section1`, `Section2`, and `Section3` are optional.
| |
| * Add as many sections as needed for chemical data.
| |
| </noinclude>
| |