Difference between revisions of "User:Bduke"
AngelHerraez (talk | contribs) (fixing wikiPageContents) |
AngelHerraez (talk | contribs) (→Test of PopUp window) |
||
Line 12: | Line 12: | ||
I would suggest that something like this is used on wikipedia or other Wikimedia Foundation projects such as wikiversity or wikibooks, so that the jmol image is only loaded if the reader wants to load it. | I would suggest that something like this is used on wikipedia or other Wikimedia Foundation projects such as wikiversity or wikibooks, so that the jmol image is only loaded if the reader wants to load it. | ||
+ | |||
+ | Another possibility: an image is displayed and the user may request the Jmol model: | ||
+ | {|name="userboxes" id="userboxes" style="margin-left: 1em; margin-bottom: 0.5em; width: 170px; border: {{{bordercolor|#99B3FF}}} solid 1px; background-color: {{{backgroundcolor|#FFFFFF}}}; {{{extra-css|}}}" align="right" | ||
+ | |- | ||
+ | |<center>[[Image:Ethane s.gif]]</center> | ||
+ | |- | ||
+ | | <center>'''Staggered ethane''' <br /> | ||
+ | <jmol><jmolAppletLink><title>Show in 3D using Jmol (popup window)</title><color>gray</color> | ||
+ | <uploadedFileContents>ethane_s.pdb</uploadedFileContents></jmolAppletLink> | ||
+ | </jmol> | ||
+ | </center> | ||
+ | |- | ||
+ | |} | ||
==An example of how a molecule might be shown on Wikipedia== | ==An example of how a molecule might be shown on Wikipedia== |
Revision as of 01:25, 30 November 2008
Interested in Jmol in general and in particular right now about adding Jmol images to Wikis, particularly Wikipedia.
Contents
Tests of Jmol incorporated into a MediaWiki wiki
Test of PopUp window
I would suggest that something like this is used on wikipedia or other Wikimedia Foundation projects such as wikiversity or wikibooks, so that the jmol image is only loaded if the reader wants to load it.
Another possibility: an image is displayed and the user may request the Jmol model:
An example of how a molecule might be shown on Wikipedia
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 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