Extension:Logotipo

A quite simple example of a parser function: #logotipo: takes one parameter (a URL pointing to an image) and copies that value to $wgLogo.

Any special characters are removed from the input and caching of the individual page from which this function was invoked is disabled. The function then returns an empty string.

One example of this extension in use is: http://desciclopedia.ws/wiki/Rede_Globo - that page jokingly replaces Desciclopédia's "batata" logo (a hollow potato) with a parody of Globo TV's network logo.

The extension code logotipo.php below must be stored as a file on the server, which is then invoked (using require_once) from LocalSettings.php: