Difference between revisions of "Extension talk:Download"

From Organic Design wiki
m (New page: need quote for extension that has simi...)
 
m (start cleaning up the documentation)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
need quote for extension that has similar functionality to the
+
{{#security:*|Nad}}
<pre><gallery> script</pre>
 
  
tag will be <pre><download></pre>
+
This extension allows you to download images or files that have been uploaded to the wiki with a single click.  
with the image link <nowiki>[[Image:Filename.ext]]</nowiki>
 
  
action on clicking the file will cause it to be downloaded (based on server config and handling)
+
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>
 +
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>
 +
</pre>
 +
 
 +
<pre>
 +
<download>
 +
Image:Item1.pdf|An adobe document
 +
Image:Tem2.doc|A Word Document
 +
</document>
 +
</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 extension will have an array that will render a thumnail based on the extension type.
 
for example, if the extension ends in .pdf, it will render a thumbnail of a pdf, etc.
 
 
*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
*they will not be uploaded, they will be in the /extesnsions/download/images folder
+
*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