Difference between revisions of "Template:Dl2"

From CRIU
Jump to navigation Jump to search
(redirect 3.x downloads to github)
 
(polish; improve docs)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexpr: {{#sub:{{{1}}}|0|1}} >= 3 | [[https://codeload.github.com/checkpoint-restore/criu/tar.gz/refs/tags/v{{{1}}}|criu-{{{1}}}.tar.gz]] | [[dl:criu/criu-{{{1}}}.tar.bz2|criu-{{{1}}}.tar.bz2]] }}<noinclude>
+
<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>
  
 
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 codeload.github.org (interwiki <code>gh-codeload:</code>), and uses tar.gz.
  
 
== Examples ==
 
== Examples ==

Latest revision as of 21:58, 22 September 2021


This produces a download link for a given version.

  • for releases < 3, it links to download.openvz.org (interwiki dl:), and uses tar.bz2.
  • for releases >= 3, it links to codeload.github.org (interwiki gh-codeload:), and uses tar.gz.

Examples[edit]

Wiki code Result
{{Dl2|2.3.1}} criu-2.3.1.tar.bz2
{{Dl2|3.14}} criu-3.14.tar.gz