Template:Molecule: Difference between revisions
From ChemWiki
(Added to the wiki via WikiImport-Script.) |
(Added to the wiki via WikiImport-Script.) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<includeonly> | <includeonly> | ||
{| class="float-right infobox wikitable" style="font-size:90%; margin-top:0; width:410px; max-width:500px;" | {| class="float-right infobox molecule-infobox wikitable" style="font-size:90%; margin-top:0; width:410px; max-width:500px;" | ||
|- | |- | ||
!colspan="2" style="font-size:120%; text-align:center; " | Properties | !colspan="2" style="font-size:120%; text-align:center; " | Properties | ||
|- | |- | ||
| CID || {{#if: {{{cid|}}} | [https://pubchem.ncbi.nlm.nih.gov/compound/{{{cid}}} {{{cid}}}]|}} | | CID || {{#if: {{{cid|}}} | [https://pubchem.ncbi.nlm.nih.gov/compound/{{{cid}}} {{{cid}}}]|n/a}} | ||
|- | |- | ||
| CAS || {{#if: {{{cas|}}} | {{#set: CAS={{{cas}}} }} {{{cas}}}|}} | | CAS || {{#if: {{{cas|}}} | {{#set: CAS={{{cas}}} }} {{{cas}}}|n/a}} | ||
|- | |- | ||
| IUPAC-Name || {{#if: {{{iupacName|}}} | {{#set: IUPACName={{{iupacName}}} }} {{{iupacName}}}|}} | | IUPAC-Name || {{#if: {{{iupacName|}}} | {{#set: IUPACName={{{iupacName}}} }} {{{iupacName}}}|n/a}} | ||
|- | |- | ||
| Abbreviation || {{#if: {{{abbrev|}}} | {{#set: Abbreviation={{{abbrev}}} }} {{{abbrev}}}|}} | | Abbreviation || {{#if: {{{abbrev|}}} | {{#set: Abbreviation={{{abbrev}}} }} {{{abbrev}}}|n/a}} | ||
|- | |- | ||
| Trivialname|| {{#if: {{{trivialname|}}} | {{#set: Trivialname={{{trivialname}}} }} {{{trivialname}}}|}} | | Trivialname|| {{#if: {{{trivialname|}}} | {{#set: Trivialname={{{trivialname}}} }} {{{trivialname}}}|n/a}} | ||
|- | |- | ||
| Exact mass || {{#if: {{{molecularMass|}}} | {{#set: MolecularMass={{{molecularMass}}} }} {{{molecularMass}}}|}} | | Exact mass || {{#if: {{{molecularMass|}}} | {{#set: MolecularMass={{{molecularMass}}} }} {{{molecularMass}}}|n/a}} | ||
|- | |- | ||
| Molecular formula ||{{#if: {{{molecularFormula|}}} | {{#set: MolecularFormula={{{molecularFormula}}} }} {{{molecularFormula}}}|}} | | Molecular formula ||{{#if: {{{molecularFormula|}}} | {{#set: MolecularFormula={{{molecularFormula}}} }} {{{molecularFormula}}}|n/a}} | ||
|- | |- | ||
| LogP || {{#if: {{{logP|}}} | {{#set: LogP={{{logP}}} }} {{{logP}}}|}} | | LogP || {{#if: {{{logP|}}} | {{#set: LogP={{{logP}}} }} {{{logP}}}|n/a}} | ||
|- | |- | ||
| Has vendors || {{#if: {{{hasVendors|}}} | {{#set: HasVendors={{{hasVendors}}} }} {{{hasVendors}}}|}} | | Has vendors || {{#if: {{{hasVendors|}}} | {{#set: HasVendors={{{hasVendors}}} }} {{{hasVendors}}}|n/a}} | ||
|- | |- | ||
| Synonyms|| {{#if: {{{synonyms|}}} | {{#arraymap:{{{synonyms|}}}| | | Molecular role || {{#if: {{{molecular_role|}}} | {{#arraymap:{{{molecular_role|}}}|,|x| [[MolecularRole::x]] }}|n/a}} | ||
|- | |||
| Synonyms|| {{#if: {{{synonyms|}}} | {{#arraymap:{{{synonyms|}}}|$|x| [[Synonym::x]] }} |n/a}} | |||
|- | |- | ||
|} | |} | ||
Line 36: | Line 38: | ||
<div> | <div> | ||
<span class="toggle-box" resource="chemdata">Click here to show SMILES and | <div><span class="ce-copy-molOrRxn">Click here to copy MOL-file.</span></div> | ||
<div><span class="toggle-box" resource="chemdata">Click here to show SMILES and InChI.</span></div> | |||
{| id="chemdata" class="infobox wikitable" style="display:none;" | {| id="chemdata" class="infobox wikitable" style="display:none;" | ||
|- | |- | ||
Line 47: | Line 50: | ||
|} | |} | ||
{{#set: Molfile={{{molOrRxn}}} }} | |||
</div> | </div> | ||
Latest revision as of 13:55, 21 November 2024
Template for Molecule