Template:Molecule: Difference between revisions
From ChemWiki
(Added to the wiki via WikiImport-Script.) |
(Added to the wiki via WikiImport-Script.) |
||
Line 1: | Line 1: | ||
<noinclude>Template for Molecule</noinclude> | <noinclude>Template for Molecule</noinclude> | ||
<includeonly> | <includeonly> | ||
{{#if: {{{cid|}}} | | {| class="float-right infobox wikitable" style="font-size:90%; margin-top:0; width:410px; max-width:500px;" | ||
{{#if: {{{cas|}}} | | |- | ||
{{#if: {{{iupacName|}}} | | !colspan="2" style="font-size:120%; text-align:center; " | Properties | ||
{{#if: {{{abbrev|}}} | | |- | ||
{{#if: {{{trivialname|}}} | | | CID || {{#if: {{{cid|}}} | [https://pubchem.ncbi.nlm.nih.gov/compound/{{{cid}}} {{{cid}}}]|}} | ||
{{#if: {{{molecularMass|}}} | | |- | ||
{{#if: {{{molecularFormula|}}} | | | CAS || {{#if: {{{cas|}}} | {{#set: CAS={{{cas}}} }} {{{cas}}}|}} | ||
{{#if: {{{logP|}}} | | |- | ||
{{#if: {{{hasVendors|}}} | | | IUPAC-Name || {{#if: {{{iupacName|}}} | {{#set: IUPACName={{{iupacName}}} }} {{{iupacName}}}|}} | ||
{{#if: {{{synonyms|}}} | | |- | ||
| Abbreviation || {{#if: {{{abbrev|}}} | {{#set: Abbreviation={{{abbrev}}} }} {{{abbrev}}}|}} | |||
|- | |||
| Trivialname|| {{#if: {{{trivialname|}}} | {{#set: Trivialname={{{trivialname}}} }} {{{trivialname}}}|}} | |||
|- | |||
| Molecular mass || {{#if: {{{molecularMass|}}} | {{#set: MolecularMass={{{molecularMass}}} }} {{{molecularMass}}}|}} | |||
|- | |||
| Molecular formula ||{{#if: {{{molecularFormula|}}} | {{#set: MolecularFormula={{{molecularFormula}}} }} {{{molecularFormula}}}|}} | |||
|- | |||
| LogP || {{#if: {{{logP|}}} | {{#set: LogP={{{logP}}} }} {{{logP}}}|}} | |||
|- | |||
| Has vendors || {{#if: {{{hasVendors|}}} | {{#set: HasVendors={{{hasVendors}}} }} {{{hasVendors}}}|}} | |||
|- | |||
| Synonyms|| {{#if: {{{synonyms|}}} | {{#arraymap:{{{synonyms|}}}|,|x| [[Synonym::x]] }} |}} | |||
|- | |||
|} | |||
{{#tag:chemform| | {{#tag:chemform| | ||
{{{molOrRxn}}} | {{{molOrRxn}}} | ||
Line 25: | Line 34: | ||
}} | }} | ||
{{#arraymap:{{#extractElements:|formula={{{smiles|}}} }}|,|x|[[ContainsElement::x| ]]|\s}} | {{#arraymap:{{#extractElements:|formula={{{smiles|}}} }}|,|x|[[ContainsElement::x| ]]|\s}} | ||
<div> | |||
<span class="toggle-box" resource="chemdata">Click here to show SMILES and InChi.</span> | |||
{| id="chemdata" class="infobox wikitable" style="display:none;" | |||
|- | |||
| InChI || {{#if: {{{inchi|}}} | {{#set: InChI={{{inchi}}} }} {{{inchi}}}|}} | |||
|- | |||
| InChI-Key || {{#if: {{{inchikey|}}} | {{#set: InChIKey={{{inchikey}}} }} {{{inchikey}}}|}} | |||
|- | |||
| SMILES || {{#set: Smiles={{{smiles}}} }} {{{smiles}}} | |||
|- | |||
|} | |||
</div> | |||
{{#if: {{{parent|}}} | Belongs to molecule collection: [[{{{parent}}}]] | }} | |||
[[Category:Molecule]] | [[Category:Molecule]] | ||
<includeonly> | <includeonly> |
Revision as of 12:38, 4 January 2023
Template for Molecule