Manual:$wgUrlProtocols/ko

상세내역
미디어위키 파서에 의하여 지원되며 클릭이 가능한 링크로 변환되는 프로토콜들을 정의합니다. This is used in lots of places. The most visible effect is it determines what protocols are allowed for external links: unrecognized protocols are ignored, no link is generated. However, it's used in many other places too, including the code for Special:LinkSearch, and utility functions like  that are used in a wide variety of different places.

몇몇 예제들은 작동하지 않습니다 ( 그 이유는 "test://" 가 유효한 프로토콜로 정의되지 않았기 때문입니다):


 * test://www.example.com
 * [test://www.example.com]
 * [test://www.example.com link text]

some browsers, like Mozilla Firefox, will not follow file URLs on pages that have been loaded via HTTP. This is a security measure. See this mozillaZine article for more information, including some hints on how to overcome this restriction.

most browsers do not support "remote file" URLs like file://host/share (only Internet Explorer handles these per default. For Firefox, a plugin is required or use exactly 5 slashes like file://///host/share, see )

1.6.0 이후
로컬 파일로 링크를 허용하기 위해서는 (인트라넷의 환경이라면 충분히 가능한 일입니다), 다음을 귀하의 LocalSettings.php 안에 추가하십시오:

Usually you only want to add protocols to this array. The default protocols should all be safe to click on (no evil side effects), and removing a protocol from the list will cause URLs using those protocols to become unrecognized in many places throughout the software. In particular, removing 'http://' or other common protocols will probably break huge amounts of stuff. Nevertheless, if you need to do so (for example, you already have a News: namespace), you can do something like this:

The default value has changed in MediaWiki 1.6.0, before that version the following were not recognized by default:
 * telnet://
 * nntp://
 * worldwind://

The default value in MediaWiki 1.22.0 is

1.5.x
In earlier versions the setting was a regexp expression which matched the beginning part of the URI; in other words, it is a set of prefixes separated by '|' (with '/' converted to '\/' because '/' has a special meaning in a regular expression.

이 기본 값은 미디어위키로 하여금 URI 들을 다음 접두어들을 외부 링크로 렌더하도록 합니다:
 * http://
 * https://
 * ftp://
 * irc://
 * gopher://
 * news:
 * mailto:

오래된 버전
오래된 버전에서 이 기능이 필요하시다면: ./includes/Parser.php 안에 replaceExternalLinks 함수가 있습니다. 그곳에 원하시는 프로토콜을 위한 줄을 추가하시면 됩니다.

추가 참고

 * UNC links
 * UNC links