Template:Download: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
  border-radius: 10px;
  border-radius: 10px;
  background-color: #dfd;
  background-color: #dfd;
  padding: 8px;
  padding-right: 8px;
  padding-top: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-bottom: 0px;
Line 9: Line 9:
  margin: 1px;
  margin: 1px;
  margin-left: 20px;
  margin-left: 20px;
"><b>
"><div style="float:left; margin-top: 5px; margin-left: 1px;">[[File:Download.png|24px|]]</div><div style="font-weight:bold;display:block;float:right;">
{{If|{{{path|}}}
{{If|{{{path|}}}
|[{{{path}}} {{{name}}}]
|[{{{path}}} {{{name}}}]
|{{If|{{{nogithub|}}}
|{{If|{{{nogithub|}}}
|[http://sourceforge.net/projects/arx/files/{{{sourceforge}}}/{{{file}}}/download {{{name}}}]
|{{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name={{{name}}}}}
|[https://github.com/downloads/arx/ArxLibertatis/{{{file}}} {{{name}}}]
|{{GitHubDownload|file={{{file}}}|name={{{name}}}}}
{{If|{{{sourceforge}}}|
{{If|{{{sourceforge}}}| {{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name=(mirror)}}|
<!-- --> [http://sourceforge.net/projects/arx/files/{{{sourceforge}}}/{{{file}}}/download (mirror)]|
}} }} }}
}} }} }}
</b>
</div>
{{If|{{{file|}}}
{{If|{{{file|}}}
|<br>{{{file}}}{{If|{{{size}}}| - {{{size}}}|}}
|<br><span >{{{file}}}{{If|{{{size}}}|<span style='float:right;'>{{{size}}}</span>|}}</span>
|b
|
}}
}}
</div>
</div>

Revision as of 05:20, 18 April 2012


Parameters:

  • name - title of the download [required]
  • file - filename (without path) [required unless path is set]
  • path - full download path (should not be used for github or sourceforge downloads!)
  • nogithub - don't use a github download path
  • sourceforge - use a sourceforge download path, set to url-encoded directory
  • size - textual filesize