Sandbox

From Jmol
Revision as of 23:02, 13 November 2009 by AngelHerraez (talk | contribs) (Anchors)
Jump to navigation Jump to search

This is a page for testing.

Jmol extension for MediaWiki

This uses uploadedFileContents tag with an XYZ file:

For some reason, checkboxes are not working with the extension. Checboxes now work with the revised extension.

Color atoms:


This one uses the inlineContents tag:

with straight MOL data:
with added pipe characters (|):

None of them work. This seems due to a defective parsing of newlines by the extension. The one on the left works with the revised extension.

Let's test the same with inline PDB data:

with straight PDB data:
with added pipe characters (|):

The right applet works. The difference with MOL format is likely because MOL requires the lines in a certain order, while PDB relies on the starting keyword. I think that the extension is inserting extra newlines and quotes, that spoil the MOL parser but not the PDB parser. The newlines are ignored by Jmol.js, or replaced by pipes. Manually added pipes restore a proper start of line for the PDB parser. --AngelHerraez 22:11, 30 November 2008 (CET) Both work now with the revised extension. No need to insert the pipes.


Finally, if we insert the MOL data without any newlines and with pipes:

things work, so IT IS WAS the newlines.

Using a pop-up window

An image used for illustration and a caption for requesting the Jmol model:

Ethane s.gif
Staggered ethane

Show in 3D using Jmol (popup window)


Anchors

This is a test link to an anchor which should take you near the top of the article.

Contributors

AngelHerraez