Proteopedia:DIY:Templates: Difference between revisions

From Proteopedia
Jump to navigation Jump to search
Jaime Prilusky (talk | contribs)
New page: Templates as a tool
 
Wayne Decatur (talk | contribs)
moved some good template and code examples here
Line 1: Line 1:
Templates as a tool
Templates as a tool
==Surface fade links and buttons==
<Structure load='Insert PDB code or filename here' size='350' frame='true' align='right' caption='.' scene='60/607777/Surf_test/1' pspeed='8' />
===Template Versions Ready to Use Anywhere Easily===
{{Link FadeSurfaceBasic}} (basic)
{{Link FadeSurface}} (with fancy cartoons)
{{Link Toggle FancyCartoonHighQualityView}}
{{Link FadeInSurface}}
As Buttons:<br/>
{{Button FadeSurfaceBasic}} (basic)
{{Button FadeSurface}} (with fancy cartoons)
{{Button FadeInSurface}}
===Surface Fade Code-in-Page Versions===
While not templates, carry out similar functions as the `Surface Fade` templates and may be useful for further development or as examples of using Jmol coding in Proteopedia pages.
<jmol>
<jmolLink>
  <script> var a = [1,2,3,4,5,6,7,8]; for(var i IN a) {isosurface translucent @i; delay 0.4;}
  </script>
  <text>Fade surface to invisible</text>
</jmolLink>
</jmol> (basic)
<jmol>
<jmolLink>
  <script> set ribbonborder on; set antialiasdisplay on; var a = [1,2,3,4,5,6,7,8]; for(var i IN a) {isosurface translucent @i; delay 0.4;}
  </script>
  <text>Fade surface to invisible</text>
</jmolLink>
</jmol> (with fancy cartoons)
<jmol>
<jmolLink>
  <script> var a = [8,7,6,5,4,3,2,1,0]; for(var i IN a) {isosurface translucent @i; delay 0.4;}
</script>
  <text>Fade back to surface opaque</text>
</jmolLink>
</jmol>

Revision as of 18:09, 24 July 2017

Templates as a tool


Surface fade links and buttonsSurface fade links and buttons

.

Drag the structure with the mouse to rotate


Template Versions Ready to Use Anywhere EasilyTemplate Versions Ready to Use Anywhere Easily

(basic)

(with fancy cartoons)

As Buttons:

(basic)

(with fancy cartoons)



Surface Fade Code-in-Page VersionsSurface Fade Code-in-Page Versions

While not templates, carry out similar functions as the `Surface Fade` templates and may be useful for further development or as examples of using Jmol coding in Proteopedia pages.

(basic)

(with fancy cartoons)

Proteopedia Page Contributors and Editors (what is this?)Proteopedia Page Contributors and Editors (what is this?)

Jaime Prilusky, Wayne Decatur, Angel Herraez, Karsten Theis