User:AngelHerraez/Sandbox2: Difference between revisions
Jump to navigation
Jump to search
AngelHerraez (talk | contribs) (use new template variant) |
AngelHerraez (talk | contribs) (use redirected template) |
||
Line 1: | Line 1: | ||
== Simple use of | == Simple use of Jmol_Link_Popup template == | ||
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: | |||
<nowiki>{{Jmol Link Popup|Water.pdb}}</nowiki> | |||
renders as: | |||
<nowiki>{{ | {{Jmol Link Popup|Water.pdb}} | ||
renders | |||
{{ | |||
Another example: | Another example: | ||
<nowiki>{{ | <nowiki>{{Jmol Link Popup|Benzene.pdb}}</nowiki> | ||
renders | renders as: | ||
{{ | {{Jmol Link Popup|Benzene.pdb}} | ||
Works OK! | Works OK! |
Latest revision as of 00:11, 26 May 2009
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!