UNC links/ja

Universal Naming Convention (ユニバーサル命名規則) (または単に UNC) は、共有ファイル、ディレクトリ、プリンタといったネットワークリソースの位置を記述するための共通の構文を指定します. Windowsシステム用のUNC構文は次の通りです:

\\ComputerName\Shared Folder\Resource Name

UNLはprotocol:接頭辞を持たず、埋め込みスペースを含むことができる点でURLと異なります. 企業におけるMediawikiの利用において、UNCをWindows Explorerから直接wikiページにペーストすることが便利なことはよくあります.

インストール
Install the ParserFunctions extension. Follow installation instructions and add the optional "integrated string function functionality" line in LocalSettings.php. This eliminates the need for installing the extension StringFunctions.

Add the following to LocalSettings.php:

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: Manual:$wgUrlProtocols and this mozillaZine article for how to enable them.
 * The mozillaZine article referenced is somewhat dated. Use the Local Filesystem Links add-on for current versions of Firefox.


 * For Google Chrome file:/// links are also disabled. They can be enabled using the LocalLinks extension.