MediaWiki_Upload_Scripts - david-macmahon/wiki_convert_test GitHub Wiki

Occasionally it's useful to be able to upload files to the CASPER Wiki (and other wikis) directly from the command line. Here are a few helpful scripts to make this process easier.

wikiupload

wikiupload will easily allow you to upload a single file or wild card string to a MediaWIki installation directly from the command line. All file types supported by the CASPER Wiki are supported by the script (see Special:Upload for a complete list). In addition, wiki links to uploaded files are saved at a user-specified page (usually User: is a good choice). Non-image files are simply linked, image files are placed in a gallery, image files not thumbnail-able by MediaWiki are thumbnailed with imagemagick and both vector and raster formats are uploaded.

Dependencies:

WWW-Mediawiki-Client

  • for editing pages

To install, su to root and execute:

perl -MCPAN -e 'install WWW::Mediawiki::Client::Exceptions'

perl -MCPAN -e 'install WWW::Mediawiki::Client'

Image Magick - for creating thumbnails

Example image gallery created with wikiupload.pl

wikiupload from Matlab

wikify.m uses wikiupload to upload a vector image of the current Matlab figure directly to the CASPER wiki.

⚠️ **GitHub.com Fallback** ⚠️