Wiki-Quellcode von Excerpt Macro
Version 3.1 von xwikiadmin am 2023/04/25 10:54
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | = Description = |
2 | |||
3 | The Excerpt macro is a bridge between Confluence and XWiki. It allows the user to mark part of the page's content for use by other macros. | ||
4 | |||
5 | = Parameters = | ||
6 | |||
7 | |=Parameter|=Description|=Default | ||
8 | |**atlassian-macro-output-type**|The ouput type. It can be either BLOCK or INLINE.|INLINE | ||
9 | |**hidden**|If true, the content of the macro will be hidden.|false | ||
10 | |||
11 | = Example of usage = | ||
12 | |||
13 | Example of excerpt with HTML : | ||
14 | |||
15 | {{code}} | ||
16 | {{excerpt}} | ||
17 | |=Title1|=Title2|=Title3 | ||
18 | |Text1|Text2|Text3 | ||
19 | {{/excerpt}} | ||
20 | {{/code}} | ||
21 | |||
22 | The result is the following : | ||
23 | |||
24 | {{excerpt}} | ||
25 | |=Title1|=Title2|=Title3 | ||
26 | |Text1|Text2|Text3 | ||
27 | {{/excerpt}} | ||
28 | |||
29 | Example of hidden excerpt : | ||
30 | |||
31 | {{code}} | ||
32 | {{excerpt hidden="true"}} | ||
33 | My hidden content. | ||
34 | {{/excerpt}} | ||
35 | {{/code}} | ||
36 | |||
37 | The result is the following : | ||
38 | |||
39 | {{excerpt hidden="true"}} | ||
40 | My hidden content. | ||
41 | {{/excerpt}} |