Confluence 6 用户宏示例 - Color and Size
这个示例定义了如何向你宏中传递参数。我们将会创建一个字体样式宏,在这个宏中有 2 个参数,允许用户在这 2 个参数中指定宏中包含的字体的颜色大小。
| Macro name | stylish |
||
| Visibility | Visible to all users in the Macro Browser |
||
| Macro Title | Stylish |
||
| Description | Applies colour and size to text. |
||
| Categories | Confluence Content |
||
| Icon URL | 可以设置为空 | ||
| Documentation URL | 可以设置为空 | ||
| Macro body processing | Rendered |
||
| Template |
在模板字段中输入下面的代码。如果你的宏要求一个或者多个参数的话,你可以使用变量 $param0 到 $param9 来调用它们。
可选的,你也可以在你的宏中明确定义参数名。这些参数将会在$param<x> 中调用,其中 <x> 是你参数的名字。
|
https://www.cwiki.us/display/CONFLUENCEWIKI/Writing+User+Macros

浙公网安备 33010602011771号