Wiki source code of Version Macro
Last modified by Michael Hamann on 2024/05/15
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
15.1 | 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 | |||
![]() |
32.1 | 3 | = Example 1: Inline with "since" = |
![]() |
16.1 | 4 | |
5 | {{code}} | ||
![]() |
27.1 | 6 | {{version since='11.10.5, 12.5, 12.7RC1'}} |
![]() |
6.1 | 7 | New feature... |
8 | {{/version}} | ||
![]() |
16.1 | 9 | {{/code}} |
![]() |
11.1 | 10 | |
![]() |
16.1 | 11 | Results in: |
12 | |||
![]() |
43.1 | 13 | {{version since="11.10.5, 12.5, 12.7RC1"}} |
![]() |
16.1 | 14 | New feature... |
15 | {{/version}} | ||
16 | |||
![]() |
32.1 | 17 | = Example 2: Standalone with "before" = |
![]() |
16.1 | 18 | |
19 | {{code}} | ||
![]() |
15.2 | 20 | {{version before='11.10.5, 12.5'}} |
![]() |
32.1 | 21 | Paragraph1 |
22 | |||
23 | Paragraph2 | ||
24 | |||
![]() |
11.1 | 25 | {{/version}} |
![]() |
16.1 | 26 | {{/code}} |
27 | |||
28 | Results in: | ||
29 | |||
![]() |
43.1 | 30 | {{version before="11.10.5, 12.5"}} |
![]() |
32.1 | 31 | Paragraph1 |
32 | |||
33 | Paragraph2 | ||
![]() |
16.1 | 34 | {{/version}} |
![]() |
32.1 | 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 | |||
![]() |
44.1 | 46 | * {{version since="11.10.5"}}List item1{{/version}} |
![]() |
43.1 | 47 | * {{version since="12.5"}}List item2{{/version}} |
48 | * {{version since="12.7RC1"}}List item3{{/version}} | ||
![]() |
32.1 | 49 | |
![]() |
36.1 | 50 | = Example 4: Different product = |
51 | |||
52 | {{code}} | ||
![]() |
41.1 | 53 | {{version product='Latex' since='11.10.5, 12.5, 12.7RC1'}} |
![]() |
36.1 | 54 | New feature... |
55 | {{/version}} | ||
56 | {{/code}} | ||
57 | |||
58 | Results in: | ||
59 | |||
![]() |
43.1 | 60 | {{version product="Latex" since="11.10.5, 12.5, 12.7RC1"}} |
![]() |
36.1 | 61 | New feature... |
62 | {{/version}} |