User:AngelHerraez/Sandbox2

From SklogWiki
Revision as of 00:38, 26 May 2009 by AngelHerraez (talk | contribs) (use new template variant)
Jump to navigation Jump to search

Simple use of Chembox_3DStruct

A use of the Chembox_3DStruct_Simple template that puts a link with the molecule name leading to a pop-up window with Jmol. The molecule should be uploaded as a file. File types not allowed in this Wiki.

Let's change the template so that it uses model files uploaded as wiki pages. This code:

{{Chembox 3DStruct Simple|Water.pdb}}

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

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

</jmol>

Another example:

{{Chembox 3DStruct Simple|Benzene.pdb}}

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

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

</jmol>

Works OK!