Wiki Macro
By using the Wiki Macro execution vector, your script can be used as a macro in wiki pages, blogposts, comments and even the site welcome message!
To run your script, use the following syntax:
{scriptix:id=your_config_name}{scriptix}
Hints and Tips
You can get access to the macro parameters within your script - this allows people to pass settings in on an instance-by-instance basis, for example:
{scriptix:engine=JavaScript|name=Joe Burns}
output = 'The name is: '+macro.params.get("name");
{scriptix}
You can use User Macros to make your Scriptix macros easier and cleaner for end-users.
Find out how...
- Macro Name: Anything you want
- Has Body: No
- Output: Macro generates wiki markup
- Template:
{scriptix:id=your_config_name|name=${param0}}{scriptix}
For example, if you call your user macro the-name, it becomes much easier to use your script in pages:
Scripts
The following scripts contain the vector-wikimacro label indicating that they use this execution vector:
Backup Manager
— These scripts allow you to create a handy interface for managing Confluence nightly backups via the web browser...
|
Hello JRuby
— A proof of concept script that shows how to use JRuby with Scriptix
|
Page Forum
— A very early attempt at making a mini-forum in Confluence...
|
Scanner
— A basic script that recursively scans through the objects, properties and methods available in your context...
|
User Group List
— This script lists all the user groups in Confluence...
|