Jmol/Interactivity: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Karsten Theis (talk | contribs)
No edit summary
Karsten Theis (talk | contribs)
No edit summary
Line 28: Line 28:
  <nowiki>
  <nowiki>
{{subst:Scene button|37/376372/Overall/3|hide water; set zshade off}}</nowiki>
{{subst:Scene button|37/376372/Overall/3|hide water; set zshade off}}</nowiki>
<jmol>
  <jmolButton>
    <script>script /scripts/37/376372/Overall/3.spt;
            hide water; set zshade off</script>
    <text>Lysozyme</text>
  </jmolButton>
</jmol>


The string behind the first vertical line (the first parameter) is the scene name, and the string behind the second vertical line (the second parameter) is the list of commands called right after the scene is loaded. Once you type this (or paste it) into the editor and save it, the code above will be inserted. You can learn more about templates at [https://www.mediawiki.org/wiki/Help:Templates].
The string behind the first vertical line (the first parameter) is the scene name, and the string behind the second vertical line (the second parameter) is the list of commands called right after the scene is loaded. Once you type this (or paste it) into the editor and save it, the code above will be inserted. You can learn more about templates at [https://www.mediawiki.org/wiki/Help:Templates].