Difference between revisions of "Extension talk:Download"

From Organic Design wiki
m (make it look like Special:Newimages, with thumb'd images being 128x128)
m (start cleaning up the documentation)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#security:*|Nad}}
 
{{#security:*|Nad}}
need quote for extension that has similar functionality to the
+
 
 +
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 13: Line 19:
 
</pre>
 
</pre>
  
tag will be <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>
action on clicking the thumbnail link will cause it to be downloaded (based on server config and handling) ''not'' a jump to the article containing that image.
 
  
*the extension will have an array that 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.
 
*the file names for the extension thumb nails will be the extension.ext
 
*thumbnail images hey will not be uploaded, they will be in the /extensions/download/images folder
 
:there's no need for an array if you're using ''extension.ext'' convention. If you do use an array you may as well allow any image path for each extensionm that way you can re-use the existing icon images. --[[User:Nad|nad]] 09:05, 20 August 2008 (NZST)
 
::fine. emailed you some sample images in ext.ext format. note, some are 2 characters, some are 4, etc.  --[[User:Phalseid|Phalseid]] 06:30, 21 August 2008 (NZST)
 
  
*I can do it for US$150
+
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
  
== Done ==
+
*the file names for the extension thumb nails will be the extension.ext
Extension is up and running, a few notes though:
 
*images must be 16x16 pixels can't use scaling, the current ones are 48x48 so don't work properly
 
 
*you can supply an additional icon called ''default.gif'' which it falls back to if no matching icon
 
*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
 
*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
 
*any of the icons including the default can be gif, jpg or png
::looks like it is working fine
+
 
::need the following finished:
+
 
::make it look like [[Special:Newimages]], with thumb'd images being 128x128 (ETA?)
+
 
--[[User:Phalseid|Phalseid]] 06:02, 26 August 2008 (NZST)
+
==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