Extension:FundraiserLandingPage

This extension is being used extensively throughout the 2011 Wikimedia fundraiser to make it easier to create localized landing pages for different countries and languages. The extension enables the fundraising team to switch out appeals and other page elements on-the-fly without the need to create a new set of localized landing pages. In addition to accepting passed parameters, the extension also performs a GeoIP lookup if a country is not specified in the querystring. This allows for the use of this special page in social media links ensuring that they are not tied to a particular country.

Usage
Once installed, users can be directed to http://localhost:8888/wiki/index.php/Special:FundraiserLandingPage?template=templateName&appeal=appeal-name. This extension will then generate a call to the specified (or default) template and pass the other querystring elements as template parameters.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Configuration parameters

 * $wgFundraiserLPDefaults - sets the default values for the required parameters