Difference between revisions of "Template:DownloadItem"

From The Battle for Wesnoth Wiki
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>Parameters:
 
<noinclude>Parameters:
# SF.net file group (usually <code>wesnoth-X.Y</code> for stable branches and <code>wesnoth</code> for development versions.
+
* label Label (e.g. "Current version")
# SF.net version number (should match the tagged version).
+
* group SF.net file group (usually <code>wesnoth-X.Y</code> for stable branches and <code>wesnoth</code> for development versions.
# SF.net file name.
+
* version SF.net version number (should match the tagged version).
# Size label.
+
* filename SF.net file name.
# SHA256.
+
* size Size label.
# Package version number (optional, for packaging fix versions only)
+
* hash SHA256.
</noinclude>[http://sourceforge.net/projects/wesnoth/files/{{{1}}}/wesnoth-{{{2}}}/{{{3}}}] ({{#if: {{{6|}}} | {{{6}}}} | {{{2}}} }}, {{{4}}}<br />SHA256: <code>{{{5}}}</code> [http://files.wesnoth.org/releases/{{{3}}}.sha256 file]
+
* pkgversion Package version number (optional, for packaging fix versions only)
 +
</noinclude><b>[https://sourceforge.net/projects/wesnoth/files/{{{group}}}/wesnoth-{{{version}}}/{{{filename}}}/download {{#if: {{{pkgversion|}}} | {{{pkgversion}}} | {{{version}}} }} {{{label}}}]</b> <small>({{{size}}}){{#if: {{{hash|}}} | <br />[https://files.wesnoth.org/releases/{{{filename}}}.sha256 SHA256]: <code>{{{hash}}}</code>}}</small>

Latest revision as of 03:04, 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)

{{{version}}} — {{{label}}} ({{{size}}})

This page was last edited on 22 July 2017, at 03:04.