Template:Download: Difference between revisions
Jump to navigation
Jump to search
(Use a CSS sprite for the download icon) |
(Don't use GitHub downloads anymore as that feature is deprecated) |
||
Line 21: | Line 21: | ||
github link | github link | ||
-->|{{If|{{{ | -->|{{If|{{{sourceforge|1}}}|{{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!-- | ||
... with sourceforge mirror | ... with sourceforge mirror | ||
--> {{If|{{{ | --> {{If|{{{selfhosted|1}}}| {{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name=(mirror)}}|}}<!-- | ||
sourceforge link | sourceforge link | ||
-->|{{ | -->|{{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}<!-- -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 48: | Line 48: | ||
* name - title of the download [required] | * name - title of the download [required] | ||
* file - filename (without path) [required] | * file - filename (without path) [required] | ||
* url - full download path (should not be used for | * 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 | ||
</noinclude> | </noinclude> |
Revision as of 02:17, 12 January 2013
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