Template:LabVIEW VI Analyzer Toolkit InVersion: Difference between revisions
Appearance
Change the behavior so that the version info is only displayed when the current version is "-1" |
Ensure that the value is returned even if no current version is specified. |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{3|{{{current|}}}}}}|-1 | <includeonly>{{#ifeq:{{{3|{{{current|}}}}}}|-1 | ||
| {{#if:{{{1|{{{first|}}}}}} | | {{#if:{{{1|{{{first|}}}}}} | ||
| {{#if:{{{2|{{{last|}}}}}} | | {{#if:{{{2|{{{last|}}}}}} | ||
| Line 10: | Line 5: | ||
| {{{value}}} (LabVIEW VI Analyzer Toolkit {{{1|{{{first}}}}}} and later) | | {{{value}}} (LabVIEW VI Analyzer Toolkit {{{1|{{{first}}}}}} and later) | ||
}} | }} | ||
}} | |||
| {{#if:{{{3|{{{current|}}}}}} | |||
| {{#ifexpr:{{LabVIEW VI Analyzer Toolkit Version|{{{1|{{{first|0}}}}}}}} <= {{LabVIEW VI Analyzer Toolkit Version|{{{3|{{{current|}}}}}}}} | |||
| {{#ifexpr:{{LabVIEW VI Analyzer Toolkit Version|{{{2|{{{last|9999}}}}}}}} >= {{LabVIEW VI Analyzer Toolkit Version|{{{3|{{{current|}}}}}}}} | |||
| {{{4|{{{value}}}}}} | |||
}} | |||
}} | |||
| {{{4|{{{value}}}}}} | |||
}} | }} | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 06:26, 20 August 2024
This documentation is transcluded from Template:LabVIEW VI Analyzer Toolkit InVersion/doc (history).
Returns a value only if a version is between a first and last version.
Usage
{{LabVIEW VI Analyzer Toolkit InVersion
|first=2009
|last=2024 Q1
|current=2019
|value=Value when between versions
}}
Parameters
| Parameter | Description |
|---|---|
| first (optional) | First version where the value is included. If no value is specified, the value is included in all versions until 'last'. |
| last (optional) | Last version where the value is included. If no value is specified, the value is included in all versions since 'first'. |
| current | Current version |
| value | Value to display when current version is between first and last version. If the current version is "-1", the value is displayed with a version range: "<value> (LabVIEW VI Analyzer Toolkit <first>..<last>)" or "<value> (LabVIEW VI Analyzer Toolkit <first> and later"). |