Difference between revisions of "Template:Latest or old"
(better wording) |
(→Examples: add ploop example) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#ifeq:{{Latest {{{2}}} {{{1}}}}}|{{{3}}}|Below | + | <includeonly>{{#ifeq:{{Latest {{{2}}} {{{1}}}}}|{{{3}}}|Below you can find the change log and downloads for the latest version of {{{4|{{{2}}}}}} {{{1}}}.|{{Warning old version|{{{4|{{{2}}}}}} {{{1}}}|{{{1}}}{{#if:{{{2}}}|/{{{2}}}}}/{{Latest {{{2}}} {{{1}}}}}}}}}</includeonly><noinclude> |
+ | This template is used on download pages to automatically distinguish between the latest and the old versions. | ||
+ | |||
== Usage == | == Usage == | ||
− | <pre><nowiki>{{Latest or old|package|branch|version}}</nowiki></pre> | + | <pre><nowiki>{{Latest or old|package|branch|version|name}}</nowiki></pre> |
* '''package''' can be: kernel, vzctl etc. | * '''package''' can be: kernel, vzctl etc. | ||
* '''branch''' is optional, used for kernel, can be 2.6.24 etc. | * '''branch''' is optional, used for kernel, can be 2.6.24 etc. | ||
* '''version''' can be: 3.0.11 2.6.24-ovz002.2. Corresponds to '''Template:Latest ''branch'' ''package'' '''. | * '''version''' can be: 3.0.11 2.6.24-ovz002.2. Corresponds to '''Template:Latest ''branch'' ''package'' '''. | ||
+ | * '''name''' is optional branch name, for example RHEL4 for rhel4 branch. | ||
=== Examples === | === Examples === | ||
Line 12: | Line 15: | ||
! Code || Results | ! Code || Results | ||
|- | |- | ||
− | |<pre><nowiki>{{Latest or old|kernel|2.6. | + | |<pre><nowiki>{{Latest or old|kernel|2.6.22|2.6.22-ovz005.1}}</nowiki></pre> |
|{{Latest or old|kernel|2.6.24|2.6.24-ovz002.2}} | |{{Latest or old|kernel|2.6.24|2.6.24-ovz002.2}} | ||
|- | |- | ||
|<pre><nowiki>{{Latest or old|kernel|2.6.24|2.6.24-ovz001}}</nowiki></pre> | |<pre><nowiki>{{Latest or old|kernel|2.6.24|2.6.24-ovz001}}</nowiki></pre> | ||
|{{Latest or old|kernel|2.6.24|2.6.24-ovz001}} | |{{Latest or old|kernel|2.6.24|2.6.24-ovz001}} | ||
+ | |- | ||
+ | |- | ||
+ | |<pre><nowiki>{{Latest or old|kernel|rhel4|023stab046.2|RHEL4}}</nowiki></pre> | ||
+ | |{{Latest or old|kernel|rhel4|023stab046.2|RHEL4}} | ||
+ | |- | ||
+ | |<pre><nowiki>{{Latest or old|vzctl||3.0.22}}</nowiki></pre> | ||
+ | |{{Latest or old|vzctl||3.0.22}} | ||
+ | |- | ||
+ | |<pre><nowiki>{{Latest or old|vzctl||3.0.20}}</nowiki></pre> | ||
+ | |{{Latest or old|vzctl||3.0.20}} | ||
+ | |- | ||
+ | |<pre><nowiki>{{Latest or old|ploop||1.13.2}}</nowiki></pre> | ||
+ | |{{Latest or old|ploop||1.13.2}} | ||
|} | |} | ||
+ | [[Category:Templates for download pages]] | ||
</noinclude> | </noinclude> |
Latest revision as of 19:57, 17 April 2015
This template is used on download pages to automatically distinguish between the latest and the old versions.
Usage[edit]
{{Latest or old|package|branch|version|name}}
- package can be: kernel, vzctl etc.
- branch is optional, used for kernel, can be 2.6.24 etc.
- version can be: 3.0.11 2.6.24-ovz002.2. Corresponds to Template:Latest branch package .
- name is optional branch name, for example RHEL4 for rhel4 branch.
Examples[edit]
Code | Results | ||
---|---|---|---|
{{Latest or old|kernel|2.6.22|2.6.22-ovz005.1}} |
| ||
{{Latest or old|kernel|2.6.24|2.6.24-ovz001}} |
| ||
{{Latest or old|kernel|rhel4|023stab046.2|RHEL4}} |
| ||
{{Latest or old|vzctl||3.0.22}} |
| ||
{{Latest or old|vzctl||3.0.20}} |
| ||
{{Latest or old|ploop||1.13.2}} |
|