Difference between revisions of "Template:Kernel branch"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(fixed if version statement)
(added optional EOL field)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{version|}}}|{{Latest or old|kernel|{{{path|{{{name}}}}}}|{{{version}}}}}}}
+
<noinclude>
 +
{{TemplateDoc}}
 +
</noinclude>
 +
 
 +
{{#if:{{{version|}}}|{{Latest or old|kernel|{{{path}}}|{{{version}}}|{{{name}}}}}}}
 
{|class="infobox"
 
{|class="infobox"
 
! class="header" colspan="2" | <center><big><span class="header">Kernel branch {{{name}}}</span></big></center>
 
! class="header" colspan="2" | <center><big><span class="header">Kernel branch {{{name}}}</span></big></center>
Line 8: Line 12:
 
! align="right" | Status
 
! align="right" | Status
 
| {{{status}}}
 
| {{{status}}}
 +
{{#if:{{{eol|}}}|
 +
{{!}}-
 +
! align="right" {{!}} End Of Life
 +
{{!}} {{{eol}}}
 +
}}
 
|-
 
|-
! align="right" | Latest
+
! align="right" | Latest
| [[download/kernel/{{{path|{{{name}}}}}}/{{Latest {{{path|{{{name}}}}}} kernel}}|{{Latest {{{path|{{{name}}}}}} kernel}}]]
+
| {{Kernel link|{{{path}}}|{{Latest {{{path}}} kernel}}}}
 
|-
 
|-
 
! align="right" | Archives
 
! align="right" | Archives
| [[download/kernel/{{{path|{{{name}}}}}}/Archives|{{{name}}}]]
+
| [[download/kernel/{{{path}}}/Archives|{{{name}}}]]
 
{{#if:{{{repo|}}}|
 
{{#if:{{{repo|}}}|
 
{{!}}-
 
{{!}}-
Line 20: Line 29:
 
}}
 
}}
 
|}
 
|}
 
<noinclude>
 
[[Category:Templates for kernel download pages]]
 
</noinclude>
 

Latest revision as of 22:04, 8 July 2014

Usage[edit]

You are not supposed to use Template:Kernel branch directly. Instead, use one of the following templates on all the pages for the given kernel branch:

If there is a template missing (say for a new branch), create it!

Below example is for 2.6.24.

{{Kernel branch 2.6.24|version}}

Optional argument version is compared to contents of Template:Latest 2.6.24 kernel -- depending on the result of comparison, an appropriate message or an Template:Warning old version with appropriate arguments is printed.


Kernel branch {{{name}}}
Based on {{{based}}}
Status {{{status}}}
Latest [[Download/kernel/{{{path}}}/{{Latest {{{path}}} kernel}}|{{Latest {{{path}}} kernel}}]]
Archives [[download/kernel/{{{path}}}/Archives|{{{name}}}]]