Difference between revisions of "Template:DownloadExt"

From ICPWiki
Jump to navigation Jump to search
Line 14: Line 14:
 
== Examples ==
 
== Examples ==
 
* <code><nowiki>{{DownloadExt|/teaching/2012-ws-sim_methods/slides01.pdf}}</nowiki></code> {{DownloadExt|/teaching/2012-ws-sim_methods/slides01.pdf}}
 
* <code><nowiki>{{DownloadExt|/teaching/2012-ws-sim_methods/slides01.pdf}}</nowiki></code> {{DownloadExt|/teaching/2012-ws-sim_methods/slides01.pdf}}
 +
* <code><nowiki>{{DownloadExt|/teaching/2012-ws-sim_methods/slides01.pdf|Lecture Slides}}</nowiki></code> {{DownloadExt|/teaching/2012-ws-sim_methods/slides01.pdf|Lecture Slides}}
 
</noinclude>
 
</noinclude>

Revision as of 09:37, 29 January 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|type}}

filename
The name of the file that can be downloaded, relative to the path /web/icp/public_html/html/
linktext
The text of the link to the download.
type
Often, mediawiki cannot deduce the type of the file to be downloaded. In that case, pass the mimetype here.

Examples

  • {{DownloadExt|/teaching/2012-ws-sim_methods/slides01.pdf}} slides01.pdf
  • {{DownloadExt|/teaching/2012-ws-sim_methods/slides01.pdf|Lecture Slides}} Lecture Slides