Difference between revisions of "Template:Download"
Jump to navigation
Jump to search
(→Usage) |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{SERVER}}/~icp/mimetype-icons/{{{3|{{#replace:{{#mediamime:{{{1}}}}}|/|_}}}}}.png[[Media:{{{1}}}|{{{2|{{{1}}}}}}]] ({{#mediasize:{{{1}}}}})[[Image:Info_circle.png|link=File:{{{1}}}]]</includeonly><noinclude> | + | <includeonly>{{#ifexist:Bla|{{SERVER}}/~icp/mimetype-icons/{{{3|{{#replace:{{#mediamime:{{{1}}}}}|/|_}}}}}.png[[Media:{{{1}}}|{{{2|{{{1}}}}}}]] ({{#mediasize:{{{1}}}}})[[Image:Info_circle.png|link=File:{{{1}}}]]|Bla}}</includeonly><noinclude> |
This template can be used to include links to downloadable files. | This template can be used to include links to downloadable files. | ||
Line 13: | Line 13: | ||
== Examples == | == Examples == | ||
− | * < | + | * <code><nowiki>{{Download|T1w.pdf}}</nowiki></code> {{Download|T1w.pdf}} |
− | * < | + | * <code><nowiki>{{Download|T1c.tgz|An archive|tar}}</nowiki></code> {{Download|T1c.tgz|An archive|tar}} |
+ | * <code><nowiki>{{Download|teaching/2012-ws-sim_methods/slides01.pdf}}</nowiki></code> {{Download|teaching/2012-ws-sim_methods/slides01.pdf}} | ||
</noinclude> | </noinclude> |
Revision as of 09:19, 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}}
Bla{{Download|T1c.tgz|An archive|tar}}
Bla{{Download|teaching/2012-ws-sim_methods/slides01.pdf}}
Bla