MediaWiki/Tags for Pop-up Models
Revision as of 18:21, 25 April 2019 by AngelHerraez (talk | contribs) (updates to Jmol MW Extension v5)
Tags in the Jmol Extension for MediaWiki that will open models in a pop-up
Contents
These tags will write a link or button that, when clicked by the user, will open a small window (pop-up) with 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>
(but note that not all of them will make sense here)
The wikicode is displayed to the right of each example.
jmolAppletButton tag
Using pSpeed 8 to test high quality cartoons. |
<jmol> <jmolAppletButton> <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> <script>cartoon only</script> <pspeed>8</pspeed> </jmolAppletButton> </jmol> |
Testing accented characters, and pSpeed 2. |
<jmol> <jmolAppletButton> <urlContents> https://files.rcsb.org/download/1ab0.pdb.gz </urlContents> <title> 1AB0.pdb Proteína de ratón ligante de lípidos, a pH 4.5</title> <text> Proteína ligante de lípidos </text> <pspeed>2</pspeed> <script> spin on </script> <caption> This is from 1AB0.pdb </caption> </jmolAppletButton> </jmol> |
jmolAppletLink tag
<jmol> <jmolAppletLink> <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> </jmolAppletLink> </jmol> |
<< Back to the index page of the Extension.