Manual:$wgUrlProtocols/ja

詳細
MediaWiki が wfParseUrl で有効と認識する URL プロトコルを定義します. これは多くの箇所で使用されています. 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://www.example.com
 * [test://www.example.com]
 * [test://www.example.com リンク テキスト]

ローカルファイルへのリンク(これはイントラネットの状況で意味があるかも知れません)を許可するには, LocalSettings.php にこれを入れてください:

Usually you only want to add protocols to this array.

Advanced modification
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:

関連項目

 * URI schemes (historical)