User:AngelHerraez/Sandbox2

From SklogWiki
Jump to navigation Jump to search

Simple use of Jmol_Link_Popup template[edit]

This template puts a link with the molecule pagename leading to a pop-up window with Jmol. The molecule should be a model file uploaded as wiki page. This code:

{{Jmol Link Popup|Water.pdb}}

renders as: 3D structure: <jmol><jmolAppletLink>

  <wikiPageContents>Water.pdb</wikiPageContents>
  <text>Water.pdb</text>
</jmolAppletLink>

</jmol>

Another example:

{{Jmol Link Popup|Benzene.pdb}}

renders as: 3D structure: <jmol><jmolAppletLink>

  <wikiPageContents>Benzene.pdb</wikiPageContents>
  <text>Benzene.pdb</text>
</jmolAppletLink>

</jmol>

Works OK!