Extension:EmbedAll

The EmbedAll extension adds the &lt;pdf&gt; tag for embedding PDF files, the &lt;svg&gt; tag for embedding SVG files and the the &lt;vsd&gt; tag for embedding VSD files. It supports remote and local (uploaded to MediaWiki) files.

Thanks to Dmitry Shurupov for the basic Idea and Code.

Installation

 * 1) Copy EmbedAll.php to the new file EmbedAll.php in your MediaWiki extensions directory in the new Folder EmbedAll.
 * 2) Enable the extension by adding this line to the bottom of your  :

Usage



 * Options
 * width
 * height

Broken in version 1.18 and newer
This is the source of the error: $img = Image::newFromName( $input ); The class Image is excluded in version 1.18. Solution: $img = wfFindFile(Title::makeTitle(NS_IMAGE, $input));

Just add that line above each of the instances using the Image class, and comment out the Image line, and it works fine.

Code

 * EmbedAll.php