Extension:Document UNCified

What can this extension do?
This extension has this purposes:
 * Allow URI linking to files that are uploaded into your wiki
 * Allow UNC linking to files stored on your intranet "\\servername\path\filename.ext"

The link can be for documents of type:
 * image
 * simple link
 * as emebeded documents

The very useful if your wiki is housed internally and used for as an intranet for your company.

Syntax
This extension get us a new tag, with it,we can insert links (on URI or UNC format) to documents not incorporated at your wiki. 

Syntax:  [unc|uri]|label]  Where:
 * width : It's the width for the object into the page, use pixels or percent units.
 * height : It's the height for the object into the page, use pixels or percent units.
 * type : It's the way for interpreting you URI, you have three choices:
 * link: Default, the tag it's intepreted like simple link. Its can use in combitation with label.
 * image: The tag it's intepreted like an URI to an image whose default link is to itself (if you not especify link). Its can use in combitation with label and link.
 * embeded: The tag it's intepreted like an URI to a document embeded. It works with PDF files!.
 * link : With this, you can specify an alternate URI at witch the navegator it go when press click over the image. Obviously only functions in combination with type='image'.
 * margin: With this, you can specify an margin to apply at the object to be incrusted, the margin to be added it's vía styles (CSS); from here that the format for units it's the same that supports the tag margin from CSS. Into the string value don't specify ';'.

On tag value exists two options:
 * uri or unc : Its about the path at your resource. You can specify the format UNC(\\server\ruta\file.ext) o URI (/ruta/file.ext)
 * label : Se trata del texto a desglegar como:
 * Alternativo: (ALT="") Cuando se trata de un type='image'
 * Texto de link: Cuando se trata de un type='link'

Like image

 * Sintax 1:
 * \wiki\docs\example.jpg|Mi example image
 * On this case you get a image with three properties:
 * width: 100px
 * A caption: Mi example image
 * A URI destination on click: A new page with just the full image.


 * Sintax 2:
 * \wiki\docs\example.jpg|Mi example image
 * On this case you get a image with three properties:
 * width: 100px
 * A caption: Mi example image
 * A URI destination on click: The MediaWiki.org principal page. It's very important put http:// otherwise the URI will be interpreted like relative on your site.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php: