UNC links

The Universal Naming Convention, or UNC, specifies a common syntax to describe the location of a network resource, such as a shared file, directory, or printer. The UNC syntax for Windows systems is as follows:

\\ComputerName\Shared Folder\Resource Name

UNCs differ from URLs in that they do not have a protocol: prefix and that they can contain embedded spaces. In corporate use of MediaWiki, it is often useful to paste a UNC from Windows Explorer directly into a wiki page.

Installation
Install the  ext>Special:MyLanguage/Manual:Extensions|extension.

Follow installation instructions and add the optional "integrated string function functionality" line in LocalSettings.php by setting  .

Install the extension StringFunctions (to enable ).

Add the following to :

array_push($wgUrlProtocols, "file://");

Create a template called Template:Unc (search for  and click Create this page), and paste this text into the page content:



Browser compatibility

 * With Internet Explorer on Windows UNC Links work without exception.


 * A recent patch applied to both IE8 and IE9 now requires the Wiki site to be in the Intranet Sites list for this to work correctly.


 * With Firefox file:/// links are disabled by default when appearing in non-local webpages. See:   and [http://kb.mozillazine.org/Links_to_local_pages_don%27t_work this mozillaZine article] for how to enable them.

Use the [https://addons.mozilla.org/en-us/firefox/addon/local-filesystem-links/ Local Filesystem Links] add-on for current versions of Firefox.
 * The mozillaZine article referenced is somewhat dated.


 * For Google Chrome file:///</tt> links are also disabled. They can be enabled using the [<tvar|enableLinks>https://chrome.google.com/webstore/detail/locallinks/jllpkdkcdjndhggodimiphkghogcpida</> LocalLinks] extension.