Jump to content

Extension:FundraiserLandingPage

From mediawiki.org
MediaWiki extensions manual
FundraiserLandingPage
Release status: stable
Implementation Special page
Description Enables template parameters to be passed as querystring elements.
Author(s) Peter Gehres, Ryan Kaldari
Latest version 1.1 (2018-07-13)
MediaWiki 1.32
License GNU General Public License 2.0 or later
Download
  • $wgFundraiserLandingPageMaxAge
  • $wgFundraiserLandingPageChapters
  • $wgFundraiserLPDefaults
  • $wgFundraiserLandingPagePaymentsHost
  • $wgFundraiserLandingPageELSampleRate
Quarterly downloads 0
Translate the FundraiserLandingPage extension if it is available at translatewiki.net
Issues Open tasks ¡ Report a bug

This extension is used for Wikimedia Foundation fundraising at https://donate.wikimedia.org/. It makes it easier to create localized landing pages for multiple 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 geographical IP 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

[edit]

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.

Installation

[edit]
  • Download and move the extracted FundraiserLandingPage folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/FundraiserLandingPage
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'FundraiserLandingPage' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

[edit]
  • $wgFundraiserLPDefaults - sets the default values for the required parameters

See also

[edit]

This extension was developed to replicate the functionality of the RapidHTML portion of Extension:DonationInterface on wikis without DonationInterface.