What I’d like to do in the future is to be able to indicate visually the extent of the content affected by a version and to display the Since or Before in the gutter or on hover.
Usage:
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.
{{version since='11.10.5,12.5'}}
New feature...
{{/version}}
{{version before='11.10.5,12.5'}}
New feature...
{{/version}}
+1 for the macro, at the very least because we need a common style for this kind of info and indeed it can be very handy in the future for displaying extension doc based on the version.
Small UI remark I’m not a big fan of the way the list of version is currently displayed: it makes it difficult to read, I would separate more the versions with a space after the comma at least.
+1 for using the macro. Just a small remark. I inspected the HTML and the content is not marked that well. It should have at least a CSS class on the top most element and it should also include some meta data (using data-* attributes, e.g. the versions). This is useful for styling and for JavaScript processing.
I would use RC when specifying the version in the macro parameter but not display it. This way, technical users can still find the real since (either by looking at the source or by inspecting the HTML), while simple users get what they are interested in. BTW, would be good to also have a title attribute with the text “Before …” or “Since …” in case the + or <= are too cryptic.