Template:Download: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(Generate the signature URL automatically)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


   icon
   icon
-->{{Icon|download}}<!--
-->{{Icon|{{{icon|download}}}}}<!--


   download link
   download link
Line 10: Line 10:
   -->{{#if:{{{url|}}}|[{{{url}}} {{{name}}}]<!--
   -->{{#if:{{{url|}}}|[{{{url}}} {{{name}}}]<!--


      sourceforge link
   -->{{#if:{{{mirror|}}}| [{{{mirror}}} (mirror)]|}}<!--
   -->|{{#ifeq:{{{sourceforge|1}}}|1|{{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!--


       ... with self-hosted mirror
       self-hosted link
      --> {{#ifeq:{{{selfhosted|1}}}|1| {{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name=(mirror)}}|}}<!--
  -->|{{#ifeq:{{{selfhosted|1}}}|1|<!--
 
      -->{{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!--
 
      ... with sourceforge mirror (TODO: move somewhere else)
      --> {{#ifeq:{{{sourceforge|1}}}|1|<!--


       self-hosted link
        --> {{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name=(mirror)}}<!--
   -->|{{SelfHostedDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!--
 
       -->|}}<!--
 
      sourceforge mirror (TODO: move somewhere else)
   -->|<!--
 
      -->{{SourceForgeDownload|file={{{file}}}|dir={{{dir|}}}|name={{{name}}}}}<!--


   -->}}<!--
   -->}}<!--
Line 36: Line 46:


   and siganture
   and siganture
-->{{#ifeq:{{{siganture|0}}}|1|<span class="signature"><!--
-->{{#ifeq:{{{signature|0}}}|1|<span class="signature"><!--


       custom link
       custom link

Latest revision as of 22:13, 9 March 2024

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