User:Jaime Prilusky/JSmolExtension
From Proteopedia
(Difference between revisions)
(→A few examples of supported tags using [http://proteopedia.org/wiki/support/JSmolExtension/JmolExtension_604.zip JmolExtension_604.zip]) |
(→A few examples of supported tags using JmolExtension_604) |
||
Line 1: | Line 1: | ||
<div style='background-color:#66FF66;padding:5px;'> | <div style='background-color:#66FF66;padding:5px;'> | ||
== A few examples of supported tags using JmolExtension_604 == | == A few examples of supported tags using JmolExtension_604 == | ||
+ | </div> | ||
* Download the file [http://proteopedia.org/wiki/support/JSmolExtension/JmolExtension_604.zip JmolExtension_604.zip] | * Download the file [http://proteopedia.org/wiki/support/JSmolExtension/JmolExtension_604.zip JmolExtension_604.zip] | ||
Line 6: | Line 7: | ||
* Add to the LocalSettings.php a line wfLoadExtension( 'Jmol' ); | * Add to the LocalSettings.php a line wfLoadExtension( 'Jmol' ); | ||
- | </div> | ||
Some [[User:Jaime Prilusky/Test/JSmolExtensionExamples|more examples]] | Some [[User:Jaime Prilusky/Test/JSmolExtensionExamples|more examples]] | ||
Revision as of 18:43, 4 January 2025
- Download the file JmolExtension_604.zip
- Expand this .zip in the extensions folder of your wiki. It will create the folder Jmol/.
- Add to the LocalSettings.php a line wfLoadExtension( 'Jmol' );
Some more examples
JSmol applet in the same page
wikiPageContents |
![]() |
Some caption here, enabled for wikitext, i.e double square brackets 3rec |
Drag the structure with the mouse to rotate |
The applet on the right is generated from this code <jmol><jmolApplet> <title> wikiPageContents </title> <float>right</float> <color>red</color><size>200</size> <uploadedFileContents>chair.xyz</uploadedFileContents> <pspeed>2</pspeed> <caption>Some caption here, enabled for wikitext, i.e double square brackets [[3rec]]</caption> <controls>spin popup</controls> <animgifurl>http://proteopedia.org/wiki/images/8/8d/2cts.gif</animgifurl> </jmolApplet></jmol>
- <caption> Text displayed below the applet
- <captioncss> CSS style for Caption
- <color> Applet background colour
- <controls> Draws control buttons [ all | spin | quality | popup ]
- <float> [ left | right ]
- <frame> true: draws frame around applet
- <pspeed> Platform speed for applet [ 1 .. 8 ]
- <script> Jmol script, i.e. load $NC(Cl)(C)O;
- <size> Applet side in pixels
- <title> Text displayed on top of the applet
- <titlecss> CSS style for Title
- <animgifurl> URL for animated GIF to display before rendering the model
- <uploadedfilecontents> renders uploaded structure
- <urlcontents> renders structure from URL
- <wikipagecontents> renders content from wiki page
JSmol applet in a popup window
jmolFile <jmolFile text="Explanatory text for link">Chair.xyz</jmolFile>
... 'and what is the use of a book,' thought Alice 'without pictures or conversation?'
jmolSmiles <jmolSmiles text='nitrobenzene'>c1ccccc1[N+](=O)[O-]</jmolSmiles>
Both versions, using the target as a link or using an alternate text, are supported: nitrobenzene and c1ccccc1[N+](=O)[O-]
jmolAppletButton
jmolPdb <jmolPdb>3rec</jmolPdb> 3rec