Difference between revisions of "User:Bduke"

From Jmol
Jump to navigation Jump to search
(fmt and comment out most of the failing images)
(fixing applet names for targets)
Line 17: Line 17:
 
|<center>
 
|<center>
 
<jmol><jmolApplet>
 
<jmol><jmolApplet>
<name>ethane_s</name><color>red</color><size>150</size>
+
<name>ethane_s0</name><color>red</color><size>150</size>
 
<uploadedFileContents>ethane_s.pdb</uploadedFileContents>
 
<uploadedFileContents>ethane_s.pdb</uploadedFileContents>
 
</jmolApplet>
 
</jmolApplet>
Line 41: Line 41:
 
<center>
 
<center>
 
<jmol><jmolApplet><script>set spin X 10; spin on</script>
 
<jmol><jmolApplet><script>set spin X 10; spin on</script>
<name>ethane_s</name><color>palegreen</color><size>250</size>
+
<name>ethane_s1</name><color>palegreen</color><size>250</size>
 
<uploadedFileContents>ethane_s.pdb</uploadedFileContents>
 
<uploadedFileContents>ethane_s.pdb</uploadedFileContents>
 
</jmolApplet>
 
</jmolApplet>
<jmolButton><script>spin on</script><name>ethane_s</name><text>Start spinning</text></jmolButton>
+
<jmolButton><script>spin on</script><name>ethane_s1</name><text>Start spinning</text></jmolButton>
<jmolButton><script>spin off</script><name>ethane_s</name><text>Stop spinning</text></jmolButton>
+
<jmolButton><script>spin off</script><name>ethane_s1</name><text>Stop spinning</text></jmolButton>
 
</jmol></center>  
 
</jmol></center>  
 
</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>  
 
</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>  
 
<center>
 
<center>
 
<jmol><jmolApplet><script>set spin X 10; spin on</script>
 
<jmol><jmolApplet><script>set spin X 10; spin on</script>
<name>ethane_e</name><color>skyblue</color><size>250</size>
+
<name>ethane_e1</name><color>skyblue</color><size>250</size>
 
<uploadedFileContents>ethane_e.pdb</uploadedFileContents>
 
<uploadedFileContents>ethane_e.pdb</uploadedFileContents>
 
</jmolApplet>
 
</jmolApplet>
<jmolButton><script>spin on</script><name>ethane_e</name><text>Start spinning</text></jmolButton>
+
<jmolButton><script>spin on</script><name>ethane_e1</name><text>Start spinning</text></jmolButton>
<jmolButton><script>spin off</script><name>ethane_e</name><text>Stop spinning</text></jmolButton>
+
<jmolButton><script>spin off</script><name>ethane_e1</name><text>Stop spinning</text></jmolButton>
 
</jmol></center>  
 
</jmol></center>  
 
</td></tr></table>
 
</td></tr></table>
Line 66: Line 66:
 
<jmol><jmolApplet>
 
<jmol><jmolApplet>
 
<script>set spin X 10; spin on</script>
 
<script>set spin X 10; spin on</script>
<name>ethane_s</name><color>palegreen</color><size>250</size>
+
<name>ethane_s2</name><color>palegreen</color><size>250</size>
 
<inlineContents>
 
<inlineContents>
 
HEADER    PROTEIN                                19-OCT-95
 
HEADER    PROTEIN                                19-OCT-95
Line 91: Line 91:
 
</inlineContents>
 
</inlineContents>
 
</jmolApplet>
 
</jmolApplet>
<jmolButton><script>spin on</script><name>ethane_s</name><text>Start spinning</text></jmolButton>
+
<jmolButton><script>spin on</script><name>ethane_s2</name><text>Start spinning</text></jmolButton>
<jmolButton><script>spin off</script><name>ethane_s</name><text>Stop spinning</text></jmolButton>
+
<jmolButton><script>spin off</script><name>ethane_s2</name><text>Stop spinning</text></jmolButton>
 
</jmol></center>
 
</jmol></center>
 
</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><center>
 
</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><center>
 
<jmol><jmolApplet>
 
<jmol><jmolApplet>
 
<script>set spin X 10; spin on</script>
 
<script>set spin X 10; spin on</script>
<name>ethane_e</name><color>skyblue</color><size>250</size>
+
<name>ethane_e2</name><color>skyblue</color><size>250</size>
 
<inlineContents>
 
<inlineContents>
 
HEADER    PROTEIN                                19-OCT-95
 
HEADER    PROTEIN                                19-OCT-95
Line 121: Line 121:
 
END
 
END
 
</inlineContents></jmolApplet>
 
</inlineContents></jmolApplet>
<jmolButton><script>spin on</script><name>ethane_e</name><text>Start spinning</text></jmolButton>
+
<jmolButton><script>spin on</script><name>ethane_e2</name><text>Start spinning</text></jmolButton>
<jmolButton><script>spin off</script><name>ethane_e</name><text>Stop spinning</text></jmolButton>
+
<jmolButton><script>spin off</script><name>ethane_e2</name><text>Stop spinning</text></jmolButton>
 
</jmol></center>
 
</jmol></center>
 
</td></tr></table>
 
</td></tr></table>

Revision as of 00:20, 30 November 2008

Interested in Jmol in general and in particular right now about adding Jmol images to Wikis, particularly Wikipedia.

Tests of Jmol incorporated into a MediaWiki wiki

Test of PopUp window

An example of how a molecule might be shown on Wikipedia

Staggered ethane

This is an example of how a molecule might be displayed on Wikipedia, with the text raping to the left of a box with a Jmol image in it.

The PopUp formula would also be a good way with the pop up box in the chemical infobox. This would leave viewing the molecule to the reader. It woud not appear when opening the page.

While there are several ways of having the data file, it seems to me that on Wikipedia the easiest and most suitable would be to have them uploaded like images. Preferable they could be uploaded to Commons but the current extension would not, I believe, accept that.

On Wikipedia the paragraph could be lengthened to fit the image by using the template {{clear}}, now installed here.

Staggered and eclipsed ethane

These are pdb files generated by Sybyl for staggered and eclipsed ethane. They use uploadedFileContents type for the data. Use the buttons and the menu that comes up by right mouse clicking on the image to manipulate the images. The left mouse can be used to move the image.

        

These inlineContents examples used to work but no longer do so.

        

Artemisinin.pdb uploaded

Some examples that do not work are commented out below. Feel free to edit this page to look at them.