Template:Download: Difference between revisions
Jump to navigation
Jump to search
(Don't use GitHub downloads anymore as that feature is deprecated) |
(Use the new and improved CSS-based download-button from the innoextract website) |
||
Line 1: | Line 1: | ||
< | <ul class="downloads"><li><!-- | ||
"><!-- | |||
icon | icon | ||
-- | -->{{Icon|download}}<!-- | ||
download link | download link | ||
-- | --><!-- | ||
custom link | custom link | ||
-->{{ | -->{{#if:{{{url|}}}|[{{{url}}} {{{name}}}]<!-- | ||
github link | github link | ||
-->|{{ | -->|{{#ifeq:{{{sourceforge|1}}}|1|{{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!-- | ||
... with sourceforge mirror | ... with sourceforge mirror | ||
--> {{ | --> {{#ifeq:{{{selfhosted|1}}}|1| {{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name=(mirror)}}|}}<!-- | ||
sourceforge link | sourceforge link | ||
Line 31: | Line 21: | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--> | --><!-- | ||
filename | filename | ||
--> | --><span class="name">{{{file}}}</span><!-- | ||
and filesize | and filesize | ||
--> {{ | -->{{#if:{{{size|}}}| <span class="size">{{{size}}}</span>}}<!-- | ||
newline | |||
-->{{#if:{{{checksum|}}}{{{signature|}}}|<br>}}<!-- | |||
and checksum | |||
-->{{#if:{{{checksum|}}}| <span class="checksum">MD5: <code>{{{checksum}}}</code></span>}}<!-- | |||
-->}}<!-- | and siganture | ||
-->{{#if:{{{siganture|}}}| <span class="signature">[{{{signature}}} signature]</span>}}<!-- | |||
--></ | --></li></ul><noinclude> | ||
Parameters: | Parameters: | ||
Line 53: | Line 48: | ||
* selfhosted - set to 0 to not use a self-hosted download path | * selfhosted - set to 0 to not use a self-hosted download path | ||
* size - textual filesize | * size - textual filesize | ||
* checksum - MD5 checksum | |||
* signature - signature file | |||
</noinclude> | </noinclude> |
Revision as of 02:59, 12 January 2013
- {{{name}}} (mirror){{{file}}}
Parameters:
- name - title of the download [required]
- file - filename (without path) [required]
- dir - subdirectory for file for sourceforge/self-hosted [required]
- url - full download path (should not be used for sourceforge or self-hosted downloads!)
- sourceforge - set to 0 to not use a sourceforge download path
- selfhosted - set to 0 to not use a self-hosted download path
- size - textual filesize
- checksum - MD5 checksum
- signature - signature file