Hello all,
I'm using MediaWiki internally and have made the changes needed to allow users to upload Excel spreadsheets and Word documents via the image upload feature: by enabling uploads and adding .doc and .xls to the list of preferred upload types. The only thing that doesn't really work very well is that when you link to an Excel spreadsheet, for example, it still tries to thumbnail it and show a thumbnail. What's the smallest change I can make to the code to suppress the display of a thumbnail for these two file types? Thanks.
graham
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Del Mar Asset Management. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
On Apr 8, 2005 5:41 PM, Graham Miller gmiller@delmarasset.com wrote:
I'm using MediaWiki internally and have made the changes needed to allow users to upload Excel spreadsheets and Word documents via the image upload feature: by enabling uploads and adding .doc and .xls to the list of preferred upload types. The only thing that doesn't really work very well is that when you link to an Excel spreadsheet, for example, it still tries to thumbnail it and show a thumbnail. What's the smallest change I can make to the code to suppress the display of a thumbnail for these two file types? Thanks.
You do know that you can make a link to stuff with "media:" rather than "image:" and it makes a link to the file?
(sorry if I'm stating the obvious)
On Apr 8, 2005 5:41 PM, Graham Miller gmiller@delmarasset.com wrote:
What's the smallest change I can make to the code to suppress the display of a thumbnail for these two file types? Thanks.
I would suggest no change at all. There are 3 ways of linking to any uploaded file: 1) [[Image:<filename>]] - display the upload (i.e. image) inline, and link to the description page (note that this isn't a thumbnail, but the whole image, unless you use extra options e.g. [[Image:<filename>|thumb|This is a thumbnail]]) 2) [[:Image:<filename>]] - just make a normal link to the description page (the leading colon suppresses the inline display 3) [[Media:<filename>]] - make a seemingly normal link, but to the file itself, rather than the description page (in practice, a "download" link)
wikitech-l@lists.wikimedia.org