Manual:$wgUrlProtocols/cs

Podrobnosti
Definuje protokoly URL, které MediaWiki rozpozná jako platné ve wfParseUrl. To se používá na mnoha místech. Nejviditelnějším efektem je, že určuje, jaké protokoly jsou povoleny pro externí odkazy: Nerozpoznané protokoly jsou ignorovány, není generován žádný odkaz. 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.

These examples would not work (because  is not defined as a valid protocol):


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

To allow links to local files (which may make sense in an intranet context), put this into your :

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: