Template:Download: Difference between revisions
Jump to navigation
Jump to search
(Use the new and improved CSS-based download-button from the innoextract website) |
(Generate the signature URL automatically) |
||
Line 10: | Line 10: | ||
-->{{#if:{{{url|}}}|[{{{url}}} {{{name}}}]<!-- | -->{{#if:{{{url|}}}|[{{{url}}} {{{name}}}]<!-- | ||
sourceforge link | |||
-->|{{#ifeq:{{{sourceforge|1}}}|1|{{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!-- | -->|{{#ifeq:{{{sourceforge|1}}}|1|{{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!-- | ||
... with | ... with self-hosted mirror | ||
--> {{#ifeq:{{{selfhosted|1}}}|1| {{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name=(mirror)}}|}}<!-- | --> {{#ifeq:{{{selfhosted|1}}}|1| {{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name=(mirror)}}|}}<!-- | ||
self-hosted link | |||
-->|{{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}} | -->|{{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 36: | Line 36: | ||
and siganture | and siganture | ||
-->{{# | -->{{#ifeq:{{{siganture|0}}}|1|<span class="signature"><!-- | ||
custom link | |||
-->{{#if:{{{url|}}}|[{{{url}}}.sig signature]<!-- | |||
self-hosted link | |||
-->|{{SelfHostedDownload|file={{{file}}}.sig|dir={{{dir|}}}|name=signature}}<!-- | |||
sourceforge link | |||
-->|{{#ifeq:{{{sourceforge|1}}}|1|{{SourceForgeDownload|file={{{file}}}.sig|dir={{{dir|}}}|name=signature}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
--></span>}}<!-- | |||
--></li></ul><noinclude> | --></li></ul><noinclude> |
Revision as of 03:44, 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