Proteopedia:DIY:Macros
From Proteopedia
(Difference between revisions)
m |
m |
||
Line 9: | Line 9: | ||
==Defined Macros== | ==Defined Macros== | ||
- | '''Example #1: Calling a basic macro function''' | ||
The currently listing of defined macro functions can be found at [[Proteopedia:Macros]]. | The currently listing of defined macro functions can be found at [[Proteopedia:Macros]]. | ||
Line 15: | Line 14: | ||
Integrating macro use into JSmol code is straightforward. | Integrating macro use into JSmol code is straightforward. | ||
+ | |||
+ | '''Example #1: Calling a basic macro function''' | ||
+ | |||
This example doesn't require any parameter to act. It causes the structure shown to 'bobble()'. | This example doesn't require any parameter to act. It causes the structure shown to 'bobble()'. | ||
<!-- | <!-- |
Revision as of 04:11, 4 January 2021
Macros as a tool
Macros can be used in Proteopedia pages to call commonly used JSmol code. Macro functions can take parameters so that the code is general but can act on the specified item or items. Additional macros can be made.
This page is meant to be a resource for finding and using macros.
|