Template:Download: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
  margin: 1px;
  margin: 1px;
  margin-left: 20px;
  margin-left: 20px;
"><div style="float:left; margin-top: 5px; margin-left: 1px;">[[File:Download.png|24px|]]</div><div style="font-weight:bold;display:block;float:right;">
"><div style="float:left; margin-top: 5px; margin-left: 1px;">[[File:Download.png|24px|]]</div><div style="font-weight:bold;float:right;padding:0px;margin:0px;margin-top: 1px;"><!--
{{If|{{{path|}}}
-->{{If|{{{path|}}}
|[{{{path}}} {{{name}}}]
|[{{{path}}} {{{name}}}]
|{{If|{{{nogithub|}}}
|{{If|{{{nogithub|}}}
Line 16: Line 16:
|{{GitHubDownload|file={{{file}}}|name={{{name}}}}}
|{{GitHubDownload|file={{{file}}}|name={{{name}}}}}
{{If|{{{sourceforge}}}| {{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name=(mirror)}}|
{{If|{{{sourceforge}}}| {{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name=(mirror)}}|
}} }} }}
}} }} }}<!--
{{If|{{{size|1}}}| {{Style|color:#ccc;|{{{size}}}}}|}}
--></div><!--
</div>
-->{{Style|color:#888;font-size: 9px;margin:0px;display:block;padding:0px;|{{{file}}} {{If|{{{size|1}}}|{{Style|display:block;float:right;|{{{size}}}}}|}}}}
</div>
</div>
<noinclude>
<noinclude>
Line 24: Line 24:
Parameters:
Parameters:
* name - title of the download [required]
* name - title of the download [required]
* file - filename (without path) [required unless path is set]
* file - filename (without path) [required]
* path - full download path (should not be used for github or sourceforge downloads!)
* path - full download path (should not be used for github or sourceforge downloads!)
* nogithub - don't use a github download path
* nogithub - don't use a github download path

Revision as of 05:45, 18 April 2012

{{{file}}} {{{size}}}


Parameters:

  • name - title of the download [required]
  • file - filename (without path) [required]
  • 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