6

Pretty self-explanatory. Some examples will only work from a specific version that not everyone might have updated to yet.

2
  • MM? Wasn't that per-version thingy a slider?
    – Braiam
    Jul 21, 2016 at 14:15
  • @Braiam I have no idea how the versioning works yet :/ Jul 21, 2016 at 14:15

1 Answer 1

5

You can add comments defining the version of specific examples (or parts of examples). See for example this one I created recently.

<!-- if version [gte 6] -->
...
<!-- end version if -->
7
  • 1
    I sure hope there's a way to somehow filter out the versions that don't interest you. I also expect that there's not because gosh. Jul 21, 2016 at 14:46
  • Ok, now what the heck that syntax means?
    – Braiam
    Jul 21, 2016 at 22:30
  • Can you clarify where to put this syntax to make an entire example only apply above a particular version?
    – Mark Amery
    Jul 24, 2016 at 19:48
  • 1
    I just wrapped the entire contents in the comments, @Mark. There doesn't seem to be a way of marking the example itself. Jul 24, 2016 at 19:51
  • Cool. Any idea if there's a way to mark an entire topic as only applying above a particular version, rather than just an example?
    – Mark Amery
    Jul 24, 2016 at 19:52
  • I haven't done it myself, but there's supposed to be a slider or something for topics. Jul 24, 2016 at 20:17
  • I'm not overly fond of this solution, as the version box is not terribly obvious. I'd like it to be more obvous that the entire example is only relevant in Version X and onwards.
    – ipsi
    Jul 25, 2016 at 15:01

Not the answer you're looking for? Browse other questions tagged .