Extension:Embed Document

Will show a document like *.pdf, *.doc, *.wav embedded inside a MediaWiki page.

Usage
/my/path/myfilename.pdf

/my/path/myfilename.pdf


 * Note: The path has to be in your wiki's root directory
 * Todo: Want to get rid of this. Aim is to just specify the filename as it has been uploaded to the Wiki.

Installation

 * 1) Copy the code from below into
 * 2) Add   into

Code
markers, allowed are onlya...zA...Z0...9_/.</li>-</li>:</li></ul> ";  } } ?>

User:CharlesC: Create a Template for PDF Embedding
If you are using mediawiki version 1.12 (works only here, because Extension:Filepath and Extension:TagParser are needed), it would probably be a good idea to create a template for simple document embedding. <div style="color:#000000; border:solid 1px #A8A8A8; padding:0.0em 0.em 0.0em 0.em; background-color:#FFFFFF;font-size:80%; vertical-align:middle; width:50%">
 * 1) follow Creating template for handling PDF files
 * 2) open the page Template:Pdf_embed in you wiki, edit and insert this code:

Now you can use this template to add a pretty looking box (width 50%, height 450) with link and embedded PDF file to your wiki pages. And there is no need to specify the full path anymore!


 * Answer

A good idea! However, computing the filename on the server should probably be moved over into the PHP code sometime.