|
|
| (8 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <templatestyles src="Chembox/styles.css"/> | | <!-- Template:Chembox --> |
| {| class="infobox" style="width:{{{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>
| |
| }}
| |
| {{#if: {{{ImageFile2|}}} |
| |
| |- | | |- |
| | style="text-align:center;" | [[File:{{{ImageFile2}}}|{{{ImageSize2|200px}}}|alt={{{ImageAlt2|}}}]] | | | colspan="2" style="text-align: center; background: #f0f0f0;" | <b>Identifiers</b> |
| <br><small>{{{ImageCaption2|}}}</small> | |
| }}
| |
| | |
| <!-- NAMES -->
| |
| {{#if: {{{IUPACName|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | IUPAC Name | | | <b>CAS Number</b> || {{{cas_number|}}} |
| | {{{IUPACName}}} | |
| }}
| |
| {{#if: {{{OtherNames|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | Other Names | | | <b>PubChem CID</b> || {{{pubchem|}}} |
| | {{{OtherNames}}} | |
| }}
| |
| | |
| <!-- IDENTIFIERS -->
| |
| {{#if: {{{CAS_number|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | CAS Number | | | <b>ChemSpider ID</b> || {{{chemspider|}}} |
| | {{{CAS_number}}} | |
| }}
| |
| {{#if: {{{PubChem|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | PubChem | | | <b>UNII</b> || {{{unii|}}} |
| | [https://pubchem.ncbi.nlm.nih.gov/compound/{{{PubChem}}} {{{PubChem}}}] | |
| }}
| |
| {{#if: {{{ChemSpiderID|}}} | | |
| |- | | |- |
| | style="background:#efefef;" | ChemSpider | | | <b>ChEBI</b> || {{{chebi|}}} |
| | [https://www.chemspider.com/Chemical-Structure.{{{ChemSpiderID}}}.html {{{ChemSpiderID}}}] | |
| }}
| |
| {{#if: {{{ChEBI|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | ChEBI | | | <b>ChEMBL</b> || {{{chembl|}}} |
| | [https://www.ebi.ac.uk/chebi/searchId.do?chebiId=CHEBI:{{{ChEBI}}} {{{ChEBI}}}] | |
| }}
| |
| {{#if: {{{DrugBank|}}} | | |
| |- | | |- |
| | style="background:#efefef;" | DrugBank | | | colspan="2" style="text-align: center; background: #f0f0f0;" | <b>Properties</b> |
| | [https://go.drugbank.com/drugs/{{{DrugBank}}} {{{DrugBank}}}]
| |
| }}
| |
| | |
| <!-- CHEMICAL PROPERTIES -->
| |
| |- | | |- |
| | style="background:#efefef;" | Chemical Formula | | | <b>Chemical Formula</b> || {{{formula|}}} |
| | {{{Formula|}}} | |
| |- | | |- |
| | style="background:#efefef;" | Molar Mass | | | <b>Molar Mass</b> || {{{molar_mass|}}} |
| | {{{MolarMass|}}} | |
| | |
| {{#if: {{{MeltingPoint|}}} | | |
| |- | | |- |
| | style="background:#efefef;" | Melting Point | | | <b>Appearance</b> || {{{appearance|}}} |
| | {{{MeltingPoint}}} | |
| }}
| |
| | |
| <!-- SMILES -->
| |
| {{#if: {{{SMILES|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | SMILES | | | <b>Density</b> || {{{density|}}} |
| | {{{SMILES}}} | |
| }}
| |
| | |
| <!-- InChI -->
| |
| {{#if: {{{InChI|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | InChI | | | <b>Melting Point</b> || {{{melting_point|}}} |
| | {{{InChI}}} | |
| }}
| |
| | |
| <!-- InChIKey -->
| |
| {{#if: {{{InChIKey|}}} |
| |
| |- | | |- |
| | style="background:#efefef;" | InChIKey | | | <b>Boiling Point</b> || {{{boiling_point|}}} |
| | {{{InChIKey}}} | |
| }}
| |
| | |
| <!-- FOOTER -->
| |
| |- | | |- |
| | colspan="2" style="text-align:center; font-size:85%; padding:5px;" | <small>Data sourced from verified databases</small> | | | 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 compound data in an infobox format.
| |
| | |
| === Example ===
| |
| <syntaxhighlight lang="mediawiki">
| |
| {{Chembox
| |
| | Name = Cholic acid
| |
| | ImageFile = Cholic acid.svg
| |
| | ImageAlt = Skeletal formula of cholic acid
| |
| | ImageCaption = Cholic acid chemical structure
| |
| | ImageFile1 = Cholic acid 3D ball.png
| |
| | ImageAlt1 = 3D ball model
| |
| | ImageCaption1= Cholic acid 3D structure
| |
| | IUPACName = (R)-4-[(3R,5S,7R,8R,9S,10R,12S,13R,14S,17R)-3,7,12-trihydroxy-10,13-dimethyl-1,2,3,4,5,6,7,8,9,11,12,14,15,16,17-tetradecahydrocyclopenta[a]phenanthren-17-yl]pentanoic acid
| |
| | OtherNames = 3α,7α,12α-Trihydroxy-5β-cholan-24-oic acid
| |
| | CAS_number = 81-25-4
| |
| | PubChem = 221493
| |
| | ChemSpiderID = 192104
| |
| | ChEBI = 16359
| |
| | DrugBank = DB02659
| |
| | Formula = C<sub>24</sub>H<sub>40</sub>O<sub>5</sub>
| |
| | MolarMass = 408.57 g/mol
| |
| | MeltingPoint = 198–200 °C
| |
| | SMILES = C[C@H]1CC[C@H]2[C@@H]3CC[C@H]4[C@@H](C[C@@H](O)[C@H]4[C@@H]3CC[C@H]2[C@@]1(C)C)C[C@@H](CC(=O)O)O
| |
| | InChI = 1S/C24H40O5/c1-13-4-5-14-15-6-7-17-20(27)18(15)8-9-21(17)24(14,2)16(13)10-19(26)22(3)11-23(28)12-25/h13-22,25-28H,4-12H2,1-3H3/t13-,14-,15+,16-,17-,18-,19-,20-,21-,22-,24-/m0/s1
| |
| | InChIKey = BHQCQFFYRZLCQQ-HPLJOQBZSA-N
| |
| }}
| |
| </syntaxhighlight>
| |
| | |
| === Parameters ===
| |
| * `Name` - Name of the compound.
| |
| * `ImageFile`, `ImageFile1` - File names for images.
| |
| * `ImageAlt`, `ImageCaption` - Alternative text and captions for images.
| |
| * `IUPACName` - IUPAC name of the compound.
| |
| * `OtherNames` - Synonyms for the compound.
| |
| * `CAS_number`, `PubChem`, `ChemSpiderID`, `ChEBI`, `DrugBank` - External chemical identifiers.
| |
| * `Formula` - Molecular formula.
| |
| * `MolarMass` - Molecular weight.
| |
| * `MeltingPoint` - Melting point temperature.
| |
| * `SMILES`, `InChI`, `InChIKey` - Chemical notations.
| |
| | |
| == Notes ==
| |
| * Empty fields are automatically hidden.
| |
| * The design is clean, functional, and compatible with MediaWiki without Lua dependencies.
| |
| </noinclude>
| |