Template:Download: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
--><div style="float:left; margin-top: 8px; margin-left: 3px;">[[File:Download.png|24px|]]</div><!--
--><div style="float:left; margin-top: 8px; margin-left: 3px;">[[File:Download.png|24px|]]</div><!--
--><div style="font-weight:bold;float:right;padding:0px;margin:0px;margin-top: 1px;"><!--
--><div style="font-weight:bold;float:right;padding:0px;margin:0px;margin-top: 1px;"><!--
-->{{If|{{{path|}}}
-->{{If|{{{path|}}}|[{{{path}}} {{{name}}}]|<!--
|[{{{path}}} {{{name}}}]
-->{{If|{{{nogithub|}}}|{{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name={{{name}}}}}|<!--
|{{If|{{{nogithub|}}}
-->{{GitHubDownload|file={{{file}}}|name={{{name}}}}}<!--
|{{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name={{{name}}}}}
--><!-- {{If|{{{sourceforge}}}| {{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name=(mirror)}}|}}--><!--
|{{GitHubDownload|file={{{file}}}|name={{{name}}}}}
-->}}<!-- -->}}<!--
{{If|{{{sourceforge}}}| {{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name=(mirror)}}|
}} }} }}<!--
--></div><!--
--></div><!--
-->{{Style|color:#888;font-size: 9px;margin:0px;display:block;padding:0px;|{{{file}}} {{If|{{{size|1}}}|{{Style|display:block;float:right;|{{{size}}}}}|}}}}
-->{{Style|color:#888;font-size: 9px;margin:0px;display:block;padding:0px;|{{{file}}} {{If|{{{size|1}}}|{{Style|display:block;float:right;|{{{size}}}}}|}}}}

Revision as of 05:53, 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