Changes

Jump to navigation Jump to search
12 bytes removed ,  16:40, 23 September 2021
fixed to use github.com/checkpoint-restore/criu/archive/vXXX/criu-XXX.tar.gz instead of codeload. This fixes the file name when using wget.
Line 1: Line 1: −
<includeonly>{{#ifexpr: {{#sub:{{{1}}}|0|1}} >= 3 | [[gh-codeload:checkpoint-restore/criu/tar.gz/refs/tags/v{{{1}}} | criu-{{{1}}}.tar.gz]] | [[dl:criu/criu-{{{1}}}.tar.bz2|criu-{{{1}}}.tar.bz2]] }}</includeonly><noinclude>
+
<includeonly>{{#ifexpr: {{#sub:{{{1}}}|0|1}} >= 3 | [[github:checkpoint-restore/criu/archive/v{{{1}}}/criu-{{{1}}}.tar.gz | criu-{{{1}}}.tar.gz]] | [[dl:criu/criu-{{{1}}}.tar.bz2|criu-{{{1}}}.tar.bz2]] }}</includeonly><noinclude>
    
This produces a download link for a given version.
 
This produces a download link for a given version.
    
* for releases < 3, it links to download.openvz.org (interwiki <code>dl:</code>), and uses tar.bz2.
 
* for releases < 3, it links to download.openvz.org (interwiki <code>dl:</code>), and uses tar.bz2.
* for releases >= 3, it links to codeload.github.org (interwiki <code>gh-codeload:</code>), and uses tar.gz.
+
* for releases >= 3, it links to github.org (interwiki <code>github:</code>), and uses tar.gz.
    
== Examples ==
 
== Examples ==
Line 11: Line 11:  
! Wiki code !! Result
 
! Wiki code !! Result
 
|-
 
|-
| <code><nowiki>{{Dl2|2.3.1}}</nowiki></code> || {{Dl2|2.3.1}}
+
| <code><nowiki>{{Dl|2.3.1}}</nowiki></code> || {{Dl|2.3.1}}
 
|-
 
|-
| <code><nowiki>{{Dl2|3.14}}</nowiki></code> || {{Dl2|3.14}}
+
| <code><nowiki>{{Dl|3.14}}</nowiki></code> || {{Dl|3.14}}
 
|-
 
|-
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Navigation menu