Wiki source code of Version Macro
Version 24.8 by Vincent Massol on 2020/09/04
Show last authors
author | version | line-number | content |
---|---|---|---|
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 = | ||
4 | |||
5 | {{code}} | ||
6 | {{version since='11.10.5, 12.5'}} | ||
7 | New feature... | ||
8 | {{/version}} | ||
9 | {{/code}} | ||
10 | |||
11 | Results in: | ||
12 | |||
13 | {{version since='11.10.5, 12.5'}} | ||
14 | New feature... | ||
15 | {{/version}} | ||
16 | |||
17 | = Example 2 = | ||
18 | |||
19 | {{code}} | ||
20 | {{version before='11.10.5, 12.5'}} | ||
21 | New feature... | ||
22 | {{/version}} | ||
23 | {{/code}} | ||
24 | |||
25 | Results in: | ||
26 | |||
27 | {{version before='11.10.5, 12.5'}} | ||
28 | New feature... | ||
29 | {{/version}} |