Difference between revisions of "Template:DownloadExt"

From ICPWiki
Jump to navigation Jump to search
 
Line 11: Line 11:
 
   
 
   
 
== Examples ==
 
== Examples ==
* <code><nowiki>{{DownloadExt|/teaching/2013-ss-hauptseminar/01-olenz-talk.pdf|Presentation (Olaf Lenz)}}</nowiki></code>: {{DownloadExt|/teaching/2013-ss-hauptseminar/01-olenz-talk.pdf|Presentation (Olaf Lenz)}}
+
* <code><nowiki>{{DownloadExt|teaching/2013-ss-hauptseminar/01-olenz-talk.pdf|Presentation (Olaf Lenz)}}</nowiki></code>: {{DownloadExt|/teaching/2013-ss-hauptseminar/01-olenz-talk.pdf|Presentation (Olaf Lenz)}}
 
* <code><nowiki>{{DownloadExt|harting07a.pdf}}</nowiki></code>: {{DownloadExt|harting07a.pdf}}
 
* <code><nowiki>{{DownloadExt|harting07a.pdf}}</nowiki></code>: {{DownloadExt|harting07a.pdf}}
 
*<code><nowiki>{{DownloadExt|bla|test}}</nowiki></code>: {{DownloadExt|bla|test}}
 
*<code><nowiki>{{DownloadExt|bla|test}}</nowiki></code>: {{DownloadExt|bla|test}}
 
*<code><nowiki>{{DownloadExt|bla}}</nowiki></code>: {{DownloadExt|bla}}
 
*<code><nowiki>{{DownloadExt|bla}}</nowiki></code>: {{DownloadExt|bla}}
 
</noinclude>
 
</noinclude>

Latest revision as of 11:43, 17 June 2013

This template can be used to include links to downloadable files that have not been uploaded to mediawiki but reside somewhere else.

Usage

{{DownloadExt|filename|linktext}}

filename
The name of the file that can be downloaded, in a folder specified in the LocalSettings.php
linktext
The text of the link to the download.

Examples

  • {{DownloadExt|teaching/2013-ss-hauptseminar/01-olenz-talk.pdf|Presentation (Olaf Lenz)}}: Presentation (Olaf Lenz) (422 kB)
  • {{DownloadExt|harting07a.pdf}}: harting07a.pdf (unknown file)
  • {{DownloadExt|bla|test}}: test (unknown file)
  • {{DownloadExt|bla}}: bla (unknown file)