Wiki source code of Version Macro

Version 19.1 by Vincent Massol on 2020/09/04

Hide last authors
Vincent Massol 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
Vincent Massol 16.1 3 = Example 1 =
4
5 {{code}}
Vincent Massol 15.2 6 {{version since='11.10.5, 12.5'}}
Vincent Massol 6.1 7 New feature...
8 {{/version}}
Vincent Massol 16.1 9 {{/code}}
Vincent Massol 11.1 10
Vincent Massol 16.1 11 Results in:
12
13 {{version since='11.10.5, 12.5'}}
14 New feature...
15 {{/version}}
16
17 = Example 2 =
18
19 {{code}}
Vincent Massol 15.2 20 {{version before='11.10.5, 12.5'}}
Vincent Massol 11.1 21 New feature...
22 {{/version}}
Vincent Massol 16.1 23 {{/code}}
24
25 Results in:
26
27 {{version before='11.10.5, 12.5'}}
28 New feature...
29 {{/version}}

Get Connected