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.

Sintax
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.



Sintax:

 [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 : Con ésto puedes indicar un URI alterno hacia el cual te redirigirá tu navegador cuando des click sobre la imagen. Obviamente sólo funciona en combinación con type='image'.
 * margin: Con ésto puedes indicar un margen a aplicar al objeto que se va a incrustar, el margen que se agrega es po medio de estilos; de aquí se desprende que el formato de units es el mismo que soporta el tag margin de CSS.

En el valor del tag, hay dos 'secciones' ó 'parámetros':
 * uri ó unc : Se trata de la ruta hacia tu recurso. Lo pueder dar en formato 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: