Proteopedia:DIY:Templates

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
m (See Also)
(merging templates from other pages)
Line 5: Line 5:
This page is meant to be a resource for finding and using templates.
This page is meant to be a resource for finding and using templates.
 +
<StructureSection load='' size='300' side='right' caption='Surface to test templates' scene='60/607777/Surf_test/1' pspeed='8'>
 +
==Surface display==
-
==Surface fade templates and buttons==
+
===Surface toggles===
-
<Structure load='Insert PDB code or filename here' size='350' frame='true' align='right' caption='Surface Fade Demo Display' scene='60/607777/Surf_test/1' pspeed='8' />
+
 +
These 3 controls are inserted using templates:
-
===Template Versions Ready to Use Anywhere Easily===
+
{{Button Toggle Surface}} · {{Link Toggle Surface}} · {{Checkbox Toggle Surface}}
 +
 
 +
:<small>''Note to Wiki admin's: for the checkboxes to work, you must add a function setupCheckboxShiftClick() that overrides the one included in wikibits.js''</small>
 +
 
 +
===Surface fade templates===
 +
Ready to use anywhere easily:
{{Link FadeSurfaceBasic}} (basic)
{{Link FadeSurfaceBasic}} (basic)
Line 21: Line 28:
{{Link FadeInSurface}}
{{Link FadeInSurface}}
-
As Buttons:<br/>
+
As buttons:<br/>
{{Button FadeSurfaceBasic}} (basic)
{{Button FadeSurfaceBasic}} (basic)
Line 29: Line 36:
{{Button FadeInSurface}}
{{Button FadeInSurface}}
-
 
+
===Surface fade code-in-page versions===
-
 
+
-
 
+
-
===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.
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.
Line 61: Line 65:
 +
==Atom rendering style==
-
==Label-handling templates==
+
These controls are not templates, but inserted directly as wiki extension tags:
 +
 
 +
<jmol>
 +
<jmolCheckbox>
 +
<scriptWhenChecked>spacefill on</scriptWhenChecked>
 +
<scriptWhenUnchecked>spacefill off</scriptWhenUnchecked>
 +
<text>spacefill on/off</text>
 +
</jmolCheckbox>
 +
</jmol>
 +
 
 +
<jmol>
 +
<jmolRadioGroup>
 +
<item>
 +
<text>spacefill on</text>
 +
<script>spacefill on</script>
 +
</item>
 +
<item>
 +
<text>spacefill off</text>
 +
<script>spacefill off</script>
 +
</item>
 +
</jmolRadioGroup>
 +
</jmol>
 +
 
 +
==Label handling==
{{Link Toggle LabelsOff}} (No-demo made yet.)
{{Link Toggle LabelsOff}} (No-demo made yet.)
-
==Color Handling Templates==
+
==Color handling==
* See [[DRuMS#The DRuMS Color Schemes|DRuMS color template]].
* See [[DRuMS#The DRuMS Color Schemes|DRuMS color template]].
-
Additional ones not listed [[DRuMS#The DRuMS Color Schemes|there]]:
+
Additional ones not listed there:
-
{{Button ColorLeucine}} (No-demo made yet.)
+
{{Button ColorLeucine}}
{{Button ColorReceptorLeucine}} (No-demo made yet.)
{{Button ColorReceptorLeucine}} (No-demo made yet.)
Line 80: Line 108:
{{[User:Wayne Decatur/Template ColorKey Composition lcprotein|Template ColorKey Composition protein}} - `protein` darkened for light backgrounds
{{[User:Wayne Decatur/Template ColorKey Composition lcprotein|Template ColorKey Composition protein}} - `protein` darkened for light backgrounds
 +
</StructureSection>
-
==Checkboxes and toggles templates==
 
- 
-
See [[User:Angel_Herraez/Sandbox_2|here]] for demo and how to make.
 
==See Also==
==See Also==

Revision as of 11:13, 16 August 2017

Templates as a tool

Existing templates can be used in Proteopedia pages to call commonly used wiki-text or Jmol code. A good description of how to use them, with color templates, can be found here. Additional templates can be made.

This page is meant to be a resource for finding and using templates.

Surface to test templates

Drag the structure with the mouse to rotate


See Also

Proteopedia Page Contributors and Editors (what is this?)

Wayne Decatur, Karsten Theis, Angel Herraez, Jaime Prilusky

Personal tools