It may be exactly like that, which is why I was hoping there would be a facility. I *assumed* that the media link would work for mp3s or oggs (as documented) and attempt to play them. I don't want anything to happen to the tarball except that it get downloaded. If I use the media link on an arbitrary file (say, one that ends in .tar or .tgz :-) ) would it just download the file?
Scott Emery emery@nas.nasa.gov
Scott T. Emery wrote:
Mediawiki is really fun and easy to use. I think my initial issues with it are all resolved. There is one small task I would like to do using mediawiki, but it may be outside its baliwick. I want to embed a tarball in a wiki page for download using syntax similar to the image and media file links. This would be a sort of "arbitrary file link" which would download the file for processing on the remote computer.
I'm not sure how this is supposed to be different from uploading a file and using a media link, as already supported...?
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 03/06/05, Scott T. Emery emery@nas.nasa.gov wrote:
It may be exactly like that, which is why I was hoping therewould be a facility. I *assumed* that the media link would work for mp3s or oggs (as documented) and attempt to play them. I don't want anything to happen to the tarball except that it get downloaded. If I use the media link on an arbitrary file (say, one that ends in .tar or .tgz :-) ) would it just download the file?
All [[media:foo|bar]] does is create a link like <a href="...[path].../foo">bar</a>, so it's entirely up to the browser what to do with it. There's no magic syntax (yet) for doing anything special with audio or video files.
So: * you can upload files of any sort via [[Special:Upload]], but there's a whitelist in LocalSettings.php which you'll need to edit appropriately * once uploaded, you can use [[:Image:Name of file]] to link to the description page and [[Media:Name of file]] to link to the actual file itself * obviously, [[Image:Name of file]] will result in something ugly, because it will try to include the file as an inline image.
mediawiki-l@lists.wikimedia.org