Difference between revisions of "User:Bduke"

From Jmol
Jump to navigation Jump to search
m
(urlContents Test from a different server - now working)
Line 156: Line 156:
  
  
==urlContent Test from a different server - does not work==
+
==urlContents Test from a different server - does not work==
 
+
'''Now it works'''. This uses the signed applet to retrieve the file from pdb.org (could be from any server).
 
<center>
 
<center>
 
<jmol><jmolApplet>
 
<jmol><jmolApplet>
 
<signed>true</signed>
 
<signed>true</signed>
 
<name>1CRN</name><color>blue</color><size>250</size>
 
<name>1CRN</name><color>blue</color><size>250</size>
<urlContents>http://magog.vcp.monash.edu.au/pictures/dave1.pdb</urlContents>
+
<urlContents>http://www.pdb.org/pdb/files/1crn.pdb.gz</urlContents>
 
</jmolApplet></jmol></center>
 
</jmolApplet></jmol></center>
<!--
+
 
-->
 
 
<!--
 
<!--
 
==Alchemy file - does not work - not an allowed type in Jmol==
 
==Alchemy file - does not work - not an allowed type in Jmol==

Revision as of 10:20, 9 December 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

How should molecules be shown on Wikipedia

Ethane s.gif
Staggered ethane

This is an example of how a molecule might be displayed on Wikipedia, or other Wikimedia Foundation projects such as wikiversity or wikibooks, with the text raping to the left of a box with a Jmol image in it. The Jmol image is only loaded if the reader wants to load it by clicking on the text below the straight image.

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}}, as here.


Test of PopUp window

This is a simple test of the popup used above:-

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 are examples using inlineContents:

        

Artemisinin.pdb uploaded

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


wikiPageContent Test from this server

This pdb file was uploaded to the wiki as a file and is being read from its page: User:Bduke/ethane-s.pdb


urlContents Test from a different server - does not work

Now it works. This uses the signed applet to retrieve the file from pdb.org (could be from any server).