Template:Version: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(Template taken from http://en.wiki.railvivid.railml.org/index.php?title=Template:Version) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{ | <includeonly>{{#switch:{{{1}}} | ||
|1 | |||
|}</includeonly><noinclude> | |1.x | ||
== | |1.0 | ||
This template | |1.1 | ||
|2.0 | |||
|2.1=outdated | |||
|2.2 | |||
|2.3=supported | |||
|2.4 | |||
|3.1=current | |||
|2.5 | |||
|3.2 | |||
|3.x=upcoming | |||
|#default=unknown}}</includeonly><noinclude> | |||
==Usage== | |||
This template maps, whether a certain version number exists and whether it is current, upcoming or outdated. | |||
===Arguments=== | |||
The only, unnamed and default argument of this template is the version number to be checked. | |||
==Example== | ==Example== | ||
<nowiki>{{version| | <nowiki>{{version|{{current}}}}</nowiki> | ||
delivers (as an illustrative example; [[Template:Current]] should never be employed within this template in practice; always write the version number explicitely) | delivers (as an illustrative example; [[Template:Current]] should never be employed within this template in practice; always write the version number explicitely) | ||
{{version|{{current}}}} | |||
<nowiki>{{version|0.80}}</nowiki> | <nowiki>{{version|0.80}}</nowiki> | ||
Line 25: | Line 30: | ||
delivers | delivers | ||
{| | {{version|0.80}} | ||
|} | <nowiki>{{version|1}}</nowiki> | ||
delivers | |||
{{version|1}} | |||
<nowiki>{{version|2.3}}</nowiki> | |||
delivers | |||
{{version|2.3}} | |||
<nowiki>{{version|3.x}}</nowiki> | |||
delivers | |||
{{version|3.x}} | |||
[[Category:ContentTemplate]]</noinclude> | |||
[[Category: |
Latest revision as of 13:48, 19 August 2019
Usage
This template maps, whether a certain version number exists and whether it is current, upcoming or outdated.
Arguments
The only, unnamed and default argument of this template is the version number to be checked.
Example
{{version|{{current}}}}
delivers (as an illustrative example; Template:Current should never be employed within this template in practice; always write the version number explicitely)
upcoming
{{version|0.80}}
delivers
unknown
{{version|1}}
delivers
outdated
{{version|2.3}}
delivers
supported
{{version|3.x}}
delivers
upcoming