Template:Download: Difference between revisions

From Arx Libertatis Wiki
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|{{{github|1}}}|{{GitHubDownload|file={{{file}}}|name={{{name}}}}}<!--
   -->|{{If|{{{sourceforge|1}}}|{{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!--


       ... with sourceforge mirror
       ... with sourceforge mirror
       --> {{If|{{{sourceforge|}}}| {{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name=(mirror)}}|}}<!--
       --> {{If|{{{selfhosted|1}}}| {{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name=(mirror)}}|}}<!--


       sourceforge link
       sourceforge link
   -->|{{SourceForgeDownload|file={{{file}}}|dir={{{sourceforge}}}|name={{{name}}}<!-- -->}}<!--
   -->|{{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 github or sourceforge downloads!)
* dir - subdirectory for file for sourceforge/self-hosted [required]
* github - set to 0 to not use a github download path
* url - full download path (should not be used for sourceforge or self-hosted downloads!)
* sourceforge - use a sourceforge download path, set to url-encoded directory
* 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

{{{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