Difference between revisions of "Extension talk:Download"
(US$150) |
m (start cleaning up the documentation) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{#security:*|Nad}} | |
+ | |||
+ | This extension allows you to download images or files that have been uploaded to the wiki with a single click. | ||
+ | |||
+ | Action on clicking the thumbnail link causes the file to be downloaded or opened (based on server config and handling), ''not'' a jump to the article containing that image. | ||
+ | |||
+ | The normal behavior for clicking on images/files is to take you to the associated article page for that image. This tag changes that behavior. The syntax is similar to the Gallery tag used to display a gallery of images in MediaWiki. | ||
+ | |||
<pre><gallery> | <pre><gallery> | ||
Image:Wikipedesketch1.png|The Wikipede | Image:Wikipedesketch1.png|The Wikipede | ||
Line 12: | Line 19: | ||
</pre> | </pre> | ||
− | + | <pre> | |
<download> | <download> | ||
Image:Item1.pdf|An adobe document | Image:Item1.pdf|An adobe document | ||
Image:Tem2.doc|A Word Document | Image:Tem2.doc|A Word Document | ||
− | |||
</document> | </document> | ||
</pre> | </pre> | ||
− | |||
− | + | ||
− | + | The extension automagically handles the thumbnailing of images/document by their type. and will render a thumbnail based on the extension type. For example, if the extension ends in .pdf, it will render a thumbnail of a pdf, etc. | |
+ | |||
+ | |||
+ | |||
+ | ==Installation== | ||
+ | *thumbnail images are not uploaded, they need to be placed the /extensions/download/images folder | ||
+ | |||
*the file names for the extension thumb nails will be the extension.ext | *the file names for the extension thumb nails will be the extension.ext | ||
− | * | + | *you can supply an additional icon called ''default.gif'' which it falls back to if no matching icon |
− | + | *if there's no matching icon and no default icon either, it just displays a normal link | |
− | * | + | *any of the icons including the default can be gif, jpg or png |
+ | |||
+ | |||
+ | |||
+ | ==Troubleshooting== | ||
+ | *MIME types | ||
+ | *Server settings | ||
+ | * |
Latest revision as of 13:38, 26 August 2008
{{#security:*|Nad}}
This extension allows you to download images or files that have been uploaded to the wiki with a single click.
Action on clicking the thumbnail link causes the file to be downloaded or opened (based on server config and handling), not a jump to the article containing that image.
The normal behavior for clicking on images/files is to take you to the associated article page for that image. This tag changes that behavior. The syntax is similar to the Gallery tag used to display a gallery of images in MediaWiki.
<gallery> Image:Wikipedesketch1.png|The Wikipede Image:Wikipedesketch1.png|A Wikipede Image:Wikipedesketch1.png|Wikipede working Image:Wikipedesketch1.png|Wikipede's Habitat Image:Wikipedesketch1.png|A mascot for Wikipedia Image:Wikipedesketch1.png|One logo for Wikipedia Image:Wikipedesketch1.png|Wikipedia has bugs Image:Wikipedesketch1.png|The mascot of Wikipedia </gallery>
<download> Image:Item1.pdf|An adobe document Image:Tem2.doc|A Word Document </document>
The extension automagically handles the thumbnailing of images/document by their type. and will render a thumbnail based on the extension type. For example, if the extension ends in .pdf, it will render a thumbnail of a pdf, etc.
Installation
- thumbnail images are not uploaded, they need to be placed the /extensions/download/images folder
- the file names for the extension thumb nails will be the extension.ext
- you can supply an additional icon called default.gif which it falls back to if no matching icon
- if there's no matching icon and no default icon either, it just displays a normal link
- any of the icons including the default can be gif, jpg or png
Troubleshooting
- MIME types
- Server settings