User:AngelHerraez/Sandbox1: Difference between revisions
Jump to navigation
Jump to search
AngelHerraez (talk | contribs) (New page: This is the method currently used at SklogWiki to insert a JmolApplet: <nowiki><jmol> <jmolApplet> <script>set spin X 10; spin on</script> <size>200</size> <color>lightgrey</color...) |
AngelHerraez (talk | contribs) (test the new version of Jmol_general) |
||
Line 22: | Line 22: | ||
A better solution is to have a template that inserts the code and uses a more friendly format like | A better solution is to have a template that inserts the code and uses a more friendly format like | ||
<nowiki>{{Jmol_general|File.etc|Caption}}</nowiki> | <nowiki>{{Jmol_general|File.etc|Caption}}</nowiki> | ||
Let's try that: | |||
<nowiki>{{Jmol_general2|Water.pdb|A model of water}}</nowiki> | |||
{{Jmol_general2|Water.pdb|A model of water}} |
Revision as of 11:08, 25 May 2009
This is the method currently used at SklogWiki to insert a JmolApplet:
<jmol> <jmolApplet> <script>set spin X 10; spin on</script> <size>200</size> <color>lightgrey</color> <wikiPageContents>Water.pdb</wikiPageContents> </jmolApplet> </jmol>
<jmol>
<jmolApplet> <script>set spin X 10; spin on</script> <size>200</size> <color>lightgrey</color> <wikiPageContents>Water.pdb</wikiPageContents> </jmolApplet>
</jmol>
That is OK, but is a little hard on the users, who need to know the markup and insert it properly into the page.
A better solution is to have a template that inserts the code and uses a more friendly format like
{{Jmol_general|File.etc|Caption}}
Let's try that:
{{Jmol_general2|Water.pdb|A model of water}}