下面示例顯示瞭如何建立一個用戶宏,在這個用戶宏中顯示文本 'Hello World!' 和任何用戶在宏內容中輸入的內容。html
Macro name | helloworld |
||
Visibility | Visible to all users in the Macro Browser |
||
Macro Title | Hello World |
||
Description | Displays "Hello World" and the macro body. |
||
Categories | Confluence Content |
||
Icon URL | 能夠設置爲空。 | ||
Documentation URL | 能夠設置爲空。 | ||
Macro body processing | Rendered | ||
Template |
在模板字段中輸入下面的內容 - 這個示例將會直接在頁面中進行輸出:java
若是你但願文本顯示在相對的 AUI message class 的話,以下所示:api
|
Now you can add the macro to your Confluence page using the Macro Browser, or by typing {hello in the editor and selecting the macro from the list of suggestions.app
頁面顯示的結果是eclipse
https://www.cwiki.us/display/CONFLUENCEWIKI/Writing+User+Macrosui