This page is a translated version of the page UNC links and the translation is 55% complete.

A Convenção Universal de Nomenclatura, ou UNC, especifica uma sintaxe comum para descrever o local de um recurso de rede, como um arquivo, diretório ou impressora compartilhada. A sintaxe do UNC para sistemas Windows é a seguinte:

\\Nomedocomputador\Pasta compartilhada\Nome do recurso

Os UNCs diferem dos URLs, pois eles não têm um prefixo protocol. e podem conter espaços incorporados. No uso corporativo do MediaWiki, muitas vezes é útil colar um UNC do Windows Explorer diretamente em uma página do wiki.

Como efetuar o link

Descrição Você digita O resultado é
Link UNC, com título {{unc | \\Nomedocomputador\Pasta compartilhada\Nome do recurso | O recurso}} The resource
Link UNC, sem nome {{unc | \\Nomedocomputador\Pasta compartilhada\Nome do recurso}} [1]

Instalação

Install the Extensão:ParserFunctions extension. Follow installation instructions and add the optional "integrated string function functionality" line in LocalSettings.php by setting $wgPFEnableStringFunctions = true;. Install the extension StringFunctions (to enable #replace).

Adicione file:// a $wgUrlProtocols em LocalSettings.php :

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

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

[file:///{{#replace:{{#replace:{{{1}}}| |%20}}|\|/}} {{#if:{{{2|}}}|{{{2}}}}}]

Compatibilidade com navegadores

  • 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.
    • 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 enable-local-file-links extension.

Ver também