User:AngelHerraez/Sandbox2: Difference between revisions
AngelHerraez (talk | contribs) (first attempt at the Chembox templates) |
AngelHerraez (talk | contribs) (testing the Chembox template) |
||
Line 1: | Line 1: | ||
== Simple use of Chembox_3DStruct == | |||
A use of the Chembox_3DStruct template that puts a link with the molecule name leading to a pop-up window with Jmol. <s>The molecule should be uploaded as a file.</s> File types not allowed in this Wiki. | A use of the Chembox_3DStruct template that puts a link with the molecule name leading to a pop-up window with Jmol. <s>The molecule should be uploaded as a file.</s> File types not allowed in this Wiki. | ||
Line 12: | Line 13: | ||
Works OK! | Works OK! | ||
== Use of Chembox (mini version) == | |||
This reproduces (part of) the Chembox_Structure template at Wikipedia. | |||
{| class="toccolours" border="1" width="{{{BoxWidth|250px}}}" style="float: right; clear: right; margin: 0 0 1em 1em; border-collapse: collapse;" | |||
{{Chembox Structure | |||
| 3DStruct = Caffeine.mol | |||
| CrystalStruct = | |||
| Coordination = | |||
| MolShape = mostly planar | |||
}} | |||
|} |
Revision as of 23:23, 25 May 2009
Simple use of Chembox_3DStruct
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!
Use of Chembox (mini version)
This reproduces (part of) the Chembox_Structure template at Wikipedia.
Structure | |
---|---|
3D structure |
<jmol><jmolAppletLink> <wikiPageContents>Caffeine.mol</wikiPageContents> <text>Caffeine.mol</text> </jmolAppletLink> </jmol> |
Molecular shape | mostly planar |