MediaWiki/Tags for Pop-in Models
Revision as of 18:22, 25 April 2019 by AngelHerraez (talk | contribs) (updates to Jmol MW Extension v5)
Tags in the Jmol Extension for MediaWiki that will insert models in the page upon user action
Contents
These tags will write a link, a button or an image that, when clicked by the user, will insert into the page a JSmol panel that displays a structure. They accept more customization (e.g. scripts) than the simple tags.
The tags are sub-tags of the <jmol> tag and in turn include
several sub-tags: see the full list documented for <jmolApplet>
The wikicode is displayed to the right of each example.
jmolAppletInlineButton tag
|
Model file retrieved from the web (urlContents). |
<jmol>
<jmolAppletInlineButton>
<urlContents> https://files.rcsb.org/download/1ab0.pdb.gz </urlContents>
<title> 1AB0.pdb Murine adipocyte lipid binding protein at pH 4.5</title>
<text> Adipocyte lipid binding protein </text>
<size>250</size>
<color>linen</color>
</jmolAppletInlineButton>
</jmol>
|
jmolAppletInlineLink tag
|
Cyclohexane
Model file retrieved from this wiki (uploadedFileContents). |
<jmol>
<jmolAppletInlineLink>
<uploadedFileContents> Chair.cml </uploadedFileContents>
<text> Cyclohexane </text>
<title> Cyclohexane, chair conformation </title>
<caption> This is a highly favoured conformation</caption>
<size>300</size>
<color>#FFFFDD</color>
</jmolAppletInlineLink>
</jmol>
|
jmolApplet tag with image subtag
The JSmol model is inserted when clicking on the image. Here using a file from this wiki (uploadedFileContents) and framed |
<jmol>
<jmolApplet>
<image>Cyclohexane_chair.png</image>
<uploadedFileContents> Chair.cml </uploadedFileContents>
<title> Cyclohexane, chair conformation </title>
<text> Cyclohexane </text>
<size>300</size>
<color>#FFFFDD</color>
<frame>true</frame>
</jmolApplet>
</jmol>
|
<< Back to the index page of the Extension.