Template:LabVIEW VI Analyzer Toolkit InVersion: Difference between revisions
Appearance
Add default values for first and last version |
Add version info if the current version is not specified |
||
| Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#if:{{{current|}}} | ||
| {{#ifexpr:{{#switch:{{{1|{{{first|0}}}}}} | |||
| {{#ifexpr:{{#switch:{{{ | |||
| 2017 SP1 = 2017 | | 2017 SP1 = 2017 | ||
| 2022 Q3 = 2022 | | 2022 Q3 = 2022 | ||
| 2023 Q1 = 2023 | | 2023 Q1 = 2023 | ||
| 2024 Q1 = 2024 | | 2024 Q1 = 2024 | ||
| #default = {{{2|{{{last|9999}}}}}} | | #default = {{{1|{{{first|0}}}}}} | ||
}} <= {{{3|{{{current}}}}}} | |||
| {{#ifexpr:{{#switch:{{{2|{{{last|9999}}}}}} | |||
| 2017 SP1 = 2017 | |||
| 2022 Q3 = 2022 | |||
| 2023 Q1 = 2023 | |||
| 2024 Q1 = 2024 | |||
| #default = {{{2|{{{last|9999}}}}}} | |||
}} >= {{{3|{{{current}}}}}} | |||
| {{{4|{{{value}}}}}} | |||
}} | |||
}} | }} | ||
| {{#if:{{{1|{{{first|}}}}}} | |||
| {{{value}}} (LabVIEW VI Analyzer Toolkit {{{1|{{{first}}}}}} and later | |||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> | ||
Revision as of 09:07, 19 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"). |