HoneyMoose
  • 首页
  • Java
  • Jersey
  • Jira
  • Confluence
  • U.S.
    • USRealEstate
    • USVisaTrack
    • H1B
  • 项目和网站
    • CWIKI.US
    • OSSEZ 社区
    • WIKI.OSSEZ.COM
    • BUG.OSSEZ.COM
    • RSS.OSSEZ.COM
BLOG.OSSEZ.COM
A responsive blog theme focused om user reading experience
  1. Home
  2. Computer Science
  3. Confluence
  4. This article

Confluence 6 用户宏示例 - Hello World

2018年04月25日 689Browse 0Like 0Comments

下面示例显示了如何创建一个用户宏,在这个用户宏中显示文本 'Hello World!' 和任何用户在宏内容中输入的内容。

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

在模板字段中输入下面的内容 - 这个示例将会直接在页面中进行输出:

## @noparams
Hello World!
$body

如果你希望文本显示在相对的 AUI message class 的话,如下所示:

## @noparams
<div class="aui-message closeable">
Hello World!
$body
</div>

在页面中使用 'Hello World' 宏

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.

页面显示的结果是

 

https://www.cwiki.us/display/CONFLUENCEWIKI/Writing+User+Macros

Tags: Confluence 用户宏
Last updated:2018年04月25日

Kratos

stay absorbed stay excellent

Like
< Previous
Next >

Comments

Cancel reply

Newest Hotspots Random
Newest Hotspots Random
IBM Semeru Windows 下的安装 JDK 17 Okhttp 的 retrofit2 运行警告信息异常 应该升级 JDK 到 17 了吗 OpenAI-J 如何进行测试 微信 API 的发送客服消息返回对象不正确 PHP Windows 下 XAMPP 的 xdebug 配置
ChatGPT 嵌入微信公众号中的访问关于 USRealEstate 公众号的重要更新PHP 的 json_encode 异常Window 的 PHP XAMPP 安装 mongodb 的扩展PHP Windows 下 XAMPP 的 xdebug 配置微信 API 的发送客服消息返回对象不正确
潇湘猪手 Java Hash 碰撞 Confluence 6 空间权限概述 美国波士顿市区的房子一平米是多少 裁员潮血洗硅谷是坏事还是好事 Confluence 6 基本性能问题诊断步骤
Categories
  • Algorithm(算法)
  • AMQP
  • Angular
  • CI
  • Compile And CI
  • Computer Science
  • Confluence
  • DataBase
  • Gradle
  • H1B
  • Hibernate
  • IDE
  • Java
  • Jersey
  • Jira
  • MariaDB
  • PrestaShop
  • Spring
  • Spring Batch
  • U.S.
  • USRealEstate
  • USVisaTrack
  • 我的小厨

COPYRIGHT © 2020 HoneyMoose. ALL RIGHTS RESERVED.

THEME CWIKIUS.CN MADE BY VTROIS