Wiki source code of Version Macro

Last modified by Vincent Massol on 2024/03/19

Show last authors
1 Note: This macro works only standalone (and not inline) voluntarily. This is to allow displaying the versions in the gutter for example, which wouldn't be possible if used inline.
2
3 = Example 1: Inline with "since" =
4
5 {{code}}
6 {{version since='11.10.5, 12.5, 12.7RC1'}}
7 New feature...
8 {{/version}}
9 {{/code}}
10
11 Results in:
12
13 {{version since="11.10.5, 12.5, 12.7RC1"}}
14 New feature...
15 {{/version}}
16
17 = Example 2: Standalone with "before" =
18
19 {{code}}
20 {{version before='11.10.5, 12.5'}}
21 Paragraph1
22
23 Paragraph2
24
25 {{/version}}
26 {{/code}}
27
28 Results in:
29
30 {{version before="11.10.5, 12.5"}}
31 Paragraph1
32
33 Paragraph2
34 {{/version}}
35
36 = Example 3: Inline in list items =
37
38 {{code}}
39 * {{version since='11.10.5'}}List item1{{/version}}
40 * {{version since='12.5'}}List item2{{/version}}
41 * {{version since='12.7RC1'}}List item3{{/version}}
42 {{/code}}
43
44 Results in:
45
46 * {{version since="11.10.5"}}List item1{{/version}}
47 * {{version since="12.5"}}List item2{{/version}}
48 * {{version since="12.7RC1"}}List item3{{/version}}
49
50 = Example 4: Different product =
51
52 {{code}}
53 {{version product='Latex' since='11.10.5, 12.5, 12.7RC1'}}
54 New feature...
55 {{/version}}
56 {{/code}}
57
58 Results in:
59
60 {{version product="Latex" since="11.10.5, 12.5, 12.7RC1"}}
61 New feature...
62 {{/version}}

Get Connected