Extension:Urlencode

See also Help:Magic words

The extension urlencode performs the exact same function as the PHP function of the exact same name. See External Links for clarification. The string passed to the extension for urlencoding is first parsed by the wiki engine to evaluate any code. See Usage for clarification.

This function was created to fill the gap left by the lack of proper parser functions in MediaWiki Version 1.6.10.

Note: For newer versions of Mediawiki, you don't need this extension. Just use the  parser functions. See Help:Parser function on Meta.

Install
Create a file called 'urlify.php' in your  directory, and add the following code...

Then simply add the following line to the end of your  file: and you are ready to go! Go to the sandbox and see if it works!