Template:Download: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <ul class="downloads"><li><!-- | ||
">< | |||
custom link | icon | ||
-->{{ | -->{{Icon|{{{icon|download}}}}}<!-- | ||
download link | |||
--><!-- | |||
custom link | |||
-->{{#if:{{{url|}}}|[{{{url}}} {{{name}}}]<!-- | |||
-->{{#if:{{{mirror|}}}| [{{{mirror}}} (mirror)]|}}<!-- | |||
self-hosted link | |||
-->|{{#ifeq:{{{selfhosted|1}}}|1|<!-- | |||
-->{{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!-- | |||
... with sourceforge mirror (TODO: move somewhere else) | |||
--> {{#ifeq:{{{sourceforge|1}}}|1|<!-- | |||
--> {{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name=(mirror)}}<!-- | |||
-->|}}<!-- | |||
sourceforge mirror (TODO: move somewhere else) | |||
-->|<!-- | |||
-->{{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | |||
--><!-- | |||
filename | |||
-->|{{ | --><span class="name">{{{file}}}</span><!-- | ||
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 | |||
-->{{#ifeq:{{{signature|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> | |||
--></ | |||
</ | |||
<noinclude> | |||
Parameters: | Parameters: | ||
* name - title of the download [required] | * name - title of the download [required] | ||
* file - filename (without path) [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 | * size - textual filesize | ||
* checksum - MD5 checksum | |||
* signature - signature file | |||
</noinclude> | </noinclude> |
Latest revision as of 22:13, 9 March 2024
- {{{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