這個示例定義瞭如何向你宏中傳遞參數。咱們將會建立一個字體樣式宏,在這個宏中有 2 個參數,容許用戶在這 2 個參數中指定宏中包含的字體的顏色大小。java
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 來調用它們。app
可選的,你也能夠在你的宏中明肯定義參數名。這些參數將會在$param<x> 中調用,其中 <x> 是你參數的名字。eclipse
|
https://www.cwiki.us/display/CONFLUENCEWIKI/Writing+User+Macros字體