Difference between revisions of "Template:DownloadItem"

From The Battle for Wesnoth Wiki
(Use https for SF.net and files.w.o links)
Line 7: Line 7:
 
* hash SHA256.
 
* hash SHA256.
 
* pkgversion Package version number (optional, for packaging fix versions only)
 
* pkgversion Package version number (optional, for packaging fix versions only)
</noinclude>[https://sourceforge.net/projects/wesnoth/files/{{{group}}}/wesnoth-{{{version}}}/{{{filename}}}/download {{{label}}}] ({{#if: {{{pkgversion|}}} | {{{pkgversion}}} | {{{version}}} }}, {{{size}}}){{#if: {{{hash|}}} | <br />SHA256: <code>{{{hash}}}</code> ([https://files.wesnoth.org/releases/{{{filename}}}.sha256 file])}}
+
</noinclude>[https://sourceforge.net/projects/wesnoth/files/{{{group}}}/wesnoth-{{{version}}}/{{{filename}}}/download {{{label}}}] ({{#if: {{{pkgversion|}}} | {{{pkgversion}}} | {{{version}}} }}, {{{size}}}){{#if: {{{hash|}}} | <br />[https://files.wesnoth.org/releases/{{{filename}}}.sha256 SHA256]: <code>{{{hash}}}</code>}}

Revision as of 02:54, 22 July 2017

Parameters:

  • label Label (e.g. "Current version")
  • group SF.net file group (usually wesnoth-X.Y for stable branches and wesnoth for development versions.
  • version SF.net version number (should match the tagged version).
  • filename SF.net file name.
  • size Size label.
  • hash SHA256.
  • pkgversion Package version number (optional, for packaging fix versions only)

{{{label}}} ({{{version}}}, {{{size}}})