Difference between revisions of "MediaWiki/Demo"

From Jmol
Jump to navigation Jump to search
(4 intermediate revisions by 2 users not shown)
Line 96: Line 96:
 
   <jmolAppletInlineLink>
 
   <jmolAppletInlineLink>
 
     <uploadedFileContents> Chair.cml </uploadedFileContents>
 
     <uploadedFileContents> Chair.cml </uploadedFileContents>
 +
    <text> Cyclohexane </text>
 
     <title> Cyclohexane, chair conformation </title>
 
     <title> Cyclohexane, chair conformation </title>
     <text> Cyclohexane </text>
+
     <caption> This is a very favoured conformation</caption>
 
     <size>300</size>
 
     <size>300</size>
 
     <color>#FFFFDD</color>
 
     <color>#FFFFDD</color>
Line 106: Line 107:
 
</tr>
 
</tr>
 
</table>
 
</table>
 +
 +
=== jmolApplet tag with cover image ✓ ===
 +
The JSmol model is inserted when clicking on the image.
 +
Here using uploadedFileContents
 +
<jmol>
 +
  <jmolApplet>
 +
    <image>Cyclohexane_chair.png</image>
 +
    <uploadedFileContents> Chair.cml </uploadedFileContents>
 +
    <title> Cyclohexane, chair conformation </title>
 +
    <text> Cyclohexane </text>
 +
    <size>300</size>
 +
    <color>#FFFFDD</color>
 +
  </jmolApplet>
 +
</jmol>
  
 
== In-page models ==
 
== In-page models ==
Line 250: Line 265:
 
   <jmolApplet>
 
   <jmolApplet>
 
     <name>D</name>  
 
     <name>D</name>  
     <title>Data read from the page Models/2-propanol </title>  
+
     <title>This is 2-propanol </title>  
 
     <color>yellowtint</color>  
 
     <color>yellowtint</color>  
 
     <size>260</size>  
 
     <size>260</size>  
     <caption>This is 2-propanol</caption>  
+
     <caption>Data read from the page [[Models/2-propanol]]</caption>  
 
     <wikiPageContents> Models/2-propanol </wikiPageContents>
 
     <wikiPageContents> Models/2-propanol </wikiPageContents>
 
   </jmolApplet>
 
   </jmolApplet>
Line 261: Line 276:
 
<tr>
 
<tr>
 
<td style="vertical-align:top;">
 
<td style="vertical-align:top;">
 +
 
==== Using script ✓ ====
 
==== Using script ✓ ====
 
<jmol>
 
<jmol>
 
   <jmolApplet>
 
   <jmolApplet>
 
     <name>A</name>  
 
     <name>A</name>  
     <title>This box might hold a 3D model</title>  
+
     <title>This box has a message, but might hold a 3D model</title>  
 
     <color>blueTint</color>  
 
     <color>blueTint</color>  
 
     <size>150</size>  
 
     <size>150</size>  
     <!--script> echo Hi there!</script-->
+
     <script> echo Hi there!</script>
    <script> load :water</script>
 
 
   </jmolApplet>
 
   </jmolApplet>
 
</jmol>
 
</jmol>

Revision as of 11:13, 29 March 2019

Test for the Jmol Extension for MediaWiki

Pop-up models

A user action will open a popup window with a model.

jmolFile tag ✓

The link cyclohexane will open a popup window displaying Chair.cml taken from this wiki

<jmolFile text='cyclohexane'>Chair.cml</jmolFile>

jmolMol tag ✓

The link in your coffee will open a popup window displaying caffeine. También algo en el café

<jmolMol text='something in your coffee'>caffeine</jmolMol>

and something in vinegar

jmolSmiles tag ✓

The link nitrobenzene will open a popup window displaying nitrobenzene

<jmolSmiles text='nitrobenzene'>c1ccccc1[N+](=O)[O-]</jmolSmiles>

jmolPdb tag ✓

The link adipocyte lipid binding protein will open a popup window displaying 1ab0.pdb. Esta es una proteína que une lípidos

<jmolPdb text='adipocyte lipid binding protein'>1ab0</jmolPdb>

jmolAppletButton tag ✓

jmolAppletLink tag ✓

Adipocyte lipid binding protein

Pop-in models

User action will insert a model within the page.

jmolAppletInlineButton tag ✓

Using urlContents

jmolAppletInlineLink tag ✓

Using uploadedFileContents

Cyclohexane

jmolApplet tag with cover image ✓

The JSmol model is inserted when clicking on the image. Here using uploadedFileContents

Cyclohexane, chair conformation

In-page models

A model is inserted as part of the page at page load time.

jmolApplet tag

Using uploadedFileContents ✓

A model stored in a file in this wiki

Chair conformation of cyclohexane

Using urlContents ✓

A file retrieved from the PDB

Murine adipocyte lipid binding protein at pH 4.5 (1AB0.pdb)

Using inlineContents ✓

This is 1-propanol

Using wikiPageContents ✓

This is 2-propanol

Data read from the page Models/2-propanol

Using script ✓

This box has a message, but might hold a 3D model

....