User:AngelHerraez/Sandbox2

From SklogWiki
Revision as of 22:57, 25 May 2009 by AngelHerraez (talk | contribs) (first attempt at the Chembox templates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A use of the Chembox_3DStruct 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|Water.pdb}}

renders so: | 3D structure | <jmol><jmolAppletLink> <wikiPageContents></wikiPageContents> <text></text> </jmolAppletLink> </jmol> |-

Another example:

{{Chembox 3DStruct|Benzene.pdb}}

renders so: | 3D structure | <jmol><jmolAppletLink> <wikiPageContents></wikiPageContents> <text></text> </jmolAppletLink> </jmol> |-

Works OK!