Publish to MediaWiki

version (4.29 KB) by Matthew Simoneau
A stylesheet to make MATLAB publishing produce MediaWiki markup as an output.


Updated Thu, 01 Sep 2016 15:11:56 +0000

View License

This stylesheet converts from publishing's intermediate XML format to MediaWiki-compatible markup. The output is ready for cut-and-paste into Wikipedia or other sites running the MediaWiki software.
This implementation isn't 100% complete.

Sample usage:

>> opts = [];
>> opts.format = 'xml';
>> opts.stylesheet = 'C:\Work\mediawiki.xsl';
>> tdir = tempname;
>> opts.outputDir = tdir;
>> f = publish('sparsity',opts);
>> disp(tdir)
>> dir(tdir)
>> edit(f)

You can also set these options in a publish configurations to make it available directly from the Editor.

Cite As

Matthew Simoneau (2022). Publish to MediaWiki (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!