Difference between revisions of "Template:Download"
Jump to navigation
Jump to search
(→Usage) |
|||
Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
− | <code><nowiki>{{Download|</nowiki>''filename''<nowiki>|</nowiki>''linktext''<nowiki>|</nowiki>type<nowiki>}}</nowiki></code> | + | <code><nowiki>{{Download|</nowiki>''filename''<nowiki>|</nowiki>''linktext''<nowiki>|</nowiki>''type''<nowiki>}}</nowiki></code> |
;''filename'' | ;''filename'' | ||
Line 11: | Line 11: | ||
;''type'' | ;''type'' | ||
:Often, mediawiki cannot deduce the type of the file to be downloaded. In that case, pass the mimetype here. | :Often, mediawiki cannot deduce the type of the file to be downloaded. In that case, pass the mimetype here. | ||
− | |||
== Examples == | == Examples == |
Revision as of 09:10, 29 January 2013
This template can be used to include links to downloadable files.
Usage
{{Download|filename|linktext|type}}
- filename
- The name of the file that can be downloaded.
- 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
- {{Download|T1w.pdf}} T1w.pdf (108 KB)
- {{Download|T1c.tgz|An archive|tar}} An archive (1 KB)