User:AngelHerraez/Sandbox2: Difference between revisions

From SklogWiki
Jump to navigation Jump to search
(first attempt at the Chembox templates)
(No difference)

Revision as of 22:57, 25 May 2009

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!