块(Section)宏与页面列表宏结合使用,在 Confluence 页面中定义列。查看 使用页面布局,列和分块 中有关的详细内容。
代码示例
下面的代码是提供给希望进一步编辑 Confluence 页面的高级用户使用的。
宏名称: section
宏内容: 富文本,在其中包含有一个或者多个列。
参数名称 | 是否必须 | 默认值 | 参数说明和可接受的值 |
---|
border
| No | False | 如果这个值被设置为 true , 的话,块你的列表将会显示为虚线边框。 |
存储格式示例
下面的示例显示了块宏和列宏是如何协同一起工作的。
< ac:structured-macro ac:name = "section" >
< ac:parameter ac:name = "border" >true</ ac:parameter >
< ac:rich-text-body >
< ac:structured-macro ac:name = "column" >
< ac:parameter ac:name = "width" >100px</ ac:parameter >
< ac:rich-text-body >
< p >This is the content of < strong >column 1</ strong >.</ p >
</ ac:rich-text-body >
</ ac:structured-macro >
< ac:structured-macro ac:name = "column" >
< ac:rich-text-body >
< p >This is the content of < strong >column 2</ strong >.</ p >
</ ac:rich-text-body >
</ ac:structured-macro >
</ ac:rich-text-body >
</ ac:structured-macro >
|
Wiki 标记格式示例
{section:border= true }
{column:width=100px}
This is the content of *column 1 *.
{column}
{column}
This is the content of *column 2 *.
{column}
{section}
|