User:Angel Herraez/Sandbox 2
From Proteopedia
< User:Angel Herraez(Difference between revisions)
(New page: ==Testing templates== {{STRUCTURE_3cin | PDB=3cin | SCENE= }} {{Checkbox Toggle Surface|mySurfaceName}}) |
|||
(18 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | ==Testing templates== | + | ==Testing some templates== |
- | + | ||
- | {{Checkbox Toggle Surface | + | <jmol> |
+ | <jmolApplet> | ||
+ | <signed>true</signed> | ||
+ | <size>300</size> | ||
+ | <script>load =3cin</script> | ||
+ | </jmolApplet> | ||
+ | </jmol> | ||
+ | |||
+ | These controls are 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> | ||
+ | |||
+ | |||
+ | <jmol> | ||
+ | <jmolLink> | ||
+ | <script>select NAD; spacefill 50%; select all; isosurface myS select(NAD) ignore(not NAD) molecular; | ||
+ | </script> | ||
+ | <text>Prepare Surface</text> | ||
+ | </jmolLink> | ||
+ | </jmol> | ||
+ | (wait until the hourglass cursor disappears, then try the following controls) | ||
+ | |||
+ | These 3 controls are inserted using templates: | ||
+ | |||
+ | {{Button Toggle Surface}} · | ||
+ | {{Link Toggle Surface}} · {{Checkbox Toggle Surface}} | ||
+ | |||
+ | (The checkboxes AGAIN are working properly -- the key is to have a function setupCheckboxShiftClick() | ||
+ | that overrides the one included in wikibits.js |
Current revision
Testing some templates
Drag the structure with the mouse to rotate |
These controls are inserted directly, as wiki extension tags:
(wait until the hourglass cursor disappears, then try the following controls)
These 3 controls are inserted using templates:
· ·
(The checkboxes AGAIN are working properly -- the key is to have a function setupCheckboxShiftClick() that overrides the one included in wikibits.js