Difference between revisions of "Template:Latest or old"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(In case of old version, link directly to the latest version)
(fix link to latest version)
Line 1: Line 1:
<includeonly>{{#ifeq:{{Latest {{{2}}} {{{1}}}}}|{{{3}}}|Below you can find the change log and downloads for the latest version of {{{2}}} {{{1}}}.|{{Warning old version|{{{2}}} {{{1}}}|{{{1}}}{{#if:{{{2}}}|/{{{2}}}}}/{{{3}}}}}}}</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{Latest {{{2}}} {{{1}}}}}|{{{3}}}|Below you can find the change log and downloads for the latest version of {{{2}}} {{{1}}}.|{{Warning old version|{{{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.
 
This template is used on download pages to automatically distinguish between the latest and the old versions.
  

Revision as of 19:20, 18 March 2008

This template is used on download pages to automatically distinguish between the latest and the old versions.

Usage

{{Latest or old|package|branch|version}}
  • 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 .

Examples

Code Results
{{Latest or old|kernel|2.6.24|2.6.24-ovz002.2}}
Warning.svg Warning: this is an old version of 2.6.24 kernel. For the latest version, see Download/kernel/2.6.24/2.6.24-ovz009.1.
{{Latest or old|kernel|2.6.24|2.6.24-ovz001}}
Warning.svg Warning: this is an old version of 2.6.24 kernel. For the latest version, see Download/kernel/2.6.24/2.6.24-ovz009.1.
{{Latest or old|vzctl||3.0.22}}
Warning.svg Warning: this is an old version of vzctl. For the latest version, see Download/vzctl/4.11.1.
{{Latest or old|vzctl||3.0.20}}
Warning.svg Warning: this is an old version of vzctl. For the latest version, see Download/vzctl/4.11.1.