Variable body

Problem : The syntax of a plugin alias is different from a standard plugin.
For instance, here is the syntax for a PluginBox, with a width of 100% and "hello" in the body :

{BOX(width=100%)}hello{BOX}

You can create a plugin alias based on a box with a predefined width of 100% and a pre-defined content that will in the wiki look like :

{my_plugin}

There is no way here to let an user change the body

To do that, here is a configuration example. In this example the body will be pre-filled with the word "hello" and an user will be able to complete it with anything :

plugin name : "my_plugin"

base plugin : "box"

simple plugin arguments

width, default : "100%"

my_var, default : (empty)

plugin parameter documentation

my_var, name : "my_var"

plugin body

default content : "hello %my_var%"

parameters : "my_var", default : "world"

Now, the following code :

{my_plugin}

will look like

hello world

And the following code :

{my_plugin my_var="john"}

will look like

hello john

Usage

When using plugin alias to show just some items from PluginTrackerList, the parameter to filter results at the "Plugin Parameter documentation" need to be also added as arguments of your plugin alias, at the section "Simple plugin arguments" with no value (in this example: "filtervalue").

If you need to delete one argument or one parameter after you already created it, remove its name and value and save changes using "Change Preferences" button in order to have it deleted.